-
May 31st, 2013, 03:58 AM
#1
"Port I/O instructions and c#"
I am converting my MFC based technical project to c#. Every thing is fine except port I/O instructions.
There are no _inp / _Outp equivalent commands in c#.
I tried to use them by including C Dll file containing I/O code. I tried
_inp/_outp instructions and also _asm out dx,ax instructions.
Its giving SEHExcepion error for using privileged instructions. I read on net that , these commands cant work in user mode.
Now what is a solution for this ? I need to read data from my hardware card RAM.
pl guide ...
-
May 31st, 2013, 05:39 PM
#2
Re: "Port I/O instructions and c#"
You'll need to write a device driver or obtain one from the manufacturer of the i/o card.
-
May 31st, 2013, 06:08 PM
#3
Re: "Port I/O instructions and c#"
Redundant info but _inp & _outp isn't supported in an OS of today. The older OS supported access to the hardware but newer OS does not so as Arjay say the access needs a device driver.
-
June 1st, 2013, 04:11 AM
#4
Re: "Port I/O instructions and c#"
Thank you Arjay Sir and S_M_A sir ..
Writing Device Driver is very very tough .
I have read and tried a lot to solve the issue .. nothing worked so put up question in the forum ...
Thank you once again
-
June 2nd, 2013, 10:48 PM
#5
Re: "Port I/O instructions and c#"
Originally Posted by new_2012
Thank you Arjay Sir and S_M_A sir ..
Writing Device Driver is very very tough .
I have read and tried a lot to solve the issue .. nothing worked so put up question in the forum ...
Thank you once again
Before writing your own driver, I'd check with the manufacturer to see if they have an SDK for your card.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|