quick question
i have 'a' char in TCHAR variable in memory
so now i want to write that 'a' in file i prevously created

i succeded in createfile function and succesfully created file "file.txt" , i saved file handle, but i couldnt write into that file, i dont know what is the problem
here is function call

invoke WriteFile, hFile, cMyChar, DWORD, NULL, NULL
Posted on 2001-11-03 14:53:08 by Mikky
better code



local dwWritten:dword
invoke WriteFile, hFile, addr cMyChar, sizeof TCHAR, adde dwWritten, NULL
Posted on 2001-11-03 15:11:22 by japheth