Bad DLL Calling Convention

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeremy R. Harner

    Bad DLL Calling Convention

    I'm trying to use a DLL, but when I try to run it from Visual Basic by
    going to Run > Start I get a 'Bad DLL Calling Convention' error when I
    try to access a function inside the DLL. If I compile the program to
    an executable and run it everything works fine....that is I don't get
    the 'Bad DLL Calling Convention' and the function works as it's
    supposed to. Does anybody have any idea what is wrong. Thanks This
    is the calling convention used in the DLL:

    extern "C" __declspec( dllexport ).
Working...