Beginner C/C++

Moderators: None (Apply to moderate this forum)
Number of threads: 5428
Number of posts: 16949

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: where/how to use graphics.h? Posted by Lundin on 16 Jan 2009 at 4:57 AM
: 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
Thread Tree
VinayKhare where/how to use graphics.h? on 15 Jan 2009 at 4:33 AM
AsmGuru62 Re: where/how to use graphics.h? on 15 Jan 2009 at 4:44 AM
Lundin Re: where/how to use graphics.h? on 15 Jan 2009 at 6:32 AM
VinayKhare Re: where/how to use graphics.h? on 16 Jan 2009 at 2:22 AM
AsmGuru62 Re: where/how to use graphics.h? on 16 Jan 2009 at 4:56 AM
Lundin Re: where/how to use graphics.h? on 16 Jan 2009 at 4:57 AM
VinayKhare Re: where/how to use graphics.h? on 16 Jan 2009 at 12:09 PM
MT2002 Re: where/how to use graphics.h? on 19 Jan 2009 at 6:25 PM
VinayKhare Re: where/how to use graphics.h? on 20 Jan 2009 at 12:12 AM
Lundin Re: where/how to use graphics.h? on 20 Jan 2009 at 12:41 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.