A="D:\Kursa4\a1\a1\test1.txt";
B="D:\Kursa4\a1\a1\test1.txt";
+ A "D:Kursa411 est1.txt" std::basic_string,std::allocator > + B 0x0046cd0c "D:Kursa411 est1.txt" char *
'\'기호 나는 그것이 char 또는 문자열을 할당 할 때 uncorected. '\'를 '/'로 바꿔야합니다 - 그러나 '\'라고 쓰면 - 아래에 텍스트가 표시됩니다잘못된 할당 기호는 char 또는 문자열로
이 형식의 파일 이름을 읽었습니다. 그리고/
ZeroMemory(&of, sizeof(OPENFILENAME));
of.lStructSize = sizeof(OPENFILENAME);
of.Flags = OFN_FILEMUSTEXIST| OFN_EXPLORER | OFN_ENABLESIZING;
of.lCustData = (DWORD) NULL;
//of.hwndOwner = hWnd;
of.lpstrFilter = L"*.*";
of.lpstrFile = (LPWSTR)fsFile;
of.nMaxFile = sizeof(fsFile);
of.nFilterIndex = 1;
of.lpstrFileTitle = NULL;
of.nMaxFileTitle = 0;
if(GetOpenFileName(&of) == TRUE)
{
//IDC_EDIT1
//HWND hwndEdit1 = GetDlgItem(hWnd,IDC_RADIO1);
SetWindowText(hwndEdit1, (LPCWSTR)fsFile);
}
걸 원하는에 \를 대체 할 "D : \ Kursa4 \ A1 \ A1 \있는 test1.txt" "D : /Kursa4/a1/a1/test.txt"에서
char B = "D:/Kursa4/a1/a1/test.txt";
홈 메이크업?
char B = "D:\Kursa4\a1\a1\test1.txt";
너 무슨 소리 야? –
그건 C++처럼 보이지 않습니다. – abelenky
@abelenky, 아래 코드는 실제로 C++이지만 Windows API입니다. – chris