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

Threaded View

  1. #3
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Bad DLL calling convention when accessing my dll from VB

    Read up on __stdcall and __cdecl. That is the probable reason for your error. One function is using a calling convention to load the parameters and the called functions is using the other calling convention -- outcome -- disaster.

    You must make sure that both caller and called use the same calling convention.

    Regards,

    Paul McKenzie
    Last edited by Paul McKenzie; October 15th, 2010 at 12:08 PM.

Tags for this Thread

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