Click here to Skip to main content
15,918,243 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to hide a window Pin
Elsie2-May-09 2:43
Elsie2-May-09 2:43 
GeneralRe: how to hide a window Pin
Elsie2-May-09 3:11
Elsie2-May-09 3:11 
GeneralRe: how to hide a window Pin
tyr20003-May-09 2:01
tyr20003-May-09 2:01 
QuestionRe: how to hide a window Pin
David Crow2-May-09 5:59
David Crow2-May-09 5:59 
AnswerRe: how to hide a window Pin
tyr20003-May-09 2:00
tyr20003-May-09 2:00 
GeneralRe: how to hide a window Pin
David Crow3-May-09 15:16
David Crow3-May-09 15:16 
GeneralRe: how to hide a window Pin
tyr20004-May-09 4:06
tyr20004-May-09 4:06 
QuestionWriting raw data in byte form to Network Adapter w/ C++ Pin
TheScientistIsDead1-May-09 20:59
TheScientistIsDead1-May-09 20:59 
I'm trying to determine a way to write raw bytes of data to an ethernet cable (but more importantly, to the device to which it is attached), EXACTLY as described here for parallel cables:
I/O Uncesored 1 - Controlling LEDs (Light Emitting Diodes with Parallel Port

Looking into Inpout32.dll, which the article makes use of, it seems that it was developed specifically for parallel ports.

Then I looked into Physical "I/O Range" of the Network Adapter card itself: 0x9C00-0x9CFF .
It appears that there is a 256 bit range in which data can be written to/read from. However, when trying to initialize a pointer (dereferenced with the & sign), I get a segfault. Not that I ever really expected that to work anyway. If it's important, I'm running under a user w/ admin priveledges.

It couldn't be as simple as using the MFC CAsyncConnection stream classes and overloaded << and >> operators, could it?

How should I go about doing this? Is the solution going to be as complicated as writing my own kernel-mode driver?
Thanks,
-Adam
AnswerRe: Writing raw data in byte form to Network Adapter w/ C++ Pin
Code-o-mat1-May-09 22:50
Code-o-mat1-May-09 22:50 
AnswerRe: Writing raw data in byte form to Network Adapter w/ C++ Pin
Jonathan Davies2-May-09 3:23
Jonathan Davies2-May-09 3:23 
AnswerRe: Writing raw data in byte form to Network Adapter w/ C++ Pin
TheScientistIsDead2-May-09 7:54
TheScientistIsDead2-May-09 7:54 
Questionhelp with implementation of strspn( ) Pin
kaku_lala1-May-09 15:44
kaku_lala1-May-09 15:44 
QuestionRe: help with implementation of strspn( ) Pin
David Crow1-May-09 16:11
David Crow1-May-09 16:11 
AnswerRe: help with implementation of strspn( ) Pin
Stuart Dootson1-May-09 16:15
professionalStuart Dootson1-May-09 16:15 
Questionwhat is wrong with this code snippet - memset() implementation Pin
kaku_lala1-May-09 15:42
kaku_lala1-May-09 15:42 
AnswerRe: what is wrong with this code snippet - memset() implementation Pin
Stuart Dootson1-May-09 16:11
professionalStuart Dootson1-May-09 16:11 
AnswerRe: what is wrong with this code snippet - memset() implementation Pin
David Crow1-May-09 16:15
David Crow1-May-09 16:15 
AnswerRe: what is wrong with this code snippet - memset() implementation Pin
Joe Woodbury1-May-09 19:32
professionalJoe Woodbury1-May-09 19:32 
QuestionOperator overloading and chaning streaming operators Pin
squall231-May-09 14:04
squall231-May-09 14:04 
AnswerRe: Operator overloading and chaning streaming operators Pin
Stuart Dootson1-May-09 16:06
professionalStuart Dootson1-May-09 16:06 
GeneralRe: Operator overloading and chaning streaming operators Pin
squall232-May-09 1:41
squall232-May-09 1:41 
QuestionHow do I debug a release build? Pin
bulg1-May-09 10:42
bulg1-May-09 10:42 
AnswerRe: How do I debug a release build? Pin
Rolf Kristensen1-May-09 11:31
Rolf Kristensen1-May-09 11:31 
GeneralRe: How do I debug a release build? Pin
bulg1-May-09 13:51
bulg1-May-09 13:51 
GeneralRe: How do I debug a release build? Pin
Stuart Dootson1-May-09 15:22
professionalStuart Dootson1-May-09 15:22 

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.