View Full Version : Free compiler skeleton
Ron
October 13th, 2002, 12:55 PM
did you set the compiler to generate
__stdcalls ?
-Ron
Ron
October 13th, 2002, 12:55 PM
Try this, it makes the function __stdcalls
extern "C" int WINAPI init_dll( TFunctions *gf )
instead of
__declspec(dllexport) int init_dll( TFunctions *gf )
replace all the functions like this,
also take a look if there should be
a .def file like with the Visual C++
compiler.
-Ron
Ron
October 13th, 2002, 12:55 PM
Even better try this :
extern "C" int WINAPI _export init_dll( TFunctions *gf )
Ron
October 13th, 2002, 12:55 PM
I have put an updated Skeleton plugin
on the developer page it compiles with
the free borland compiler and with
MS Visual C++
-Ron
MatB
October 13th, 2002, 12:55 PM
In order to pass to the C++ Borland 5.5 free compiler, i've been trying to convert the skeleton and the uir plugins to CBuilder without success.
I've tried it manually, creating a new dll project (i tried VCL and NO VCL) and adding the files .cpp, .h, .def. Girder gave me "Invalid DLL in Dir!..". I successfully checked the created dll with the impdef utility that reports the exported functions.
Then i tried the import utility that comes with CB. Same result, "Invalid DLL in Dir!..".
Now:
- any idea of what i'm missing?
- anybody already did it?
- Could be Girder a little more explicit, like "Can't find exported function xyz!" ?
- Delphi people: Did you get the same problem?
MatB
October 13th, 2002, 12:55 PM
I tried, but i didn't found where.
It's a question of compiler or linker?
MatB
October 13th, 2002, 12:55 PM
Yes, yes, yes! Whoooooo!
It compiles!
I had to do some minor changes, but it works. Thanx a lot to you guys!
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.