To pass parameter to functionin DLL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ketu0001
    New Member
    • Nov 2006
    • 1

    To pass parameter to functionin DLL

    Please tell me how to pass integer parameters to functionin DLL. I am getting error as
    "Calling function declared with one convention and function pointer declared with different convention."
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    At run time, compile time or link time?

    Under what compiler system?

    In WIN16 DLL functions had to be declared with PASCAL calling convention.

    In WIN32 DLL functions must be declared __declspec( dllexport ) in the DLL and __declspec( dllimport ) in the executable calling it.

    Comment

    Working...