Click here to Skip to main content
13,836,551 members

C / C++ / MFC

 
AnswerRe: const char [] and char[] difference question Pin
Victor Nijegorodov11-May-18 0:03
memberVictor Nijegorodov11-May-18 0:03 
GeneralRe: const char [] and char[] difference question Pin
samzcs11-May-18 3:24
membersamzcs11-May-18 3:24 
QuestionPlease advise me on C++ coding structure Pin
Vaclav_9-May-18 5:24
memberVaclav_9-May-18 5:24 
AnswerRe: Please advise me on C++ coding structure Pin
leon de boer9-May-18 5:44
memberleon de boer9-May-18 5:44 
QuestionHelp with C Pin
Faith Burnett5-May-18 11:28
memberFaith Burnett5-May-18 11:28 
AnswerRe: Help with C Pin
David Crow5-May-18 17:57
memberDavid Crow5-May-18 17:57 
GeneralRe: Help with C Pin
Faith Burnett5-May-18 20:08
memberFaith Burnett5-May-18 20:08 
QuestionHow to get value Pin
Vaclav_5-May-18 5:41
memberVaclav_5-May-18 5:41 
I like to verify actuall value passed from char array to struct pointer

buf array declaration
unsigned char buf[32]; // = { 0x00, 0x04 };
value passed unsigned char 0x04;
buf[0] = command; // passed 0x04 software reset
transmit buffer assignment
xfer[0].tx_buf = (unsigned long) buf;

Now I like to use cout to print the actual value in tx_buf.
From struct declaration I know "tx_buf" is a unsigned long pointer.

Not sure how to access the required value
this gives me the pointer as expected:

<pre lang="c++">cout << "xfer[0].tx_buf " << xfer[0].tx_buf<< endl;

Once I know how to get first value I can probably figure out how to get the whole buf[32] array values.

Thanks for help
Cheers Vaclav
AnswerRe: How to get value Pin
Richard MacCutchan5-May-18 6:47
protectorRichard MacCutchan5-May-18 6:47 
GeneralRe: How to get value Pin
Vaclav_6-May-18 4:54
memberVaclav_6-May-18 4:54 
GeneralRe: How to get value Pin
Richard MacCutchan6-May-18 5:48
protectorRichard MacCutchan6-May-18 5:48 
GeneralRe: How to get value Pin
Vaclav_6-May-18 7:49
memberVaclav_6-May-18 7:49 
QuestionWrapping c++ Pin
Member 129991324-May-18 23:48
memberMember 129991324-May-18 23:48 
AnswerRe: Wrapping c++ Pin
Richard MacCutchan5-May-18 2:26
protectorRichard MacCutchan5-May-18 2:26 
GeneralRe: Wrapping c++ Pin
Member 129991325-May-18 6:06
memberMember 129991325-May-18 6:06 
GeneralRe: Wrapping c++ Pin
Richard MacCutchan5-May-18 6:42
protectorRichard MacCutchan5-May-18 6:42 
QuestionMessage Closed Pin
3-May-18 0:33
memberLapmangfpt3-May-18 0:33 
AnswerRe: help: list<struct> of list<string> Pin
Victor Nijegorodov3-May-18 0:57
memberVictor Nijegorodov3-May-18 0:57 
QuestionThe Breakpoint will not be hit the Source Code is different then the orignal Pin
ForNow30-Apr-18 17:08
memberForNow30-Apr-18 17:08 
AnswerRe: The Breakpoint will not be hit the Source Code is different then the orignal Pin
Richard MacCutchan30-Apr-18 22:32
protectorRichard MacCutchan30-Apr-18 22:32 
GeneralRe: The Breakpoint will not be hit the Source Code is different then the orignal Pin
ForNow1-May-18 16:53
memberForNow1-May-18 16:53 
QuestionWhat are the best mocking frameworks available on Linux? Pin
Hila Berger29-Apr-18 3:13
memberHila Berger29-Apr-18 3:13 
JokeRe: What are the best mocking frameworks available on Linux? Pin
Randor 29-Apr-18 16:32
professional Randor 29-Apr-18 16:32 
AnswerRe: What are the best mocking frameworks available on Linux? Pin
leon de boer29-Apr-18 18:10
memberleon de boer29-Apr-18 18:10 
AnswerRe: What are the best mocking frameworks available on Linux? Pin
IlanGreen1-May-18 3:37
memberIlanGreen1-May-18 3:37 

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.


Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190114.1 | Last Updated 23 Jan 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid