Click here to Skip to main content
15,897,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Obtaining the Parallel Port Address Pin
Roger Stoltz10-Feb-07 9:31
Roger Stoltz10-Feb-07 9:31 
QuestionVirtual methods Pin
Waldermort8-Feb-07 22:34
Waldermort8-Feb-07 22:34 
AnswerRe: Virtual methods Pin
Cedric Moonen8-Feb-07 22:39
Cedric Moonen8-Feb-07 22:39 
GeneralRe: Virtual methods Pin
Waldermort9-Feb-07 1:44
Waldermort9-Feb-07 1:44 
QuestionGet IP Address & system name in C Pin
Karismatic8-Feb-07 22:14
Karismatic8-Feb-07 22:14 
AnswerRe: Get IP Address & system name in C Pin
Sethuraman.K9-Feb-07 1:52
Sethuraman.K9-Feb-07 1:52 
QuestionRe: Get IP Address & system name in C Pin
Mark Salsbery9-Feb-07 6:02
Mark Salsbery9-Feb-07 6:02 
AnswerRe: Get IP Address & system name in C Pin
malaugh9-Feb-07 9:06
malaugh9-Feb-07 9:06 
QuestionDisplaying static control on title bar of a dialog Pin
Q2A8-Feb-07 21:57
Q2A8-Feb-07 21:57 
AnswerRe: Displaying static control on title bar of a dialog Pin
Cedric Moonen8-Feb-07 22:20
Cedric Moonen8-Feb-07 22:20 
GeneralRe: Displaying static control on title bar of a dialog Pin
Q2A8-Feb-07 22:27
Q2A8-Feb-07 22:27 
GeneralRe: Displaying static control on title bar of a dialog Pin
Cedric Moonen8-Feb-07 22:50
Cedric Moonen8-Feb-07 22:50 
GeneralRe: Displaying static control on title bar of a dialog Pin
Q2A9-Feb-07 1:20
Q2A9-Feb-07 1:20 
GeneralRe: Displaying static control on title bar of a dialog Pin
Cedric Moonen9-Feb-07 1:48
Cedric Moonen9-Feb-07 1:48 
AnswerRe: Displaying static control on title bar of a dialog Pin
Hamid_RT9-Feb-07 5:25
Hamid_RT9-Feb-07 5:25 
Questiondisplaying text in diffrent font on rich edit control Pin
Swapnil G8-Feb-07 21:31
Swapnil G8-Feb-07 21:31 

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.