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
Laurence Hunter
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.
GitzJoey
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++ TeamPedroVasconcelos
aant10
I'm not following how this pertains to the problem at hand. However, where are the old projects from How did you open then
KindSword
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.
Yael
SlowBowler
i just dont understand why it dont work in the other project
thank you cgraus!
PugRallye
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=14021&SiteID=1
For a discussion of this problem.
Sébastien Ros
im starting at vc++ and can't understand your sugestion.
thank you
ghamm
samnospam
carroll.vance
You also need to be building a debug version.
mcl7cdm
Kevon
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 )