Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Direct memory addressing

Status
Not open for further replies.

polygong

Programmer
Joined
Feb 13, 2005
Messages
2
Location
CA
Is there a way to access specific addresses, for example, setting output bits on the parallel port? Would it involve the use of I/O streams or is there a direct way of doing it (kindof like Assembly code OUT AAAA,DDDD?
 
You may use reinterpret_cast<any*>(int) to obtain a pointer from an integer. But modern Windows have forbidden your application to access hardware i/o ports via that pointer (except from driver level)...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top