Click here to Skip to main content
15,909,591 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAdding an menuitem runtime Pin
KNEI28-Jun-00 6:13
sussKNEI28-Jun-00 6:13 
QuestionHow to view the files from a zip files Pin
Member 316528-Jun-00 4:50
Member 316528-Jun-00 4:50 
AnswerRe: How to view the files from a zip files Pin
Blake Miller28-Jun-00 7:09
Blake Miller28-Jun-00 7:09 
GeneralLNK2001 in MFC Extension DLL's Pin
Hans-Peter Warter28-Jun-00 2:43
Hans-Peter Warter28-Jun-00 2:43 
GeneralRe: LNK2001 in MFC Extension DLL's Pin
GBO28-Jun-00 4:47
GBO28-Jun-00 4:47 
GeneralCWnd and scrolling... Pin
Member 91827-Jun-00 15:49
Member 91827-Jun-00 15:49 
GeneralQUEST: #define classoffset(base, derived) ((DWORD)(static_cast<base*>((derived*)8))-8) Pin
cuong cao27-Jun-00 15:21
cuong cao27-Jun-00 15:21 
GeneralSetCommBreak Pin
Barry Zhao27-Jun-00 10:47
Barry Zhao27-Jun-00 10:47 
Hi,

I have some codes developed using VC++6.0 on Windows 2000 Professional RC3:

...
SetCommBreak(commPort);//comPort is a handle to com1
sleep(certain_value);//
ClearCommBreak(commPort);
...

I have a sniffer program running on another pc B which has special cables connected to the pc A running above program, and A is connected to pc C.

B detects one and only one byte which is 0x00 when above codes are executed when certain_value is larger than 10, and sometimes none or 0xff when certain_value is less than 3. I am pretty confident the sniffer program is OK.

My question is: is data 0x00 supposed to appear on the line?
What I want is to send a break signal from A to C AND C won't think A sends some thing before the break signal.

By the way, I have tried PurgeComm(..) before setcommbreak, it doesn't work.

Is it a W2K thing or this is the way it works?

Thanks a lot

Barry
GeneralRe: SetCommBreak Pin
Alex Gorev27-Jun-00 11:56
Alex Gorev27-Jun-00 11:56 
GeneralChanging the selection color of a CRichEditView Pin
JCpp27-Jun-00 8:46
JCpp27-Jun-00 8:46 
GeneralRe: Changing the selection color of a CRichEditView Pin
BOURDAUD'HUI27-Jun-00 23:19
BOURDAUD'HUI27-Jun-00 23:19 
GeneralRegistry Question Pin
ldaoust27-Jun-00 7:16
ldaoust27-Jun-00 7:16 
GeneralRe: Registry Question Pin
pba_27-Jun-00 22:42
pba_27-Jun-00 22:42 
GeneralRe: Registry Question Pin
ldaoust28-Jun-00 6:01
ldaoust28-Jun-00 6:01 
GeneralRe: Registry Question Pin
Blake Miller28-Jun-00 7:06
Blake Miller28-Jun-00 7:06 
GeneralPrint source file in color Pin
Claude Gagnon27-Jun-00 5:56
Claude Gagnon27-Jun-00 5:56 
GeneralRe: Print source file in color Pin
Paul Selormey28-Jun-00 7:29
Paul Selormey28-Jun-00 7:29 
GeneralCTabCtrl with CPropertyPage Pin
Member 253753127-Jun-00 4:22
Member 253753127-Jun-00 4:22 
GeneralObjective grid and mfc extention dll Pin
Eugene Karpov27-Jun-00 3:54
Eugene Karpov27-Jun-00 3:54 
GeneralAdd-ins to explorer Pin
Andreas Philipson27-Jun-00 3:31
Andreas Philipson27-Jun-00 3:31 
GeneralRe: Add-ins to explorer Pin
Erik Thompson27-Jun-00 6:04
sitebuilderErik Thompson27-Jun-00 6:04 
GeneralGetting the start upp parameters of a MFC Application... Pin
Andreas Philipson27-Jun-00 3:27
Andreas Philipson27-Jun-00 3:27 
GeneralRe: Getting the start upp parameters of a MFC Application... Pin
Blake Miller27-Jun-00 6:27
Blake Miller27-Jun-00 6:27 
QuestionIs it possible to intercept and parse the HTML that IE requests before IE does? Pin
Robert Barron27-Jun-00 2:42
sussRobert Barron27-Jun-00 2:42 
AnswerRe: Is it possible to intercept and parse the HTML that IE requests before IE does? Pin
pba_27-Jun-00 3:15
pba_27-Jun-00 3:15 

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.