CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Help! Coding 32 bit Dll

    We have written a Visual C 16 bit dll with our VB3 application.
    As we are converting to 32 bit using VB5 we need to migrate the 16 bit
    dll to 32 bit as well using Visual C++ 6.0. However, I wasn't able to
    get it working. When calling the function from VB5 I always get the
    message : DLL entry point not found for function_name in dll_file_name.
    I tried writing from scratch using the VC++ 6.0 wizard to give me the
    skeleton and then I coded our functions in it but I still got the same
    message. Even calling the sample function generated by the wizard from
    VB5 got the same result. I have no problem calling 32 bit dll for 3rd
    party products. I am really lost.

    Can any guru out there give me some clues? Much appreciated.
    Please email me at the following address as well: [email protected].
    Thanks.





  2. #2
    Join Date
    May 1999
    Posts
    667

    Re: Help! Coding 32 bit Dll

    things to check
    1) exported names are case sensitive in 32bit Dlls
    2) using Quickview on the DLL is the function listed in the export table?
    3) Is the function listed in the def file
    4) If the function is in a cpp file is it declared extern "C"
    ex: extern "C" void Myfunction() this prevents name mangaling


    HTH,
    chris


  3. #3
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Help! Coding 32 bit Dll

    Did you export your function?

    John Cz
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured