Question

I am created Regular DLLs Dynamically Linked to MFC...

in dll using export function

Example: extern "C" declspec(dllexport) bool getStatus()

after build dll successfully.

then this dll and lib file import my new Project. after include all header file to my new Project and this file to use build dll.

then i use export function in my project

in Build mode Successful after Use Release Mode It get Linked Error LNK2001: unresolved external symbol _getStatus BuleCappServiceUseDynamicDllDlg.obj

Was it helpful?

Solution 2

You need to set dependency in release mode also. Rightclick on project->click on Property->c++->Additional Include Directories and write the name of dlls in both release and debug mode.

OTHER TIPS

You are creating implicitly linked library, exporting only. This will work for explicit linkage.

For implicit linking, you have to import symbols (functions) to your application.

See this post; I think it may help you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top