Click here to Skip to main content
15,116,525 members
Home / Discussions / C / C++ / MFC

C / C++ / MFC

GeneralRe: [Noob] Using class pointers Pin
Lord Kixdemp24-Jul-06 18:16
MemberLord Kixdemp24-Jul-06 18:16 
GeneralRe: [Noob] Using class pointers Pin
bob1697224-Jul-06 18:25
Memberbob1697224-Jul-06 18:25 
GeneralRe: [Noob] Using class pointers Pin
Lord Kixdemp24-Jul-06 18:31
MemberLord Kixdemp24-Jul-06 18:31 
QuestionSetTimer Pin
thathvamsi24-Jul-06 17:56
Memberthathvamsi24-Jul-06 17:56 
AnswerRe: SetTimer Pin
bob1697224-Jul-06 18:20
Memberbob1697224-Jul-06 18:20 
QuestionWriting to I/O Port Pin
JBAK_CP24-Jul-06 13:43
MemberJBAK_CP24-Jul-06 13:43 
AnswerRe: Writing to I/O Port Pin
John M. Drescher24-Jul-06 18:13
MemberJohn M. Drescher24-Jul-06 18:13 
AnswerRe: Writing to I/O Port - EASY! Pin
normanS24-Jul-06 20:47
MembernormanS24-Jul-06 20:47 
As John Drescher suggested, use a "port access" library.

I have personally used inpOut32.dll[^] - works like a dream.

The only problem I remember is that the documentation was not clear regarding data size. I think that it does 8-bit inputs and outputs, so if you want to read a 16-bit value, you have to read from an odd port and from an even port, shift one byte by 8, and add, etc. And if you want to write a 16-bit value, you have to split it to two 8-bit outport32 calls.

For example, if you want to read a 16-bit status from port 0x302:
usStatusTemp1 = inp32(0x302);
usStatusTemp2 = inp32(0x303);
usStatusWord = usStatusTemp1 + (usStatusTemp2<<8);

Questionexternal dependencies Pin
jpg64224-Jul-06 12:43
Memberjpg64224-Jul-06 12:43 
AnswerRe: external dependencies Pin
NrmMyth24-Jul-06 20:41
MemberNrmMyth24-Jul-06 20:41 
Question[Visual C++.NET] plotting 2d data [modified] Pin
franzcatch24-Jul-06 11:45
Memberfranzcatch24-Jul-06 11:45 
AnswerRe: [Visual C++.NET] plotting 2d data Pin
Justin Tay24-Jul-06 12:19
MemberJustin Tay24-Jul-06 12:19 
QuestionMFC Automation support [modified] Pin
bob1697224-Jul-06 11:35
Memberbob1697224-Jul-06 11:35 
AnswerRe: MFC Automation support Pin
bob1697224-Jul-06 12:11
Memberbob1697224-Jul-06 12:11 
Questionstrcmp Pin
jon-8024-Jul-06 10:35
professionaljon-8024-Jul-06 10:35 
AnswerRe: strcmp Pin
Justin Tay24-Jul-06 10:41
MemberJustin Tay24-Jul-06 10:41 
AnswerRe: strcmp Pin
Zac Howland24-Jul-06 10:47
MemberZac Howland24-Jul-06 10:47 
GeneralRe: strcmp Pin
jon-8025-Jul-06 6:25
professionaljon-8025-Jul-06 6:25 
QuestionRe: strcmp Pin
David Crow24-Jul-06 11:07
MemberDavid Crow24-Jul-06 11:07 
AnswerRe: strcmp Pin
jon-8025-Jul-06 6:27
professionaljon-8025-Jul-06 6:27 
QuestionRe: strcmp Pin
David Crow25-Jul-06 9:22
MemberDavid Crow25-Jul-06 9:22 
AnswerRe: strcmp Pin
jon-8026-Jul-06 5:47
professionaljon-8026-Jul-06 5:47 
QuestionRe: strcmp Pin
David Crow26-Jul-06 6:13
MemberDavid Crow26-Jul-06 6:13 
QuestionKeyboard shortcuts Pin
coddy5524-Jul-06 10:13
Membercoddy5524-Jul-06 10:13 
AnswerRe: Keyboard shortcuts Pin
Justin Tay24-Jul-06 10:17
MemberJustin Tay24-Jul-06 10:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.