Hi I am on video 2.
It looks like Casey builds the program using cl but debugs it in Visual studio using breakpoints and stepping through code without having to actually build it through Visual Studio. In what video does he go through how to set up Visual Studio like that?
I'm used to program and debug on my mac using gdb and lldb so I'm lost when it comes to windows and this ide stuff. Thanks for your help!
Optional info about the problem I'm having:
I get a casting error when building the program in visual studio that I don't get when building the program using cl in the command line. However, when I fix the problem so that it compiles in Visual Studio it stops compiling in cl.
For example the line:
WindowClass.lpszClassName = "HandmadeWindowClass";
compiles fine using cl but generates the error
Error C2440 '=': cannot convert from 'const char ' to 'LPCWSTR'
when building in visual studio.
If I cast the string to (LPCWSTR) it works in Visual Studio but the cl compiler halts with the error
Error C2440: '=': cannot convert from 'LPCWSTR' to 'LPCSTR'