RE: [Dev-C++] Call external dll functions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Gerson L. <ja...@ya...> - 2005-07-07 23:09:05
|
I do not remember the details right now, bur remember some "obscure" thing called name mangling... it is like sufixes and/or prefixes thata the compiler attaches to the original function names. This means, that it is very possible if you worte a function like int funcioncita(int, int)int he DLL code, you may have to call it like funcioncitai_ii(...). Name mangling is compiler-specific,so it depends on what compiler was used creating the DLL. In My experience, I have usd Dev-c++ built DLL in VisualBasic 6.0 and in Dev itself. To use my functions in Visual, I had to consider name mangling. In Dev, I didn't (since it was the same compiler that created the DLL) If You are building the DLL, look for a file that apears along with the new DLL, its calld export or sometrhing like that, open using notepar or similar. You'll see the effects of name mangling. something else: I use Dev 4.0 and/or 4.01.In the new project dialog, I selected DLL project. and some kind of template code apeared... There were something dealing with a _stdcall, a #define DLLIMPORT if I remember correctly. Maybe that "define" helps you out. Sorry for not being more specific... my code is in another machine... --- Setrio <se...@gm...> escribió: > Hi, > > How can i call external dll functions from Dev-C++? > > I have a VC++ dll with some functions that i want to use from a > Dev-C++ proyect. I have de .lib and .dll. I put the .lib in the linker > options but without results. Any idea or quick tutorial on how import > a dll in Dev-C++? > > Tks > > (sorry for my english) > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es |