I have some code I copied from another article somewhere for a C++ program that will hit whatismyip.com's automation file to find out my external IP.
What I need to know is WHY/HOW to get this to compile properly in Visual Studio 2010 Ultimate without setting the Project Properties: Character Set to "Multi-byte" or "Not Set."
I know there is another post around here about it, but I didn't really understand the explanation, and that post is closed. Besides, it wasn't specifically regarding my code.
Anyway, when I compile this code, I get the "char to LPCWSTR conversion" error.
Note: Setting the Character Set to Multi-byte does allow VS to compile, but I want to know exactly what I can do to this code to bypass that altogether. I know it has to do with TCHARS, but that's it.
I edited my code to the following and set VS back to Unicode. It compiles just fine, but it now displays a memory address, I guess, instead of the IP Address.