Click here to Skip to main content
15,904,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: groupbox?->no tooltip? Pin
V.9-Dec-04 6:30
professionalV.9-Dec-04 6:30 
GeneralChange file extensions.... Pin
Anonymous9-Dec-04 2:53
Anonymous9-Dec-04 2:53 
GeneralRe: Change file extensions.... Pin
David Crow9-Dec-04 5:58
David Crow9-Dec-04 5:58 
QuestionHow I can stop an USB-drive from my application? Pin
Rolf Faßler9-Dec-04 2:50
Rolf Faßler9-Dec-04 2:50 
GeneralChange Extension of Files Pin
Anonymous9-Dec-04 2:49
Anonymous9-Dec-04 2:49 
GeneralRe: Change Extension of Files Pin
toxcct9-Dec-04 21:43
toxcct9-Dec-04 21:43 
GeneralMAPI c/c++ programming Pin
rgilad9-Dec-04 2:20
rgilad9-Dec-04 2:20 
GeneralWindow Menu messages Pin
Usur9-Dec-04 1:58
Usur9-Dec-04 1:58 
GeneralRe: Window Menu messages Pin
ThatsAlok9-Dec-04 2:25
ThatsAlok9-Dec-04 2:25 
GeneralRe: Window Menu messages Pin
Usur9-Dec-04 7:21
Usur9-Dec-04 7:21 
GeneralRe: Window Menu messages Pin
Maximilien9-Dec-04 2:58
Maximilien9-Dec-04 2:58 
GeneralRe: Window Menu messages Pin
Prakash Nadar9-Dec-04 4:18
Prakash Nadar9-Dec-04 4:18 
GeneralRe: Window Menu messages Pin
toxcct9-Dec-04 21:41
toxcct9-Dec-04 21:41 
GeneralRe: Window Menu messages Pin
Prakash Nadar10-Dec-04 8:04
Prakash Nadar10-Dec-04 8:04 
GeneralChanging the background color for common dialogs Pin
venkatasundaram9-Dec-04 1:17
venkatasundaram9-Dec-04 1:17 
GeneralRe: Changing the background color for common dialogs Pin
Arsalan Malik9-Dec-04 18:43
Arsalan Malik9-Dec-04 18:43 
Generalbook mark of Html help Pin
includeh108-Dec-04 23:51
includeh108-Dec-04 23:51 
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

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.