I found the code below as a DOS program and I need it to include in my MFC Windows program but I got an error of "Memory could not be read", Is there another way to handle this in Windows?
This is the code:
unsigned int GetLPT1Addr()
{
unsigned int far *ptraddr;
unsigned int address;
ptraddr=(unsigned int far*)0x00000408;
address=*ptraddr;
return address;
}
Thanks in advance,
Alextrons