till now i have been programming C++ for Dos even withy borland 5.0. i wanna try my hand at 32 bit windows programming.
dunno how to get startted with GUI and other stuff.
wanna still use borland compiler.
please help!!
till now i have been programming C++ for Dos even withy borland 5.0. i wanna try my hand at 32 bit windows programming.
dunno how to get startted with GUI and other stuff.
wanna still use borland compiler.
please help!!
You don't need to change compilers for what you want. Although I recommend either mingw or vc++ for windows work. For getting started with the win32 api (or mfc) you should checkout this tutorial. Another good resource is msdn.microsoft.com. It is there stuff after all.
A very, very good book on the subject is Programming Windows Fifth Edition by Charles Petzold.
This is about as basic a Windows program as you can get, compile it and have a play...
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
thanx guys,
I got started just a bit.
Couple of Q's.
Can I after learning the API's atlast start to write my functions to draw boxes etc like in DOS, by addressing pixels etc i.e. write my own API's??
Secondly, I am used to include a lot of assembly in my codes will that work fine with the API fucntions?
again thanx for getting me started
You can retrieve the state of a pixel using GetPixel() and set it with SetPixel(), so yes, you could do that, although there are many API routines which would make it easier and probably more reliable, (look the routines up in your help or MSDN).
As for assembler, the only answer I can give is "it depends". You can certainly call API routines from assembler, but if you are using 13h type things then that will not work.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.