S
Steve N.
I'm having trouble getting a handle returned from the following code
within a managed class:
HANDLE m_hSerialComm = CreateFile("\\\\.\\COM1\0\0\0",
GENERIC_READ|GENERIC_WRITE, 0, 0, OPEN_EXISTING,
FILE_FLAG_NO_BUFFERING, 0);
It works fine in non-managed code but I get a '{void}' returned when run
within managed code. I'm wondering if that's actually the problem or if
there is something else I'm missing... If it is the problem, then what's
the best solution?
Thanks
Steve
within a managed class:
HANDLE m_hSerialComm = CreateFile("\\\\.\\COM1\0\0\0",
GENERIC_READ|GENERIC_WRITE, 0, 0, OPEN_EXISTING,
FILE_FLAG_NO_BUFFERING, 0);
It works fine in non-managed code but I get a '{void}' returned when run
within managed code. I'm wondering if that's actually the problem or if
there is something else I'm missing... If it is the problem, then what's
the best solution?
Thanks
Steve