Thirteen Years of Service
Posts: 5
Threads: 1
Hardware Access through C++ 03-31-2013, 11:51 AM
#1
Ok, Ive looked around for quite a long time about this but I found some stuff that vaguely talks about it, but not in the amount of detail that I needed. The main one that I found was using the #define method (or something like that.) The probllem is, none of the articles specified whether these adrreses would stay constant for each computer, or it would change according to the computer. So for example, how could I access the graphics card of my computer through some C++ code? I mainly wanted to know about this because I wanted to create a game engine, but it seems so other possabilities are available through this... Anyway, I tried t explain this as best as I could, so could someone explain this to me?
thanks
sorry, I forgot to say that I use a windows 7 laptop.
•
Thirteen Years of Service
Posts: 5
Threads: 1
Hardware Access through C++ 03-31-2013, 11:51 AM
#2
Ok, Ive looked around for quite a long time about this but I found some stuff that vaguely talks about it, but not in the amount of detail that I needed. The main one that I found was using the #define method (or something like that.) The probllem is, none of the articles specified whether these adrreses would stay constant for each computer, or it would change according to the computer. So for example, how could I access the graphics card of my computer through some C++ code? I mainly wanted to know about this because I wanted to create a game engine, but it seems so other possabilities are available through this... Anyway, I tried t explain this as best as I could, so could someone explain this to me?
thanks
sorry, I forgot to say that I use a windows 7 laptop.
•
Thirteen Years of Service
Posts: 3,257
Threads: 163
RE: Hardware Access through C++ 03-31-2013, 07:40 PM
#7
What isn't possible?
Why is that weird? #define just tells the preprocessor to replace every occurance of the first string with the second. Not more, not less. It is nothing specific to hardware access.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.
•
Thirteen Years of Service
Posts: 3,257
Threads: 163
RE: Hardware Access through C++ 03-31-2013, 07:40 PM
#8
What isn't possible?
Why is that weird? #define just tells the preprocessor to replace every occurance of the first string with the second. Not more, not less. It is nothing specific to hardware access.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.
•