if (!CopyFile(...)) { LPVOID lpMsgBuf; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(), 0, (LPTSTR) &lpMsgBuf, 0, NULL); MessageBox(NULL,(LPCTSTR)lpMsgBuf,"",MB_ICONSTOP); LocalFree( lpMsgBuf ); // Free the buffer. }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question