Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Error when compiling code with user-plugin

Author
Message
Mod
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: France
Posted: 27th Jun 2006 12:41
Hi,
I try to make DLLs for DB pro, and first, I trained on TESTCOMMANDS, but there is an error when the code is compiled :

Error
Could not find function '?PrintText@@YAXPAD@Z' in 0:dbprocore.dll

This appears in a dialog box.

I use Code::Blocks to create the DLL, and I import the TESTCOMMANDS example, using the option "Import Visual C++ Project".

The code is the same between CB project and VC project, I really don't understand the problem...

RPG Engine and Odyssée : http://modsoftware.ifrance.com
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 27th Jun 2006 15:24
is the string table correct?

Science, Mathematics, and Physics do not lie - only people do.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Jun 2006 00:21
Which compiler are you actually using? They all mangle the function names in slightly different ways, so as CR suggests, your string table may not be right.

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Mod
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: France
Posted: 28th Jun 2006 10:44
I've kept exactly the code which is with the DB documents, including the string table :



I use MINGW32 to compile the DLL.

RPG Engine and Odyssée : http://modsoftware.ifrance.com
IanG
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: Cyberspace
Posted: 28th Jun 2006 13:37
Quote: "I use MINGW32 to compile the DLL."

thats the problem - as the example uses the ms compiler

you will need to get the decorated function name from the dll, by either using depends(google for it) or by opening it in notepad and finding the name


amd athlon xp 2600+,1280mb,FX 5200 128mb,200gb & 120gb,xp pro sp2
Mod
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: France
Posted: 2nd Jul 2006 11:37
Quote: "uses the ms compiler"


The Visual C++ Toolkit 2003 doesn't have the files needed, and Visual C++ Express 2005 detects an error when the code is compiled...

Is there another free MS compiler ?

RPG Engine and Odyssée : http://modsoftware.ifrance.com
EsteemDE
19
Years of Service
User Offline
Joined: 5th Aug 2005
Location:
Posted: 4th Jul 2006 10:54
What error do you get with Visual Studio 2005 express?

Current Project - Dark NET System Framework DLL
Percentage - 14%.......Lines of Code - 9,171
This Info Updated - 6/18/06 12:10pm
Mod
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: France
Posted: 4th Jul 2006 10:58
Multiples errors now,
First, it was an error about the miss of windows.h file.

I add it with all other headers link to it, and now, there is 8 errors, about unknown pragma(pop) - the poppack.h is in the compiler...

I don't really understand where is the problem.

RPG Engine and Odyssée : http://modsoftware.ifrance.com
Mod
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: France
Posted: 5th Jul 2006 11:51
The errors and warnings I get :



I added to VCE all win32 headers it needed, but no .lib/.a file, I suppose the problem is linked to this.

Is there someone who knows how to solve this problem ?

RPG Engine and Odyssée : http://modsoftware.ifrance.com
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 5th Jul 2006 15:07
You need to download and install the latest platform SDK for the VC2005 compiler. An older one just won't cut it.

For free Plug-ins and source code http://www.matrix1.demon.co.uk

Login to post a reply

Server time is: 2024-11-22 06:54:27
Your offset time is: 2024-11-22 06:54:27