in reply to Re: Poke peek & inp outp equivalents
in thread Poke peek & inp outp equivalents

Thanks for your help. Here is an update:
MakeMaker (ActiveState 5.8.0) hates spaces where perl.exe's path is concerned or I am to stupid to figure out a way to fix its problem with "C:\Program Files\perl".
Uninstalled perl. Re-installed in "C:\perl" and got a little farther.

While linking I got unresolved references.
Tried coping msvcrt.lib & conio.h everywhere. No luck. I found 'libpth' in Config.pm and 'libpath' in Makefile but changes there didn't work. There is more with the libs but the answer was:
In the XS code above I needed '_inp' not 'inp' (and the same for the rest). My fault for not mentioning I'm on a Windows 2000 machine. :(

Now I just have to figure out the way around NT complaining with STAUS_PRIVILEGED_INSTRUCTION when I use outp. :| Ugh.

Does anyone know how to get it to work in kernel mode instead of user? That should probably be a new question.

  • Comment on Re: Re: Poke peek & inp outp equivalents

Replies are listed 'Best First'.
Re: Re: Re: Poke peek & inp outp equivalents
by Roger (Parson) on Jan 29, 2004 at 01:48 UTC
    While linking I got unresolved references.

    Opps, forgot to mention that you need to compile/link in release mode as inp and outp will not work in debug mode.

    Now I just have to figure out the way around NT complaining with STAUS_PRIVILEGED_INSTRUCTION when I use outp.

    You could use a Windows NT/2000/XP I/O Port device driver to do the port I/O on your behalf. Have a look at the following article which gives an insight to the problem and solution.