Isn't this in the FAQ?
Type: Posts; User: Italia
Isn't this in the FAQ?
Just treat the ownerdrawn as if it was a normal child window. Same idea for most things (just a little bit different, like the message that is sent).
(I haven't d/l it yet) There's no GUI? What OS is it based on?
Go read "Programming Windows 5th Edition" by Charles Petzold. Windows programming is one of those subjects that you don't just learn bit-by-bit. Read the book, and there's a whole chapter dedicated...
I suggest getting into Win32 API. You look in need for GUI programming :p So, what's the problem? Is there still one?
What do you need as far as critisism goes?
What kind of math are you using to draw this? Trig? Geo?
Sounds like Winsock...
Your string comparing is sloppy. Use strcmp (don't forget, it returns 0 if strings are equal). Just read in (I guess through the input stream - stdin) and test for that string, not single...
You'll just have to retreive the ten records into structs and then put them back in the file with the new ten records. Understand?
So, what you want to do is have a counter in a file? Just one number? Just fscanf the file for the number. Get the number, increment it, and then write it back to the file. If this isn't what you...
Use TCHAR. The compile time will make the necessary conversions. If reading in an ASCII file, then make a variable char, otherwise use TCHAR.
Your struct should look something like:
struct person {
int ID;
char name[];
int num;
int contact;
};