I knew I couldn't use printf() in a Windows program but I thought at least I could use sprintf(). But no, I was told that it could not be used and I would have to use StringCbPrintf() or StringCchPrintf() instead. They are harder to use and I have yet to make ether one of them work correctly. Guess what value for xx is displayed by popup() in the following code.
int xx;
char pop[301];
xx=2;
StringCbPrintf(pop, 300, "xx=%d", " ", xx);
popup(pop);
You guessed wrong, xx=1073776114. This is a typical example of how frustrating it is for a beginner to work with Window programming.
The point is I need help with Window programming. Are there any good beginner and reference books available?