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

C / C++ / MFC

 
AnswerRe: Who can i Know that my Application Supports Doc/View Architecture? Pin
Maximilien6-Apr-06 9:16
Maximilien6-Apr-06 9:16 
QuestionQuestion about typecast Pin
Netvisdom6-Apr-06 8:32
Netvisdom6-Apr-06 8:32 
AnswerRe: Question about typecast Pin
David Crow6-Apr-06 8:38
David Crow6-Apr-06 8:38 
GeneralRe: Question about typecast Pin
Netvisdom6-Apr-06 9:05
Netvisdom6-Apr-06 9:05 
QuestionRe: Question about typecast Pin
David Crow6-Apr-06 9:09
David Crow6-Apr-06 9:09 
AnswerRe: Question about typecast Pin
Richard Andrew x646-Apr-06 10:02
professionalRichard Andrew x646-Apr-06 10:02 
GeneralRe: Question about typecast Pin
David Crow6-Apr-06 10:36
David Crow6-Apr-06 10:36 
Questionserial port communication in embedded visual c++ Pin
neha_vi216-Apr-06 8:30
neha_vi216-Apr-06 8:30 
Cry | :(( I am not able to read & write to serial port in WINDOWS CE using embedded visual c++. i am including the code i have tried.it showing no.of bytes written as 1 but while reading it is showing as no.of bytes read as 0.

//writing
DWORD dwError,dwNumBytesWritten;
int rc;
HANDLE hPort;
BYTE B;
TCHAR* pFileName = TEXT("COM1:");
B='a';

hPort =CreateFile(pFileName,GENERIC_READ| GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);
rc=WriteFile (hPort,&B,1,&dwNumBytesWritten,NULL);
CloseHandle (hPort);

//reading
DWORD dwError,dwNumBytesRead;
int rc;
HANDLE hPort;
BYTE B;
TCHAR* pFileName = TEXT("COM2:");

hPort =CreateFile(pFileName,GENERIC_READ| GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);
rc=ReadFile (hPort,&B,1,&dwNumBytesRead,NULL);
MessageBox(NULL,TEXT(""+B),NULL,MB_OK);
CloseHandle (hPort);


can anyone please halp me

Thanks for your reply in advance.



Neha
QuestionNewbie question Pin
cdengler6-Apr-06 8:24
cdengler6-Apr-06 8:24 
AnswerRe: Newbie question Pin
David Crow6-Apr-06 10:42
David Crow6-Apr-06 10:42 
GeneralRe: Newbie question Pin
Richard Andrew x646-Apr-06 11:45
professionalRichard Andrew x646-Apr-06 11:45 
QuestionToolbar border in dialog question Pin
Cpt Rick6-Apr-06 8:24
Cpt Rick6-Apr-06 8:24 
QuestionCTooltipCtrl for a modeless dialog in a DLL Pin
madmax00016-Apr-06 7:49
madmax00016-Apr-06 7:49 
QuestionInteresting Windows Architecture Questions Pin
Richard Andrew x646-Apr-06 7:47
professionalRichard Andrew x646-Apr-06 7:47 
QuestionPropertyPage Help Pin
NYTSX6-Apr-06 7:28
NYTSX6-Apr-06 7:28 
QuestionRe: PropertyPage Help Pin
David Crow6-Apr-06 7:42
David Crow6-Apr-06 7:42 
AnswerRe: PropertyPage Help Pin
NYTSX6-Apr-06 7:55
NYTSX6-Apr-06 7:55 
GeneralRe: PropertyPage Help Pin
David Crow6-Apr-06 8:17
David Crow6-Apr-06 8:17 
GeneralRe: PropertyPage Help Pin
NYTSX6-Apr-06 8:27
NYTSX6-Apr-06 8:27 
GeneralRe: PropertyPage Help Pin
David Crow6-Apr-06 8:35
David Crow6-Apr-06 8:35 
GeneralRe: PropertyPage Help Pin
NYTSX6-Apr-06 9:41
NYTSX6-Apr-06 9:41 
GeneralRe: PropertyPage Help Pin
David Crow6-Apr-06 10:38
David Crow6-Apr-06 10:38 
Questionlord of the sockets please help Pin
nahitan6-Apr-06 7:26
nahitan6-Apr-06 7:26 
AnswerRe: lord of the sockets please help Pin
Richard Andrew x646-Apr-06 8:00
professionalRichard Andrew x646-Apr-06 8:00 
QuestionDialog based application with background Pin
Rostfrei6-Apr-06 6:31
Rostfrei6-Apr-06 6:31 

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.