free性丰满hd毛多多,久久综合给合久久狠狠狠97色69 ,欧美成人乱码一区二区三区,国产美女久久久亚洲综合,7777久久亚洲中文字幕

0
問答首頁 最新問題 熱門問題 等待回答標簽廣場
我要提問

求vc++6.0高手,生成dll報錯

學習生成dll獲取電腦名稱的例子使用時,vc++6.0報錯怎么處理,求指教,編譯通過但是生成dll時候報錯。
個人是用其他軟件官方發(fā)布的程序,程序應該問題不大,不知道是軟件原因還是什么,求高手。
代碼:/* include extcode.h which contains the prototypes for the LabVIEW functions */
#include "extcode.h"
#include
#include


BOOL WINAPI DllMain (HANDLE hDLL, DWORD dwReason, LPVOID lpReserved)
? ?? ???{
? ?? ?? ?? ?? ? return TRUE;
? ?? ???}


/* This functions gets the computer name and returns it to LabVIEW */
__declspec (dllexport) void MachineName(void *LVHandle)
? ?? ???{
? ?? ???char computerName[MAX_COMPUTERNAME_LENGTH+1];
? ?? ???int??compNameLength = MAX_COMPUTERNAME_LENGTH+1;

? ?? ???/* Get computer name */
? ?? ???GetComputerName(computerName, &compNameLength);
? ?? ???/* Size LabVIEW handle to the correct size */
? ?? ???DSSetHandleSize(LVHandle, compNameLength + 5);
? ?? ???/* Copy the string size to the LabVIEW handle */
? ?? ???**(int32 **)LVHandle = compNameLength ;
? ?? ???/* Copy the string to the LabVIEW handle */
? ?? ???sprintf((*(char **)LVHandle)+4,"%s",computerName);
? ?? ???}


錯誤提示信息為:--------------------Configuration: getcomname - Win32 Debug--------------------
Linking...
??Creating library Debug/getcomname.lib and object Debug/getcomname.exp
hostname.obj : error LNK2001: unresolved external symbol _DSSetHandleSize
Debug/getcomname.dll : fatal error LNK1120: 1 unresolved externals
執(zhí)行 link.exe 時出錯.
提問者:馬漢三吶 地點:- 瀏覽次數(shù):9547 提問時間:04-23 20:50
我有更好的答案
提 交
撰寫答案
提 交
1 / 3
1 / 3