John,
Firstly you have only partially posted your source. Have you tried stepping through the program in the Visual C++ debugger?
Neil
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only