Click here to Skip to main content
16,011,805 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding more than 9 pages to a Wizard created using VC++ 6.0 Pin
Subhobroto24-Jul-06 0:25
Subhobroto24-Jul-06 0:25 
GeneralRe: Adding more than 9 pages to a Wizard created using VC++ 6.0 Pin
Naveen24-Jul-06 0:42
Naveen24-Jul-06 0:42 
GeneralRe: Adding more than 9 pages to a Wizard created using VC++ 6.0 Pin
Subhobroto24-Jul-06 0:45
Subhobroto24-Jul-06 0:45 
Questionweb SMS Pin
Ram Murali18-Jul-06 19:02
Ram Murali18-Jul-06 19:02 
AnswerRe: web SMS Pin
Divyang Mithaiwala18-Jul-06 19:46
Divyang Mithaiwala18-Jul-06 19:46 
GeneralRe: web SMS Pin
Ram Murali18-Jul-06 19:54
Ram Murali18-Jul-06 19:54 
Questioncopying circular buffer Pin
thathvamsi18-Jul-06 16:38
thathvamsi18-Jul-06 16:38 
AnswerRe: copying circular buffer Pin
ankita patel19-Jul-06 10:36
ankita patel19-Jul-06 10:36 
thathvamsi wrote:
memcpy(cpRxData, m_commPort.GetRawInput(), wBytesRx);


Above statement copies the first "wBytesRx" number of bytes to the cpRxData from the start for the cCircularBuffer. And that is always the first packet you received, as you are appending the cCircularBuffer as you receive new packets.

There are multiple ways to solve this depending on your requirement, like whether you need to keep the old packet data in the cCircularBuffer or can discard them or whether the packet length is always same or can vary.

Keep track of your packet numbers and return the char pointer (when you return it in the GetRawInput()) starting from the packet you are trying to access in OnPortRx.

Ankita
QuestionConversion from int to char Pin
Kuroro Rucilful18-Jul-06 15:57
Kuroro Rucilful18-Jul-06 15:57 
AnswerRe: Conversion from int to char Pin
charlieg18-Jul-06 16:09
charlieg18-Jul-06 16:09 
GeneralRe: Conversion from int to char Pin
Kuroro Rucilful18-Jul-06 16:15
Kuroro Rucilful18-Jul-06 16:15 
GeneralRe: Conversion from int to char Pin
ThatsAlok18-Jul-06 18:37
ThatsAlok18-Jul-06 18:37 
AnswerRe: Conversion from int to char Pin
toxcct18-Jul-06 21:22
toxcct18-Jul-06 21:22 
AnswerRe: Conversion from int to char Pin
Hamid_RT18-Jul-06 21:24
Hamid_RT18-Jul-06 21:24 
Questionthe parameter of CreateThread problem Pin
missiles18-Jul-06 15:23
missiles18-Jul-06 15:23 
AnswerRe: the parameter of CreateThread problem Pin
Stephen Hewitt18-Jul-06 15:36
Stephen Hewitt18-Jul-06 15:36 
GeneralRe: the parameter of CreateThread problem Pin
led mike18-Jul-06 17:24
led mike18-Jul-06 17:24 
GeneralRe: the parameter of CreateThread problem Pin
Stephen Hewitt18-Jul-06 17:54
Stephen Hewitt18-Jul-06 17:54 
GeneralRe: the parameter of CreateThread problem Pin
led mike18-Jul-06 18:08
led mike18-Jul-06 18:08 
GeneralRe: the parameter of CreateThread problem Pin
missiles20-Jul-06 16:04
missiles20-Jul-06 16:04 
QuestionDoes any one know something about usbzip boot? Pin
momer18-Jul-06 14:56
momer18-Jul-06 14:56 
QuestionProblem using RegEx (boost) Pin
Mark F.18-Jul-06 14:25
Mark F.18-Jul-06 14:25 
AnswerRe: Problem using RegEx (boost) Pin
Stephen Hewitt18-Jul-06 14:31
Stephen Hewitt18-Jul-06 14:31 
GeneralRe: Problem using RegEx (boost) Pin
Mark F.18-Jul-06 16:21
Mark F.18-Jul-06 16:21 
GeneralRe: Problem using RegEx (boost) Pin
Stephen Hewitt18-Jul-06 16:39
Stephen Hewitt18-Jul-06 16:39 

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.