Click to See Complete Forum and Search --> : Equivilent .net code?


shenku
April 21st, 2005, 07:18 AM
Hi gents

I am trying to pop open a cash drawer from my machine and am struggling to do so. Ive been given c code that apparently does this but the last time I did c was 5 years ago and I am currently a vb.net developer?

If you can shed any light that would be great, either equivlient functions or how to go about porting it...

Cheers
Thanks.

Essentially the code is sending a hex value to a com port which in turn pops the till open...

NoHero
April 21st, 2005, 11:14 AM
You have to dismiss your code completly.:


The .NET is not a machine language compiled code. It is some kind of byte code that does not - as far as I know - support direct Assembly which would allow you to read on Intel specified ports.
The newer OS from Microsoft - such as NT and above - does not allow Usermode application to use Intel ports. This would only work in a DOS or Win9X environment.


You should explicity post what you try to do, and we can see if we find either a Usermode solution for this problem. (Are trying to connect to somekind of hardware?), or if you should go and get the Driver Development Kit instead.

Best Regards,
Florian