和GUID相关使用的问题
1. 问题
I am facing the following two critical problems while making Build of my project (the project was previously build for PocketPC 2003 which is now ported for WinMobile 5.0)
error LNK2001: unresolved external symbol IID_IPOutlookApp
error LNK2001: unresolved external symbol CLSID_Application
2. Writing this on top of MyApp.cpp might help
Code: |
#define INITGUID #include <windows.h> #include <pimstore.h> #pragma comment(lib, "pimstore.lib") |
3. It didn't work actually, you exchange a link error to a compile error .
Restore your previous MyApp.cpp and put the four lines of my previous post in a new FixWM5.cpp file. Add this file to your project and remove the use of precompiled header on this file. Your project should then compile without the initial link error, and without new compile error.
http://www.pocketpcdn.com/forum/viewtopic.php?p=27151&sid=ff4bfb53103f156a88942a939d7dcbdc