Click here to Skip to main content
15,884,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: gcc configure for hardware Pin
Vaclav_26-Nov-18 6:54
Vaclav_26-Nov-18 6:54 
GeneralRe: gcc configure for hardware Pin
Vaclav_29-Nov-18 17:11
Vaclav_29-Nov-18 17:11 
GeneralRe: gcc configure for hardware Pin
Vaclav_30-Nov-18 4:44
Vaclav_30-Nov-18 4:44 
Questionproblems with pointer to struct Pin
Mohammad Ali Bahar18-Nov-18 23:15
Mohammad Ali Bahar18-Nov-18 23:15 
AnswerRe: problems with pointer to struct Pin
CPallini19-Nov-18 0:20
mveCPallini19-Nov-18 0:20 
AnswerRe: problems with pointer to struct Pin
leon de boer19-Nov-18 5:19
leon de boer19-Nov-18 5:19 
GeneralRe: problems with pointer to struct Pin
Mohammad Ali Bahar19-Nov-18 8:47
Mohammad Ali Bahar19-Nov-18 8:47 
GeneralRe: problems with pointer to struct Pin
leon de boer19-Nov-18 14:13
leon de boer19-Nov-18 14:13 
You are missing the point nothing I have done stops you using pointers on the interface Smile | :)

In my code above you could do
C++
/* This is called a static allocation */
/* You use the & symbol to make a pointer to the allocation */
static ECU_t ecu_test;
ECU_DoTask(&ecu_test);

Or you could do this
C++
/* This is called a dynamic allocation */
/* malloc makes space for the structure on the heap and gives you a pointer */
ECU_t* ecu_test = malloc(sizeof(ECU_t));
ECU_DoTask(ecu_test);

However none of that has anything remotely to do with what is in the structure and removing the pointers
and internally you have no way to know how I did the allocation externally Smile | :)

I think what has thrown you is me creating one of your structures without having to create it like
you want, but that is just me being tricky with C literals to give you something to test.
In vino veritas


modified 19-Nov-18 20:25pm.

AnswerRe: problems with pointer to struct Pin
Joe Woodbury19-Nov-18 18:13
professionalJoe Woodbury19-Nov-18 18:13 
QuestionText Access Pin
Bram van Kampen17-Nov-18 14:49
Bram van Kampen17-Nov-18 14:49 
AnswerRe: Text Access Pin
Richard MacCutchan17-Nov-18 21:06
mveRichard MacCutchan17-Nov-18 21:06 
QuestionHow to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Member 1312800516-Nov-18 22:09
Member 1312800516-Nov-18 22:09 
SuggestionRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Richard MacCutchan16-Nov-18 23:20
mveRichard MacCutchan16-Nov-18 23:20 
QuestionRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
David Crow17-Nov-18 3:57
David Crow17-Nov-18 3:57 
AnswerRe: How to close a sub Dialogwindow without closing a Parent Dialogwindow in MFC C++ VS2010? Pin
Bram van Kampen17-Nov-18 14:51
Bram van Kampen17-Nov-18 14:51 
QuestionLinked List Problem - K reverse linked list Pin
Member 1405554315-Nov-18 0:04
Member 1405554315-Nov-18 0:04 
AnswerRe: Linked List Problem - K reverse linked list Pin
CPallini15-Nov-18 0:24
mveCPallini15-Nov-18 0:24 
GeneralRe: Linked List Problem - K reverse linked list Pin
Stefan_Lang15-Nov-18 3:43
Stefan_Lang15-Nov-18 3:43 
GeneralRe: Linked List Problem - K reverse linked list Pin
CPallini15-Nov-18 6:07
mveCPallini15-Nov-18 6:07 
AnswerRe: Linked List Problem - K reverse linked list Pin
Daniel Pfeffer15-Nov-18 2:16
professionalDaniel Pfeffer15-Nov-18 2:16 
AnswerRe: Linked List Problem - K reverse linked list Pin
Stefan_Lang15-Nov-18 4:19
Stefan_Lang15-Nov-18 4:19 
QuestionRe: Linked List Problem - K reverse linked list Pin
David Crow15-Nov-18 5:37
David Crow15-Nov-18 5:37 
Questionfacing issue in “Ajantha” font on windows10 in GDIplus Pin
Avinash.Pandey12-Nov-18 22:06
Avinash.Pandey12-Nov-18 22:06 
QuestionRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
Richard MacCutchan13-Nov-18 5:06
mveRichard MacCutchan13-Nov-18 5:06 
AnswerRe: facing issue in “Ajantha” font on windows10 in GDIplus Pin
leon de boer13-Nov-18 6:22
leon de boer13-Nov-18 6:22 

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.