wow, i've tried to compile old projects and i've got this error: "MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup"
The *only* way to watch a variable while your code is running is to write code to report it to you. Watch windows only work when you've hit a break point ( press F9 and the current line of code will have a breakpoint, and execution will stop when you get to that line, allowing you to use the watch window )
Variables values
Mark Mrachek
tyou_aki
Vlek Norris
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=14021&SiteID=1
For a discussion of this problem.
MikeZ
I'm not following how this pertains to the problem at hand. However, where are the old projects from How did you open then
cybertaz69
schae49
tcorrigan
Set a breakpoint in your code, or put them inside a setter method so when they change you can set their value on a control somewhere.
Marco_321
There's probably a drop down that says debug or release. Otherwise, it's in the Build menu.
But, even if you build a debug version, until your breakpoint hits, you won't be able to use the watch window.
msjonathan
i just dont understand why it dont work in the other project
thank you cgraus!
MarcSCN
You also need to be building a debug version.
Bwarbis
Take a look at http://msdn2.microsoft.com/en-us/library/0taedcee.aspx which contains more details on using the watch windows.
Hope this helps!
Thanks, Ayman Shoukry VC++ TeamD Berrett
im starting at vc++ and can't understand your sugestion.
thank you
vbdotnetguy
The *only* way to watch a variable while your code is running is to write code to report it to you. Watch windows only work when you've hit a break point ( press F9 and the current line of code will have a breakpoint, and execution will stop when you get to that line, allowing you to use the watch window )
mam282