Click here to Skip to main content
15,905,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCCriticalSection Pin
Anonymous26-Oct-02 10:57
Anonymous26-Oct-02 10:57 
GeneralRe: CCriticalSection Pin
Neville Franks26-Oct-02 12:09
Neville Franks26-Oct-02 12:09 
GeneralRe: CCriticalSection - volatile? Pin
26-Oct-02 13:00
suss26-Oct-02 13:00 
GeneralRe: CCriticalSection - volatile? Pin
Neville Franks26-Oct-02 13:34
Neville Franks26-Oct-02 13:34 
General10x Pin
Anonymous26-Oct-02 14:19
Anonymous26-Oct-02 14:19 
GeneralParaller Port Comunication. Pin
int01h26-Oct-02 9:12
int01h26-Oct-02 9:12 
GeneralRe: Paraller Port Comunication. Pin
Gary R. Wheeler27-Oct-02 3:56
Gary R. Wheeler27-Oct-02 3:56 
GeneralRe: Paraller Port Comunication. Pin
Daniel Strigl28-Oct-02 0:41
Daniel Strigl28-Oct-02 0:41 
Under Win95, Win98 you can directly write the hex-value to the port (with assembler):

...
void outportb(unsigned int portid, unsigned char value)
{ 
    __asm  
    {    
        mov edx, portid  // port id stored in dx    
        mov al, value    // 8-bit output value stored in al    
        out dx, al       // write the value to the port  
    }
}
...
outportb(0x378, 20); // write the value 20 to the lpt-port (0x378)
...


Under NT-Systems, like Win2000, WinNT and XP you are not allowed to write directly to the ports.
It this case just use a port-driver like "UserPort" (just take a look on http://www.mattjustice.com/parport/par_nt.html).


Daniel Wink | ;)
---------------------------
Never change a running system!
GeneralOperator overloading! Help! Pin
26-Oct-02 8:43
suss26-Oct-02 8:43 
GeneralRe: Operator overloading! Help! Pin
Paul M Watt26-Oct-02 11:36
mentorPaul M Watt26-Oct-02 11:36 
GeneralRe: Operator overloading! Help! Pin
MGraw26-Oct-02 14:38
sussMGraw26-Oct-02 14:38 
GeneralRe: Operator overloading! Help! Pin
Paul M Watt26-Oct-02 19:44
mentorPaul M Watt26-Oct-02 19:44 
GeneralRe: Operator overloading! Help! Pin
MGraw27-Oct-02 8:51
sussMGraw27-Oct-02 8:51 
GeneralNeed Help(CDC) Pin
26-Oct-02 6:26
suss26-Oct-02 6:26 
GeneralRe: Need Help(CDC) Pin
Chris Losinger26-Oct-02 11:32
professionalChris Losinger26-Oct-02 11:32 
QuestionHow to programmatically generate GUIDs? Pin
Abin26-Oct-02 6:15
Abin26-Oct-02 6:15 
AnswerRe: How to programmatically generate GUIDs? Pin
Michael Dunn26-Oct-02 6:54
sitebuilderMichael Dunn26-Oct-02 6:54 
AnswerRe: How to programmatically generate GUIDs? Pin
Alexander Wiseman26-Oct-02 9:48
Alexander Wiseman26-Oct-02 9:48 
GeneralRe: How to programmatically generate GUIDs? Pin
Abin26-Oct-02 10:28
Abin26-Oct-02 10:28 
QuestionDLL function export ? Pin
Stan the man26-Oct-02 5:45
Stan the man26-Oct-02 5:45 
AnswerRe: DLL function export ? Pin
Paul M Watt26-Oct-02 6:37
mentorPaul M Watt26-Oct-02 6:37 
Questionare they the same? Pin
includeh1026-Oct-02 4:57
includeh1026-Oct-02 4:57 
AnswerRe: are they the same? Pin
Gary R. Wheeler27-Oct-02 3:39
Gary R. Wheeler27-Oct-02 3:39 
GeneralVisual Studio .NET problem, please help. Pin
Anonymous26-Oct-02 3:38
Anonymous26-Oct-02 3:38 
GeneralRe: Visual Studio .NET problem, please help. Pin
Stephane Rodriguez.26-Oct-02 3:50
Stephane Rodriguez.26-Oct-02 3:50 

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.