i am writing c ode for a college project i'm using dev c++
what i was wondering is, how would you go about doing it using dev c++
i managed to do it using microsoft visual c++ using
Code:
#include <iostream.h>
#include<io.h>
#include<windows.h>
#define DATA 0x378
#define STATUS 0x379
#define CONTROL 0x37a
and this in main
Code:
HANDLE h;
h = CreateFile("\\\\.\\giveio", GENERIC_READ, 0, NULL, OPEN_ EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (h == INVALID_HANDLE_VALUE) {
printf("Couldn't accses giveio device\n");
}
CloseHandel(h);
but help 'cause
Code:
_outp(int addres,value);
_inp(addres);
aren't working
thanks kindly