954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Can c++ communciate with hardware?

Hi,
I would like to know is it possible to use c++ code to control pc hardware?

WongTinMing
Newbie Poster
1 post since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

what hardware are you referring to?

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

The short answer is "yes and no".

The C++ standard specifies no direct means of accessing hardware. However, with the help of non-standard techniques (which are operating system and hardware specific) it is possible to control hardware. Technically, those techniques are beyond scope of the C++ standard but, in practice, with support of suitable compilers and their libraries it is possible to find ways ....

grumpier
Posting Whiz in Training
211 posts since Aug 2008
Reputation Points: 193
Solved Threads: 32
 

Another question is which OS is in between you and the hardware.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You