Click here to Skip to main content
15,908,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Save notepad file Pin
Hamid_RT9-Feb-07 5:37
Hamid_RT9-Feb-07 5:37 
QuestionAbsolute path of %systemroot% and %userprofile% Pin
Sonani Prakash9-Feb-07 1:01
Sonani Prakash9-Feb-07 1:01 
AnswerRe: Absolute path of %systemroot% and %userprofile% Pin
Naveen9-Feb-07 1:34
Naveen9-Feb-07 1:34 
GeneralRe: Absolute path of %systemroot% and %userprofile% Pin
Sonani Prakash9-Feb-07 1:59
Sonani Prakash9-Feb-07 1:59 
GeneralRe: Absolute path of %systemroot% and %userprofile% Pin
prasad_som9-Feb-07 2:10
prasad_som9-Feb-07 2:10 
JokeRe: Absolute path of %systemroot% and %userprofile% Pin
Hamid_RT9-Feb-07 5:33
Hamid_RT9-Feb-07 5:33 
GeneralRe: Absolute path of %systemroot% and %userprofile% Pin
prasad_som9-Feb-07 6:24
prasad_som9-Feb-07 6:24 
GeneralRe: Absolute path of %systemroot% and %userprofile% Pin
Hamid_RT9-Feb-07 6:30
Hamid_RT9-Feb-07 6:30 
QuestionDisplaying Text in rich edit in diffrent font Pin
Swapnil G9-Feb-07 0:46
Swapnil G9-Feb-07 0:46 
AnswerRe: Displaying Text in rich edit in diffrent font Pin
James R. Twine9-Feb-07 1:47
James R. Twine9-Feb-07 1:47 
AnswerRe: Displaying Text in rich edit in diffrent font Pin
Hamid_RT9-Feb-07 5:30
Hamid_RT9-Feb-07 5:30 
QuestionEvent handling right click on dialog? Pin
ldsdbomber9-Feb-07 0:36
ldsdbomber9-Feb-07 0:36 
AnswerRe: Event handling right click on dialog? Pin
Naveen9-Feb-07 1:31
Naveen9-Feb-07 1:31 
AnswerRe: Event handling right click on dialog? Pin
James R. Twine9-Feb-07 1:45
James R. Twine9-Feb-07 1:45 
AnswerRe: Event handling right click on dialog? Pin
Hamid_RT9-Feb-07 5:30
Hamid_RT9-Feb-07 5:30 
QuestionUsing GDI+ to draw a Stroke effect on text. Pin
Bartosz Bien8-Feb-07 23:50
Bartosz Bien8-Feb-07 23:50 
QuestionWindows service Pin
david bagaturia8-Feb-07 23:38
david bagaturia8-Feb-07 23:38 
Questionparameter value lost after control goes in body why? Pin
amitmistry_petlad 8-Feb-07 22:41
amitmistry_petlad 8-Feb-07 22:41 
AnswerRe: parameter value lost after control goes in body why? Pin
Cedric Moonen8-Feb-07 22:46
Cedric Moonen8-Feb-07 22:46 
GeneralRe: parameter value lost after control goes in body why? Pin
amitmistry_petlad 8-Feb-07 23:59
amitmistry_petlad 8-Feb-07 23:59 
QuestionObtaining the Parallel Port Address Pin
69 Bay8-Feb-07 22:37
69 Bay8-Feb-07 22:37 
AnswerRe: Obtaining the Parallel Port Address Pin
Roger Stoltz8-Feb-07 23:09
Roger Stoltz8-Feb-07 23:09 
GeneralRe: Obtaining the Parallel Port Address Pin
69 Bay9-Feb-07 1:00
69 Bay9-Feb-07 1:00 
GeneralRe: Obtaining the Parallel Port Address Pin
Roger Stoltz9-Feb-07 4:09
Roger Stoltz9-Feb-07 4:09 
69 Bay wrote:
What I would like to do is find out the address of the parallel port from within the app - normally 0x0378.


Ok, I get what you're trying to do now.
I'd like to see it as there are two mappings to be done:
- what the user see, i.e. "parallel port 1", and how it maps to an I/O port which usually is 0x378, unless someone altered BIOS settings
- how that I/O port maps to a device name such as "LPT1"

I think it would be easier for the user if he were choosing from LPT1/LPT2 rather than different I/O ports. If the user select e.g. LPT1, then it could be assumed that the I/O port is 0x378.


However, I would try very hard to make use of the driver shipped with the OS and avoid dealing with those mappings and simply give the user the opporunity to choose from a list of LPTx.
But that's perhaps not possible in your case, it depends on what pins you're using.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

GeneralRe: Obtaining the Parallel Port Address Pin
69 Bay9-Feb-07 5:24
69 Bay9-Feb-07 5:24 

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.