Hi all,
I'm new to windows programming and I'm having problems figuring out the 'proper windows datatype' to use for a string. All the typedefs are confusing me...
Right now I'm using :
Is this the proper coding style and datatype to use in this instance? It is writing to the file but it's adding a control character "^@" at the end.Code:CHAR teststring[]= "Testing writing a string to file.\r\n"; DWORD numBytes=0; BOOL wtf = WriteFile(testfile,&teststring,sizeof teststring, &numBytes, NULL);