importing a function from a dll in vc.net
although this is a vc.net question, someone here might know the answer.
I have a function in a dll called import10.
it is:
void FAR PASCAL junk(long&jj)
{
long j;
j=999;
jj=j;
//end of junk
}
and I include junk in the def file
I am trying to call junk from another dll --called mfdm
I write:
__declspec(dllimport) void _stdcall junk(long&x);
above the function that includes a call to junk
and I have gone into the properties of mfdm and set the c/c++ general\additional library directories to
c:\davids\vcnet\import10\debug\
which is where the import10.lib exist
upon compiling it doesn't find junk
if you can help thanks!!
follys
Re: importing a function from a dll in vc.net
Moved to the C and C++ forum.