Quote:
Originally posted by Alextrons
Thanks Adrian for the idea, but how about _inp() and _outp() functions? Can we use this to get the address of LPT1? And you mean that there is no "ptraddr=(unsigned int far*)0x00000408; " kind of code in VC++? Can you make an equivalent code for me for that one line?
Sorry for being insistent, I hope you don't mind.
It has nothing to do with VC++. Windows won't let you access memory like that. Memory management prohibits you from accessing memory not allocated to your program.