Click here to Skip to main content
15,897,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTimer in a non-CWnd class Pin
anderslundsgard8-Dec-04 23:45
anderslundsgard8-Dec-04 23:45 
GeneralHere is my code to accomplish that and the compiler error: Pin
anderslundsgard9-Dec-04 0:08
anderslundsgard9-Dec-04 0:08 
GeneralRe: Here is my code to accomplish that and the compiler error: Pin
Sujan Christo9-Dec-04 0:35
Sujan Christo9-Dec-04 0:35 
GeneralRe: Here is my code to accomplish that and the compiler error: Pin
anderslundsgard9-Dec-04 1:14
anderslundsgard9-Dec-04 1:14 
GeneralVC++ .net and serial communication Pin
doneirik8-Dec-04 23:41
doneirik8-Dec-04 23:41 
GeneralRe: VC++ .net and serial communication Pin
Sujan Christo9-Dec-04 0:10
Sujan Christo9-Dec-04 0:10 
GeneralRe: VC++ .net and serial communication Pin
jmostei9-Dec-04 3:35
jmostei9-Dec-04 3:35 
QuestionHow to Open port on win XP ? Pin
Ritu Kwatra8-Dec-04 23:40
Ritu Kwatra8-Dec-04 23:40 
Hi,

I am developing an application where I open COM2 port for communication.The code to open the port is

HANDLE hTest;
hTest = CreateFile ("COM2",GENERIC_READ | GENERIC_WRITE , 0, NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL);

if ((hTest == NULL) || (hTest == INVALID_HANDLE_VALUE))
MessageBox ("Port cannot be opened",NULL,MB_OK);
else
MessageBox ("Port cannot be opened",NULL,MB_OK);


This code is running fine when I run the code on Windows 98 or windows 2000 but when I try to run it on Windows XP, the CreateFile statement returns 0xffffff which is INVALID_HANDLE_VALUE.

Can any one tell how can i open a port on Windows XP

Rits
AnswerRe: How to Open port on win XP ? Pin
Budric B.9-Dec-04 5:16
Budric B.9-Dec-04 5:16 
AnswerRe: How to Open port on win XP ? Pin
Paul Belikian10-Dec-04 7:37
Paul Belikian10-Dec-04 7:37 
GeneralRe: How to Open port on win XP ? Pin
Ritu Kwatra12-Dec-04 16:44
Ritu Kwatra12-Dec-04 16:44 
Questionhow to mix audio and video Pin
Anonymous8-Dec-04 23:39
Anonymous8-Dec-04 23:39 
GeneralRename VC++ project name Pin
erkanina8-Dec-04 23:19
erkanina8-Dec-04 23:19 
GeneralRe: Rename VC++ project name Pin
Sujan Christo9-Dec-04 0:44
Sujan Christo9-Dec-04 0:44 
GeneralRe: Rename VC++ project name Pin
Cedric Moonen9-Dec-04 0:58
Cedric Moonen9-Dec-04 0:58 
GeneralRe: Rename VC++ project name Pin
erkanina14-Dec-04 2:33
erkanina14-Dec-04 2:33 
GeneralAbout CDialogBar Pin
pdtrung8-Dec-04 23:16
pdtrung8-Dec-04 23:16 
GeneralOLE problem with drag and drop Pin
jmostei8-Dec-04 23:02
jmostei8-Dec-04 23:02 
GeneralRe: OLE problem with drag and drop Pin
jmostei9-Dec-04 4:26
jmostei9-Dec-04 4:26 
GeneralRe: OLE problem with drag and drop Pin
jmostei9-Dec-04 4:26
jmostei9-Dec-04 4:26 
GeneralGetting document pointer Pin
Developer1018-Dec-04 22:58
Developer1018-Dec-04 22:58 
GeneralRe: Getting document pointer Pin
jmostei8-Dec-04 23:10
jmostei8-Dec-04 23:10 
GeneralRe: Getting document pointer Pin
Developer1019-Dec-04 8:43
Developer1019-Dec-04 8:43 
GeneralRe: Getting document pointer Pin
jmostei9-Dec-04 21:53
jmostei9-Dec-04 21:53 
GeneralRe: Getting document pointer Pin
Developer10110-Dec-04 20:13
Developer10110-Dec-04 20:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.