has anyone ever compiled a vb compatible dll using dev c++ 4.9.8.1? i've tryed writing a def file like i would in msvc++ but no dice! any suggestions appreciated
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the main problem seems to be the name mangling that the compiler uses, ie vb can not call a function that's name begins with "__" so how would i write a def file to prevent the name mangling, in msvc++ i'd declare the fxns: returntype __declspec(dllexport) __stdcall functionname(argtype arg){ return; } and then use a def file like:
LIBRARY "MyLibName"
EXPORTS
functionname @1
how do i do it in dev c++???????
tia
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
has anyone ever compiled a vb compatible dll using dev c++ 4.9.8.1? i've tryed writing a def file like i would in msvc++ but no dice! any suggestions appreciated
the main problem seems to be the name mangling that the compiler uses, ie vb can not call a function that's name begins with "__" so how would i write a def file to prevent the name mangling, in msvc++ i'd declare the fxns: returntype __declspec(dllexport) __stdcall functionname(argtype arg){ return; } and then use a def file like:
LIBRARY "MyLibName"
EXPORTS
functionname @1
how do i do it in dev c++???????
tia
Here is a link that might be of some use:
http://mywebpage.netscape.com/yongweiwu/stdcall.htm
Liviu
thanks nliviu, works like a charm