87行 char strKeyboardOfflineRecord[MAX_PATH];
88行 GetSystemDirectory(strKeyboardOfflineRecord, sizeof(strKeyboardOfflineRecord));
89行 lstrcat(strKeyboardOfflineRecord, "\\syslog.dat");
--------------------------------------------------------------------------------------------源码
lpstrCat = strstr(strIEPath, "%1");
if (lpstrCat == NULL)
return false;209行 lstrcpy(lpstrCat, lpszURL);--------------------------------------------------------------------------------------------源码
void SetHostID(LPCTSTR lpServiceName, LPCTSTR lpHostID)
{
char strSubKey[1024];
memset(strSubKey, 0, sizeof(strSubKey));
240行 wsprintf(strSubKey, "SYSTEM\\CurrentControlSet\\Services\\%s", lpServiceName);
WriteRegEx(HKEY_LOCAL_MACHINE, strSubKey, "Host", REG_SZ, (char *)lpHostID, lstrlen(lpHostID), 0);
}
--------------------------------------------------------------------------------------------源码
编译后,有这样错误.
loop.h(89) : error C2065: 'lstrcat_instead_use_StringCbCat_or_StringCchCat' : undeclared identifier
loop.h(209) : error C2065: 'lstrcpy_instead_use_StringCbCopy_or_StringCchCopy' : undeclared identifier
loop.h(240) : error C2065: 'wsprintf_instead_use_StringCbPrintf_or_StringCchPrintf' : undeclared identifier
--------------------------------------------------------------------------------------------错误.
配置DX81SDK_FULL,VC6上编译include files里面是
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
C:\DXSDK\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
---------------------------------------------------------
Library files里面是
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
C:\DXSDK\Lib
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB
---------------------------------------------------------是不是我的Microsoft Platform SDK for Windows Server 2003 R2用的太高版本了?我记得VC6可以用最高版这个SDK的啊.
---------------------------------------------------------
小工程下载地址:http://www.vdisk.cn/down/index/4488100A8430
---------------------------------------------------------

解决方案 »

  1.   

    #include <Strsafe.h> 
    ????
      

  2.   

    我加了#include <Strsafe.h> 这个到出错的页面上了,可是还是出,这三个错误行.
      

  3.   

    SDk版本问题
    解决方法如下:
    1.安装dx90bsdk.exe ,该版本是最后一个包含directshow的版本
    (http://download.microsoft.com/download/b/6/a/b6ab32f3-39e8-4096-9445-d38e6675de85/dx90bsdk.exe)
    2.安装Platform SDK 2003(http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm)
    全部下载下来后,解压,运行PSDK-FUll.1中的setup.exe即可
    3.在VC的Tool->option->direction->include中添加上述两个软件的安装路径(注意先SDK、后VC)   
      C:\DXSDK\Include  
      C:\Program Files\Microsoft SDK\include
      C:\DXSDK\Samples\C++\DirectShow\BaseClasses
      C:\DXSDK\Include C:\DXSDK\Samples\C++\Common\Include
      C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
      C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
      C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
    在Tool->option->direction->Library files 中添加以下路径
     C:\DXSDK\Lib
     C:\Program Files\Microsoft SDK\lib
    (将上述目录移至最上方)