Menu

vb compatible dlls

2003-09-03
2012-09-26
  • jeff Delooze

    jeff Delooze - 2003-09-03

    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

     
    • jeff Delooze

      jeff Delooze - 2003-09-04

      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

       
    • Liviu Nicolescu

      Liviu Nicolescu - 2003-09-04

      Here is a link that might be of some use:

      http://mywebpage.netscape.com/yongweiwu/stdcall.htm

      Liviu

       
      • jeff Delooze

        jeff Delooze - 2003-09-07

        thanks nliviu, works like a charm

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.