WinApi Help Needed
i am new to winapi and i am a little bit stuck if i have a dos based code like this :
how can i transfer scanf and printf to winapi,i know that i should you a editbox,but how?
Not to be rude, but I don't think you're ready for Windows programming.
And read this, concerning scanf: http://cboard.cprogramming.com/showp...37&postcount=9
Also learn to indent:
And main should explicitly return int.
int main ()
Also, there is a specific board for Windows Programming questions: http://cboard.cprogramming.com/forumdisplay.php?f=7
That's right, so this thread has been moved.
Originally Posted by spanker
Those three lines become about two pages of WIN32 code!
You need a message pump, callback, event handlers and winmain not a main.
I suggest you read some tutes, search here for some links (ie http://winapi.foosyerdoos.org.uk/ by Ken Fitlike one of the mods.)
WIN32 is not too hard, but a bit of a leap (in logic) from 'structured' applications (happens in a set sequence) to 'event driven' apps (responds as required to user/system events).
Start simple, try a 'hello world' app first and work your way up.