Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
DATABASE_API CAlarmDatabase* GetAlarmDatabase();

I export a method like this, but when I use the method of class CAlarmDatabase, I get a linker error "Cannot resolve the external command".
I just don't get it!
Posted
Updated 13-Jun-10 1:03am
v4

The DLL will have a corresponding LIB file that you have to reference in the project in which the method is called.
Put the name of the LIB file in Project -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies.
 
Share this answer
 
In addition to supermans reply, also check that you really exported the function. This can be done in e.g. the tool depends.exe (located somewhere under your VS install dir)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900