문제

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

도움이 되었습니까?

해결책 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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top