I'm using windows, C++ and running a console app (multi-byte). The info is printing fine to the screen, however it is not printing to my log file correctly. Any help is appreciated. Thanks.
In short, LogURL should be an LPSTR, not a single char, and it should point to a valid memory buffer. Normally you first do a call to WideCharToMultiByte() with a NULL buffer so the function tells you how much memory you need. Then you allocate the needed memory and call the function once more, this time with the valid buffer.