Fundamentals of C++ | VS Mag | Visual Studio | my c links | Visual Basic | debugger | Books | using C++ |
Read Ivor Horton's Beginning Visual C++ 6 up to page 71; also dove into chptr 7, A taste of Old-Fashioned Windows, p 243; read up to p 252...
struct BOOK { char Title[80]; char Author[80]; char Publisher[80]; int Year; };defines a new type in a manner used before C++ (now we use classes...) but lots of windows uses struct since it was written pre-C++
Prefix | Meaning |
---|---|
b | logical variable of type bool, equiv to int |
by | type unsigned char, a byte |
c | type char |
dw | type dword, which is unsigned long (int) |
fn | a function |
h | a handle, used to identify something (usually an int value) |
i | type int |
l | type long |
lp | long pointer |
n | type int |
p | a pointer |
s | a string |
sz | a zero terminated string |
w | type word, which is an unsigned short |
lpfn | long pointer to a function |
to add a breakpoint, F9. to remove the breakpoint, with cursor at the breakpoint, press F9 again.
with a breakpoint added, F5 executes the code in the debugger.
see the variables window below and left, also the watch windows below and right - if they're aren't there, see icons on debug menu to activate them
to continue execution after breakpoint, just press F5 again!
still a mystery: can you look at all array values somehow??
when you see an array name in Variables window, it looks like an address pointer number...
F1 brings up help in the pertinent debugger window!
6-24-2005: When debugging (press F5, stop at breakpoint set with F9) F10 steps forward one statement at a time. If the statement is a function call, the whole function is called and the focus moves to next line. If you want to instead step through that function, press F11. Shift-F5 stops debugging.
from codeguru.com forum (found by googling <Visual Studio 6.0 Createwindow "no title bar">
01-02-2003, 10:00 AM, mdmd's Avatar: My choice for WIN32 programming book is "Win32 programming" by Grent Rector and Joseph Newcomer My choice for MFC would be "Programming MFC" by Jeff Prosise although I heard the Professional VC++ book from Wrox press is the best. 01-02-2003, 01:16 PM, tobeyu don't forget the "Bible" of Win32 programming... Programming Windows by Charles Petzold
back to Index | back to Links |