Im using visual c++ 6,I want to use _outp and _inp to access the network card in order to send test ethernet frame (my application).
I declare <conio.h> but i always get an error!!
check conio.h and make sure you have the right syntax. If you have the right syntax, you shouldn't get an undeclared error, unless the function doesn't exist in conio.h at all.
obviously, Johnfill is on the right track. It looks like something needs to be defined BEFORE you include conio.h If you look at conio.h there is probably an:
#ifdef
before the declaration of outp. Also don't use the '_' like I said above, it looks like there is an ansi version outp.
To Speedo, which operating system that you are using? DOS or Windows? for DOS, you're correct to include<conio.h>, this site explaining on interrupt handler concept in DOS
I also get errors when using _inp OR _outp. I'm running windows xp, VC++ 6. I'm trying to build a simple program that reads the data coming in through any given port but everytime I try to execute the code containing _inp or _outp, it stops the program and says: "has encountered a problem and needs to close". Any thoughts as to why? It seems I've tried everything but can't seem to shake that error message. -Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.