Archived

This topic is now archived and is closed to further replies.

KevinG

Windows environment...

Recommended Posts

KevinG    170
Ive been progging in C++ lately and Ive been wondering...since WinXP is running in protected mode and wont let you directly access hardware (R.I.P. DOS), how do you make your Graphics, sound, and input functions work in a Windows environment? I know there are other libraries out there that I could just use instead of starting my own, but my immediate goal isnt to use them, but to learn how things work "behind the scenes". I promise my first born child to anyone who can point me in the direction of some tutorials that explain about how to do these things in a windows environment...That offer is only pending if you answer now! Time is of the essence! I cant think of a decent signature right now...try back later...MUCH later.

Share this post


Link to post
Share on other sites
Dobbs    164
You can''t. If you want direct access to hardware you''ll have to go to DOS, or some other non-Windows OS that doesn''t restrict low level hardware access. There''s no getting around it. You''ll have to use DirectX or something similar.

Share this post


Link to post
Share on other sites
Sand_Hawk    108
What he is asking, how does an API like DirectX/OpenGL get direct access to the hardware? He wants to know how they work, what they do to access the hardware, etc. Not what lib he should use.

Be answer the question: I do not know how DirectX, OpenGL do it. But I assume Windows must have some way of letting these API''s access the hardware.

Sand Hawk

Share this post


Link to post
Share on other sites
Sneftel    1788
DirectX talks directly to the video card''s device driver, which talks to the hardware. If you want to talk to the hardware, you have to be a device driver.

Check out MSDN for authoritative information on device driver development.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites