Click here to Skip to main content
16,012,061 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to detect and block ping by programming? Pin
Alexander M.,29-Aug-03 5:24
Alexander M.,29-Aug-03 5:24 
GeneralRe: How to detect and block ping by programming? Pin
brapler29-Aug-03 17:15
brapler29-Aug-03 17:15 
GeneralPaste Bitmap into CRichEditCtrl Pin
CodeBrain29-Aug-03 3:20
CodeBrain29-Aug-03 3:20 
GeneralRe: Paste Bitmap into CRichEditCtrl Pin
David Crow29-Aug-03 4:09
David Crow29-Aug-03 4:09 
GeneralRe: Paste Bitmap into CRichEditCtrl Pin
Anonymous29-Aug-03 12:34
Anonymous29-Aug-03 12:34 
GeneralRe: Paste Bitmap into CRichEditCtrl Pin
CodeBrain29-Aug-03 12:37
CodeBrain29-Aug-03 12:37 
Generalchm file Pin
JensB29-Aug-03 3:07
JensB29-Aug-03 3:07 
GeneralReadFile blues under XP Pin
fd975029-Aug-03 2:55
professionalfd975029-Aug-03 2:55 
Hi,

I have a thoroughly odd problem and really no longer know where to look. Any possible pointer would be very much appreciated.

Problem: I have two programs which are basically used to send/receive data blocks on a serial port. Some time ago I got me a USB to serial port converter with which both software sets used to work very, very well because the drivers that come with the converter make it seem as if there is simply an additional serial port. From the point of view of windows programs using window's standard serial port interfacing methods there is no discernible difference between a normal serial port and the converter.
In both programs the data transfer (receive and transmit of a data block) is done by means of window's ReadFile and WriteFile functions. Under all pre-XP versions of Windows both programs work OK. Under XP though there is one that does not while the other one still works perfectly. After much debugging etc... I found that in the one case a received data block is still read correctly by means of the ReadFile function. In the other case The data block that is read is strangely modified. The modfication is such that if say a 9 byte data block is sent I do receive all the bytes, the bytes are correct but the order in which they are received is different from the order in which they were sent. To illustrate (bytes shown as decimal values):

actual block of bytes is: 09, 02, 33, 68, 97, 116, 97, 35, 156.

Bytes read by Readfile : 02, 33, 68, 97, 116, 97, 35, 156, 09

As shown above the first byte of the nine byte block ends up as the last byte. Also, it does not make the slightest bit of difference whether I read the nine byte block in one go or byte by byte. The result stays the same. I meticulously checked that there is no additional byte identical to the first one following the
data block and there certainly is not.

I am really stuck here and therefore any help or suggestion as to what may be doing this would be much appreciated.

All for now,
Filip
GeneralSolved: wrong question Pin
fd975029-Aug-03 4:22
professionalfd975029-Aug-03 4:22 
GeneralDetermine system device Pin
El'Cachubrey29-Aug-03 2:31
El'Cachubrey29-Aug-03 2:31 
GeneralRe: Determine system device Pin
vcplusplus29-Aug-03 4:52
vcplusplus29-Aug-03 4:52 
GeneralRe: Determine system device Pin
Alexander M.,29-Aug-03 5:27
Alexander M.,29-Aug-03 5:27 
Generalmodifying / patching / reverse engineering Pin
Kuniva29-Aug-03 2:05
Kuniva29-Aug-03 2:05 
GeneralRe: modifying / patching / reverse engineering Pin
Alexander M.,29-Aug-03 5:39
Alexander M.,29-Aug-03 5:39 
GeneralRe: modifying / patching / reverse engineering Pin
Kuniva29-Aug-03 7:46
Kuniva29-Aug-03 7:46 
GeneralRe: modifying / patching / reverse engineering Pin
Kuniva29-Aug-03 8:41
Kuniva29-Aug-03 8:41 
GeneralPortability between WinCE and PC Pin
IceBerG7129-Aug-03 0:43
IceBerG7129-Aug-03 0:43 
QuestionHow to to change invalidate rect for WindowLess ActiveX ? Pin
vgrigor29-Aug-03 0:13
vgrigor29-Aug-03 0:13 
GeneralListView Pin
Atlence28-Aug-03 22:37
Atlence28-Aug-03 22:37 
GeneralRe: ListView Pin
Steve S29-Aug-03 2:14
Steve S29-Aug-03 2:14 
GeneralRe: ListView Pin
vcplusplus29-Aug-03 3:16
vcplusplus29-Aug-03 3:16 
GeneralBuffer Size Pin
IceBerG7128-Aug-03 22:10
IceBerG7128-Aug-03 22:10 
GeneralRe: Buffer Size Pin
Iain Clarke, Warrior Programmer28-Aug-03 22:34
Iain Clarke, Warrior Programmer28-Aug-03 22:34 
GeneralRe: Buffer Size Pin
Steve S28-Aug-03 22:37
Steve S28-Aug-03 22:37 
GeneralRe: Buffer Size Pin
IceBerG7128-Aug-03 22:47
IceBerG7128-Aug-03 22:47 

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.