"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 ...
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.
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.
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
Re: "Port I/O instructions and c#"
Quote:
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.