Click here to Skip to main content
15,798,592 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Call to std::thread::join() in the destructor of a global variable Pin
CPallini17-Sep-15 23:05
mveCPallini17-Sep-15 23:05 
Questionaccess violation with std::map (VS2015) Pin
Member 853403517-Sep-15 4:41
Member 853403517-Sep-15 4:41 
QuestionRe: access violation with std::map (VS2015) Pin
David Crow17-Sep-15 6:06
David Crow17-Sep-15 6:06 
QuestionRe: access violation with std::map (VS2015) Pin
CPallini17-Sep-15 6:09
mveCPallini17-Sep-15 6:09 
QuestionPassing parameters to constructor - very obvious and basic question from an OF Pin
Vaclav_16-Sep-15 12:31
Vaclav_16-Sep-15 12:31 
QuestionRe: Passing parameters to constructor - very obvious and basic question from an OF Pin
CPallini16-Sep-15 22:09
mveCPallini16-Sep-15 22:09 
AnswerRe: Passing parameters to constructor - very obvious and basic question from an OF Pin
Richard MacCutchan16-Sep-15 22:31
mveRichard MacCutchan16-Sep-15 22:31 
GeneralRe: Passing parameters to constructor - very obvious and basic question from an OF Pin
Vaclav_19-Sep-15 2:29
Vaclav_19-Sep-15 2:29 
Thanks for replies.
It may be stupid, but that is what I am trying to avoid.
Now I would have "someParam" - actually global array and a class copy of the same so it can be accessed by class methods.
I am trying to save some memory of embedded processor.
Kinda of wishful thinking ahead.

I won't get to upset if I need to make a local copies.
Would using "this" pointer work making local copy?
I just tryied "standard" this.name = name but could not make it work on pointers.
I guess I am still struggling with using pointers.


Addendum
I have decided to KISS and I'll be making copies of the parameters using "this" pointer.
One question remains - since all of the parameaters passed are de facto constants - harwdware pins, LCD size etc. and won't be modified by the class, why can't I just use "this>LCD_x_size" as variable instead of "this->LCD_x_size = LCD_x_size" Now the class local varaible is "LCD_x_size".
And yes, I read somewhere that using same symbols for "name" and "variable" is OK.
Confusing, but OK.

-- modified 19-Sep-15 17:56pm.
AnswerRe: Passing parameters to constructor - very obvious and basic question from an OF Pin
Daniel Pfeffer19-Sep-15 22:30
professionalDaniel Pfeffer19-Sep-15 22:30 
QuestionReal time drawing using multithreading Pin
FrankStar8913-Sep-15 0:57
FrankStar8913-Sep-15 0:57 
AnswerRe: Real time drawing using multithreading Pin
jschell13-Sep-15 13:24
jschell13-Sep-15 13:24 
GeneralRe: Real time drawing using multithreading Pin
FrankStar8914-Sep-15 22:48
FrankStar8914-Sep-15 22:48 
GeneralRe: Real time drawing using multithreading Pin
jschell15-Sep-15 12:25
jschell15-Sep-15 12:25 
AnswerRe: Real time drawing using multithreading Pin
David Crow14-Sep-15 5:12
David Crow14-Sep-15 5:12 
GeneralRe: Real time drawing using multithreading Pin
FrankStar8914-Sep-15 22:50
FrankStar8914-Sep-15 22:50 
QuestionNeed help with this little C program Pin
Member 1197963712-Sep-15 13:44
Member 1197963712-Sep-15 13:44 
SuggestionRe: Need help with this little C program Pin
Richard MacCutchan12-Sep-15 22:00
mveRichard MacCutchan12-Sep-15 22:00 
AnswerRe: Need help with this little C program Pin
CPallini13-Sep-15 7:52
mveCPallini13-Sep-15 7:52 
GeneralRe: Need help with this little C program Pin
Member 1197963713-Sep-15 9:05
Member 1197963713-Sep-15 9:05 
GeneralRe: Need help with this little C program Pin
CPallini13-Sep-15 11:23
mveCPallini13-Sep-15 11:23 
QuestionRe: Need help with this little C program Pin
Member 1197963713-Sep-15 13:24
Member 1197963713-Sep-15 13:24 
AnswerRe: Need help with this little C program Pin
CPallini13-Sep-15 22:13
mveCPallini13-Sep-15 22:13 
QuestionRe: Need help with this little C program Pin
Member 1197963714-Sep-15 3:42
Member 1197963714-Sep-15 3:42 
AnswerRe: Need help with this little C program Pin
Member 1197963714-Sep-15 3:55
Member 1197963714-Sep-15 3:55 
GeneralRe: Need help with this little C program Pin
CPallini14-Sep-15 4:40
mveCPallini14-Sep-15 4:40 

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.