: ok I do not know anything about windows programming.
: but as per AsmGuru62's advice i downloaded "Microsoft - Programming
: Windows API 5th" by charles petzold, and i need some time for
: learnig that.
: so can anyone plz show me a sample code for drawing the Pixel
: Coordinates using 32 bit compiler like VC++.
There are examples in Petzold.
: Another Doubt is:
: those type of programming, i mean program under WinMain() is a part
: of C language?
: I mean, as main() is supported by all the C compilers. is WinMain()
WinMain() is not standard C, nor is the Windows API. However, it is a "de facto" standard, meaning that all Windows compilers will support it. It doesn't make sense to compile Windows code for example in Linux, so portability beyond Windows compilers is usually not an issue.
: Q: How, such a division of 32 bit or 16 bit compiler is made.
I'm not sure if I understand what you mean. This is dependant on the CPU itself. 32 bit means 32 bit data bus, ie the CPU can munch and process chunks of 32 bit data at a time. The address bus of the CPU is usually (but not always) of the same size as the data bus.
A C programmer usually doesn't have to consider this, the compiler will have to do the adaption to the CPU hardware.
So 16/32 has actually nothing to do with the API to the OS, but it happend to turn out that way on Microsoft operative systems. PC computers running on DOS were designed for 16-bit CPUs, while Windows 95 and later supported 32-bit CPUs.
: is there any 64 bit compiler also...?
I don't know if there is one yet, but there will surely be in the future.
: I am Highly confused about the compilers....to learn C/C++...what
: type of Programming I need to learn
It depends on what kind of programming you want to do. There are roughly these branches of work:
- Windows programs / desktop programming / databases.
- Web programming + databases.
- 3D graphics
- Embedded telecom / consumer electronics
- Embedded real time systems