Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a dll in Embedded Visual C++ 3.0

Status
Not open for further replies.

Kocky

Programmer
Joined
Oct 23, 2002
Messages
357
Location
NL
Hello,

Is there anyone who knows how to use a dll in Embedded Visual C++. I have a .dll file and a header file that contains the functions in the .dll.

How can I link the file.

I keep getting the error message:

TBF.obj : error LNK2019: unresolved external symbol __imp_ConnectTo referenced in function WinMain
ARMDbg/TBF.exe : fatal error LNK1120: 1 unresolved externals

In the header file under each function the following line is typed:

_declspec(dllimport) BOOL _cdecl ConnectTo(TCHAR *p_sComPort, BYTE p_iSpeed);


Thanx,

Pascal.
 
To use in .dll in this mode, you should link your .exe with the .lib generated while compilled this .dll. If you do not have it, you should try to find out how to get dinamically address of function and to use it.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top