Click here to Skip to main content
15,908,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: screen size Pin
David Crow6-Apr-06 10:44
David Crow6-Apr-06 10:44 
GeneralRe: screen size Pin
arr.cpp6-Apr-06 10:56
arr.cpp6-Apr-06 10:56 
AnswerRe: screen size Pin
Graham Bradshaw6-Apr-06 13:02
Graham Bradshaw6-Apr-06 13:02 
QuestionWriting stream in MS Word document Pin
saima azeemi6-Apr-06 10:19
saima azeemi6-Apr-06 10:19 
AnswerRe: Writing stream in MS Word document Pin
Sheng Jiang 蒋晟6-Apr-06 16:08
Sheng Jiang 蒋晟6-Apr-06 16:08 
QuestionInternet/Network Programming Pin
CNewbie6-Apr-06 10:16
CNewbie6-Apr-06 10:16 
AnswerRe: Internet/Network Programming Pin
David Crow6-Apr-06 10:46
David Crow6-Apr-06 10:46 
AnswerRe: Internet/Network Programming Pin
valikac6-Apr-06 11:19
valikac6-Apr-06 11:19 
GeneralRe: Internet/Network Programming Pin
Lord Kixdemp6-Apr-06 13:12
Lord Kixdemp6-Apr-06 13:12 
QuestionRe: Key code question Pin
EvScott6-Apr-06 9:57
EvScott6-Apr-06 9:57 
AnswerRe: Key code question Pin
Waldermort6-Apr-06 10:20
Waldermort6-Apr-06 10:20 
GeneralRe: Key code question Pin
EvScott6-Apr-06 14:18
EvScott6-Apr-06 14:18 
QuestionWho can i Know that my Application Supports Doc/View Architecture? Pin
CodeVarma6-Apr-06 9:10
CodeVarma6-Apr-06 9:10 
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 

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.