Bruce Varley
unread,May 7, 2012, 8:47:43 AM5/7/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I have code that compiles fine under MSVC 6.0, that I'm trying to compile
under VS Express 2010 on another machine. Amongst the errors are a couple
that indicate that GENERIC_READ and GENERIC_WRITE are not being recognised.
If I include <windows.h> I get another raft of errors. What header files do
I need to include?
Here's the start of the code.
#include <StdAfx.h>
/* header file contains prototypes */
#include "C:\\C_Source\\SIO2011.h"
HANDLE hPort ;
bool InitPort (char* PortID)
{
hPort = CreateFile (
PortID,
GENERIC_WRITE | GENERIC_READ,
0,
NULL,
OPEN_EXISTING,
0,
0) ;
.... lots more code
}