The problem:
I am trying to link to a function within a dll (pre-built by someone else, who swears it is working).
In fact, he gave me code which should work, but I can't show it to you do to copyright laws.
The basic structure is this:
# include windwos
# include iostream
extern "C" { __declspec(dllimport) int _stdcall myfunction...
int Ret = myfunction (...);
------
I end up with this error:
main_ext.obj : error LNK2001: unresolved external symbol __imp__myfunction@48
I take this to mean it isn't connecting to my dll function, and I can't find a straight answer why.
I am guessing that it is interpretting the name incorrectly by adding the __imp preceeding the function name, but I can't seem to change this.
I am a linear programmer, and I hate these setting, for they are killing my on deadlines. Does anyone know how to fix this?
I am trying to link to a function within a dll (pre-built by someone else, who swears it is working).
In fact, he gave me code which should work, but I can't show it to you do to copyright laws.
The basic structure is this:
# include windwos
# include iostream
extern "C" { __declspec(dllimport) int _stdcall myfunction...
int Ret = myfunction (...);
------
I end up with this error:
main_ext.obj : error LNK2001: unresolved external symbol __imp__myfunction@48
I take this to mean it isn't connecting to my dll function, and I can't find a straight answer why.
I am guessing that it is interpretting the name incorrectly by adding the __imp preceeding the function name, but I can't seem to change this.
I am a linear programmer, and I hate these setting, for they are killing my on deadlines. Does anyone know how to fix this?