Windows Mobile中GPRS连接网络编程测试时:
错误如下
1>正在链接...
1>Test.obj : error LNK2001: 无法解析的外部符号 IID_DestNetWAP
我的头文件中定义如下
#define INITGUID
#include "Connmgr.h"是否是有那个动态库未加啊?我查了SDK,似乎未找到答案,那位高人能否给我一个解释?

解决方案 »

  1.   

    用来说明com库了吗,
    要导入com库
    如:
    #import   "c:\program   files\common   files\system\ado\msado15.dll"
      

  2.   

    用来什么com库了吗,
    要导入com库
    如:
    #import "c:\program files\common files\system\ado\msado15.dll"
      

  3.   

    没有用相关的Com库啊,我用了你的那行代码,还出现了两个错误
      

  4.   

    加上这么一句话就OK
    EXTERN_C const GUID IID_DestNetWAP \
    = { 0x7022e968, 0x5a97, 0x4051, { 0xbc, 0x1c, 0xc5, 0x78, 0xe2, 0xfb, 0xa5, 0xd9 } };