Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Copying only a sinlge dialog box from one application to other application Pin
Nitheesh George4-Aug-09 5:10
Nitheesh George4-Aug-09 5:10 
QuestionA little further Pin
EliottA4-Aug-09 4:14
EliottA4-Aug-09 4:14 
AnswerRe: A little further Pin
Rajesh R Subramanian4-Aug-09 5:24
professionalRajesh R Subramanian4-Aug-09 5:24 
QuestionHow to compare a string output to a map where keys are also the same strings? Pin
Waldemar Ork4-Aug-09 3:57
Waldemar Ork4-Aug-09 3:57 
AnswerRe: How to compare a string output to a map where keys are also the same strings? Pin
«_Superman_»4-Aug-09 18:43
professional«_Superman_»4-Aug-09 18:43 
GeneralRe: How to compare a string output to a map where keys are also the same strings? Pin
Waldemar Ork4-Aug-09 21:48
Waldemar Ork4-Aug-09 21:48 
GeneralRe: How to compare a string output to a map where keys are also the same strings? Pin
Waldemar Ork5-Aug-09 6:29
Waldemar Ork5-Aug-09 6:29 
QuestionCOM port CreateFile -> Close Handle Works great, unless the USB device is unplugged, then it can not be reopened without restarted computer Pin
Greg Mort4-Aug-09 3:42
Greg Mort4-Aug-09 3:42 
COM port CreateFile -> Close Handle Works great, unless the USB device is unplugged, then it can not be reopened without restarted computer

If usb device is ever unplugged, i get a return of a ERROR_FILE_NOT_FOUND from Create handle, and cannot continue unless the computer is restarted

this happens when I am connected to the device and when I am not connected, just if it is unplugged and replugged in

(this works awesome, and can continue to create and close, until the device is unplugged from the computer and plugged back in)
hcomms[hcommcount-1] = CreateFile(com, 
 GENERIC_READ | GENERIC_WRITE,
 0,
 0,
 OPEN_EXISTING,
 FILE_ATTRIBUTE_NORMAL /*| FILE_FLAG_OVERLAPPED*/,
 0);

 if ( hcomms[hcommcount-1] == INVALID_HANDLE_VALUE)
 {
 DWORD error = GetLastError();
 return -1;
 }


if (!CloseHandle(hcomms[cindx]))
 {
 errorCode = GetLastError();
 }

QuestionRe: COM port CreateFile -> Close Handle Works great, unless the USB device is unplugged, then it can not be reopened without restarted computer Pin
Randor 4-Aug-09 3:54
professional Randor 4-Aug-09 3:54 
AnswerRe: COM port CreateFile -> Close Handle Works great, unless the USB device is unplugged, then it can not be reopened without restarted computer Pin
Greg Mort4-Aug-09 4:26
Greg Mort4-Aug-09 4:26 
GeneralRe: COM port CreateFile -> Close Handle Works great, unless the USB device is unplugged, then it can not be reopened without restarted computer Pin
Randor 4-Aug-09 4:41
professional Randor 4-Aug-09 4:41 
Questionconvert wchar* to byte* Pin
Rakesh54-Aug-09 3:42
Rakesh54-Aug-09 3:42 
AnswerRe: convert wchar* to byte* Pin
Randor 4-Aug-09 3:50
professional Randor 4-Aug-09 3:50 
GeneralRe: convert wchar* to byte* Pin
Rakesh54-Aug-09 4:12
Rakesh54-Aug-09 4:12 
GeneralRe: convert wchar* to byte* Pin
Randor 4-Aug-09 4:24
professional Randor 4-Aug-09 4:24 
GeneralRe: convert wchar* to byte* Pin
«_Superman_»4-Aug-09 18:47
professional«_Superman_»4-Aug-09 18:47 
QuestionHeavy Duty Client/Server Application Pin
Madhu_Rani4-Aug-09 3:30
Madhu_Rani4-Aug-09 3:30 
QuestionRe: Heavy Duty Client/Server Application Pin
Randor 4-Aug-09 3:57
professional Randor 4-Aug-09 3:57 
AnswerRe: Heavy Duty Client/Server Application Pin
Madhu_Rani4-Aug-09 17:57
Madhu_Rani4-Aug-09 17:57 
GeneralRe: Heavy Duty Client/Server Application Pin
Randor 4-Aug-09 19:07
professional Randor 4-Aug-09 19:07 
Questionoutlook in plain C++ Pin
Fuad Abu Sameer4-Aug-09 3:04
Fuad Abu Sameer4-Aug-09 3:04 
AnswerRe: outlook in plain C++ Pin
David Crow4-Aug-09 5:39
David Crow4-Aug-09 5:39 
QuestionAutomating application for multiple version of word Pin
gadag4-Aug-09 2:58
gadag4-Aug-09 2:58 
Questionassignment operator Pin
p_19604-Aug-09 2:41
p_19604-Aug-09 2:41 
AnswerRe: assignment operator Pin
Cedric Moonen4-Aug-09 2:45
Cedric Moonen4-Aug-09 2:45 

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.