- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jugoslav, I've done a C++ program with your indications, but I obtain the next error
--------------------Configuration: Call_C - Win32 Debug--------------------
Linking...
main.obj : error LNK2001: unresolved external symbol __imp__suma_int@8
Debug/Call_C.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Call_C.exe - 2 error(s), 0 warning(s)
I've included mydll.lib in Project->Settings->Link->Category->Input->Object/library modules. I show you C++ code
#include
#include
extern "C" __declspec(dllimport) short __stdcall suma_int(short* a,short* b);
void main ()
{
short suma;
short a,b;
a=1;
b=3;
suma=suma_int(&a,&b);
}
Thanks Jugoslav
--------------------Configuration: Call_C - Win32 Debug--------------------
Linking...
main.obj : error LNK2001: unresolved external symbol __imp__suma_int@8
Debug/Call_C.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Call_C.exe - 2 error(s), 0 warning(s)
I've included mydll.lib in Project->Settings->Link->Category->Input->Object/library modules. I show you C++ code
#include
#include
extern "C" __declspec(dllimport) short __stdcall suma_int(short* a,short* b);
void main ()
{
short suma;
short a,b;
a=1;
b=3;
suma=suma_int(&a,&b);
}
Thanks Jugoslav
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page