Law Napisano Wrzesień 13, 2018 Autor Zgłoś Napisano Wrzesień 13, 2018 To używam tej funkcji: ReadFile(HFile, PChar, 1, Word, 0); i wyskakuje błąd 'Types of actual and formal var must be identical' Co jest źle?:-( Cytuj
Nemo Napisano Wrzesień 13, 2018 Zgłoś Napisano Wrzesień 13, 2018 Kawałek z MSDNa: BOOL ReadFile( HANDLE hFile, // handle of file to read LPVOID lpBuffer, // pointer to buffer that receives data DWORD nNumberOfBytesToRead, // number of bytes to read LPDWORD lpNumberOfBytesRead, // pointer to number of bytes read LPOVERLAPPED lpOverlapped // pointer to structure for data ); 4 i 5 argument powinien byc wskaźnikiem, wiec mzoe o to chodzi ;) Nic innego mi do głowy nie przychodzi. Wiec poprawnie byloby tak: char buffer[1024]; DWORD pdwBytes; ReadFile(hFile, buffer, 1, &pdwBytes, NULL); Cytuj
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.