error LNK2001: unresolved external symbol IID_IPOutlookApp

来源:互联网 发布:京东程序员工资 编辑:程序博客网 时间:2024/05/18 03:06

和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 Smile 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 Sad .
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 

原创粉丝点击