On Sat, 2003-11-15 at 00:04, Max Bowsher wrote:
> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/createfile.asp
> >
> > Look at the grey box :}.
> 
> Exactly. CreateFile takes LPCTSTR - but you are calling CreateFileA, which
> takes LPCSTR.
> 
> Granted, LPCTSTR == LPCSTR when UNICODE is not defined - but if you are
> relying on that, you don't need to bother with the "A" suffix on the
> function, either.

Ah, I'll look this up tomorrow. For now, I've done the change to not use
MAX_PATH throughout cygwin, and I've broken something. So, I'm figuring
out why :[. That said, I don't plan to rely on UNICODE not being
defined: this code should be the same no matter what options are passed.
Rob

-- 
GPG key available at: <http://members.aardvark.net.au/lifeless/keys.txt>.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to