|
-
Apr 22nd, 2013, 09:24 AM
#1
Thread Starter
Lively Member
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
-
Apr 22nd, 2013, 09:46 AM
#2
Re: importing a function from a dll in vc.net
Moved to the C and C++ forum.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|