Click here to Skip to main content
15,936,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson21-Feb-12 13:04
Andrew Pearson21-Feb-12 13:04 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Jochen Arndt21-Feb-12 21:46
professionalJochen Arndt21-Feb-12 21:46 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson22-Feb-12 11:35
Andrew Pearson22-Feb-12 11:35 
AnswerRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Erudite_Eric16-Feb-12 20:20
Erudite_Eric16-Feb-12 20:20 
GeneralRe: Setting Parity Bit (serial port) not working. Q for the driver guru's. Pin
Andrew Pearson17-Feb-12 21:30
Andrew Pearson17-Feb-12 21:30 
QuestionProblem with qsort() on CArray(ptr *, ptr *) Pin
john john mackey16-Feb-12 14:41
john john mackey16-Feb-12 14:41 
AnswerRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
Richard Andrew x6416-Feb-12 16:09
professionalRichard Andrew x6416-Feb-12 16:09 
GeneralRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
john john mackey16-Feb-12 19:38
john john mackey16-Feb-12 19:38 
Sorry, i think the brackets watered down my description.

I have declared a CArray as:
C++
CArray<CmyData *, CmyData *> myDataArray;


I fill myDataArray correctly using CArray::SetAtGrow(). This is done correctly because I test by iterating through the CArray after i fill it and check all the items in the CmyData object.

Then i attempt:
C++
CmyData** pData = (CmyData **) myDataArray.GetData();
// verified both myDataArray and pData can report back my data - iterated thru

qsort(pData, numItems, sizeof(CmyData *), Compare);


Then when i look in my Compare() function, the 2 parameters have invalid values.

I don't know if there is a problem passing pData like i do OR if my Compare() function is not resolving the 2 parameters correctly.

(PS, thanks for the other posts on articles to read..)
AnswerRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
Chuck O'Toole16-Feb-12 17:29
Chuck O'Toole16-Feb-12 17:29 
AnswerRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
Chuck O'Toole16-Feb-12 17:32
Chuck O'Toole16-Feb-12 17:32 
GeneralRe: Problem with qsort() on CArray(ptr *, ptr *) Pin
john john mackey16-Feb-12 19:44
john john mackey16-Feb-12 19:44 
QuestionWebSockets in native C++ (not managed) Pin
Fred Ackers16-Feb-12 10:30
Fred Ackers16-Feb-12 10:30 
AnswerRe: WebSockets in native C++ (not managed) Pin
enhzflep16-Feb-12 17:53
enhzflep16-Feb-12 17:53 
GeneralRe: WebSockets in native C++ (not managed) Pin
Fred Ackers16-Feb-12 19:31
Fred Ackers16-Feb-12 19:31 
GeneralRe: WebSockets in native C++ (not managed) Pin
enhzflep16-Feb-12 23:57
enhzflep16-Feb-12 23:57 
GeneralRe: WebSockets in native C++ (not managed) Pin
Fred Ackers19-Feb-12 6:57
Fred Ackers19-Feb-12 6:57 
GeneralRe: WebSockets in native C++ (not managed) Pin
enhzflep19-Feb-12 12:19
enhzflep19-Feb-12 12:19 
QuestionSending message between objects Pin
aangerma16-Feb-12 9:16
aangerma16-Feb-12 9:16 
QuestionRe: Sending message between objects Pin
David Crow16-Feb-12 10:54
David Crow16-Feb-12 10:54 
AnswerRe: Sending message between objects Pin
aangerma16-Feb-12 19:42
aangerma16-Feb-12 19:42 
AnswerRe: Sending message between objects Pin
Albert Holguin16-Feb-12 18:15
professionalAlbert Holguin16-Feb-12 18:15 
AnswerRe: Sending message between objects Pin
enhzflep16-Feb-12 18:19
enhzflep16-Feb-12 18:19 
GeneralRe: Sending message between objects Pin
aangerma16-Feb-12 19:57
aangerma16-Feb-12 19:57 
GeneralRe: Sending message between objects Pin
enhzflep16-Feb-12 22:35
enhzflep16-Feb-12 22:35 
AnswerRe: Sending message between objects Pin
JackDingler17-Feb-12 10:35
JackDingler17-Feb-12 10:35 

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.