From: Greg C. <gch...@sb...> - 2009-01-21 13:12:19
|
On 2009-01-21 12:44Z, Mario Chacon wrote: > I'm using devc++ to compile a C++ class and I need to use it from a "VB6 > application", :(. I'm exporting the function as C with stdcall but the > result name it have "bad name", for example a function called > GetCpuSpeedDll3 in C++ in VB6 it's named _ZN5CDLL311GetCpuSpeedEv. That name... $c++filt __ZN5CDLL311GetCpuSpeedEv CDLL3::GetCpuSpeed() ...seems to suggest that this function is defined inside a C++ class or a C++ namespace, and is not named 'GetCpuSpeedDll3'. Maybe you should copy and paste the function declaration here. > I found this tutorial but it's empty: > http://www.mingw.org/wiki/Visual_Basic_DLL This search: http://www.google.com/search?q="visual+basic"+dll+mingw leads to these pages (among others) that might be helpful: http://osetools.progw.org/index.php/VB-MinGW-DLL http://wyw.dcweb.cn/stdcall.htm |