Changed <Winbase.h> to <windows.h> and now this will compile---
Code:
#include <windows.h>
#include <stdio.h>
HANDLE pic;
main()
{
pic = CreateFile( "COM1", // address of name of the communications device
GENERIC_READ | GENERIC_WRITE, // access (read-write) mode
0, // share mode
NULL, // address of security descriptor
OPEN_EXISTING, // how to create
0, // file attributes
NULL // handle of file with attributes to copy
);
}
Have not had time to try in full program yet, but now I have a starting point.
Thank you for your help!!!