我創建了一個win32窗口,它工作正常,但即時通訊嘗試使用lpcmdline獲取命令參數。它工作正常,但是當我試圖把它比作串它不會在這裏工作是比較碼參數問題幫助
TCHAR checking[]=_T("hello");
if(args==checking) // args equals lpcmdline like this LPTSTR args=lpcmdline
{
TCHAR greeting[]=_T("heys");
}
else
{
MessageBox(NULL,args,L"1",MB_OK);
/*if args doesn't equal checking tha cout what is inside args*/
MessageBox(NULL,checking,L"2",MB_OK);
//cout checking
}
很好,當我清點兩個varabiles他們同樣喜歡ARGS輸出爲hello和檢查輸出爲hello,但我不知道爲什麼他們沒有得到相等的請幫助 在此先感謝