Click here to Skip to main content
14,661,630 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Passing function with parameters as parameter Pin
Richard MacCutchan18-Apr-20 21:21
mveRichard MacCutchan18-Apr-20 21:21 
QuestionMath problem with C code Pin
Vaclav_18-Apr-20 6:47
MemberVaclav_18-Apr-20 6:47 
AnswerRe: Math problem with C code Pin
k505418-Apr-20 7:00
mvek505418-Apr-20 7:00 
GeneralSOLVED Re: Math problem with C code Pin
Vaclav_18-Apr-20 8:16
MemberVaclav_18-Apr-20 8:16 
QuestionRe: Math problem with C code Pin
Richard MacCutchan18-Apr-20 7:02
mveRichard MacCutchan18-Apr-20 7:02 
QuestionPass a struct as a function parameter or just use it as a global variable? Pin
Vaclav_18-Apr-20 5:23
MemberVaclav_18-Apr-20 5:23 
AnswerRe: Pass a struct as a function parameter or just use it as a global variable? Pin
k505418-Apr-20 6:17
mvek505418-Apr-20 6:17 
GeneralRe: Pass a struct as a function parameter or just use it as a global variable? Pin
Vaclav_18-Apr-20 6:30
MemberVaclav_18-Apr-20 6:30 
Thanks, you may have answered my other problem.
( I'll posting it soon.)

At this point I use struct sort-off attached to a class.
Not static.
I am saying sort-off because the main code is OpenGL and it does not work well in C++ class.
I do not foresee any other code to modify it.
But for learning experience I'll go with passing the struct via pointer to the function which is also "passed" as parameter to another function.
Pretty convoluted , mostly because OpenGL "pipe" architecture.
But so far it id working as expected.
Questioncomputational cost of math functions Pin
CalinNegru(fearless_)17-Apr-20 5:06
MemberCalinNegru(fearless_)17-Apr-20 5:06 
AnswerRe: computational cost of math functions Pin
OriginalGriff17-Apr-20 5:10
mveOriginalGriff17-Apr-20 5:10 
GeneralRe: computational cost of math functions Pin
CalinNegru(fearless_)17-Apr-20 6:58
MemberCalinNegru(fearless_)17-Apr-20 6:58 
GeneralRe: computational cost of math functions Pin
leon de boer17-Apr-20 7:04
Memberleon de boer17-Apr-20 7:04 
GeneralRe: computational cost of math functions Pin
CalinNegru(fearless_)17-Apr-20 8:14
MemberCalinNegru(fearless_)17-Apr-20 8:14 
GeneralRe: computational cost of math functions Pin
Joe Woodbury17-Apr-20 10:43
professionalJoe Woodbury17-Apr-20 10:43 
GeneralRe: computational cost of math functions Pin
Member 798912217-Apr-20 11:47
MemberMember 798912217-Apr-20 11:47 
GeneralRe: computational cost of math functions Pin
Joe Woodbury17-Apr-20 12:53
professionalJoe Woodbury17-Apr-20 12:53 
GeneralRe: computational cost of math functions Pin
Member 798912217-Apr-20 13:03
MemberMember 798912217-Apr-20 13:03 
AnswerRe: computational cost of math functions Pin
CPallini17-Apr-20 7:04
mveCPallini17-Apr-20 7:04 
AnswerRe: computational cost of math functions Pin
Member 798912217-Apr-20 12:37
MemberMember 798912217-Apr-20 12:37 
GeneralRe: computational cost of math functions Pin
harold aptroot17-Apr-20 16:12
Memberharold aptroot17-Apr-20 16:12 
AnswerRe: computational cost of math functions Pin
CalinNegru(fearless_)18-Apr-20 8:56
MemberCalinNegru(fearless_)18-Apr-20 8:56 
Questionmfc LoadBitmap hangs my application... Pin
charlieg15-Apr-20 12:21
Membercharlieg15-Apr-20 12:21 
AnswerRe: mfc LoadBitmap hangs my application... Pin
_Flaviu16-Apr-20 1:37
Member_Flaviu16-Apr-20 1:37 
GeneralRe: mfc LoadBitmap hangs my application... Pin
charlieg16-Apr-20 4:30
Membercharlieg16-Apr-20 4:30 
GeneralRe: mfc LoadBitmap hangs my application... Pin
_Flaviu16-Apr-20 5:24
Member_Flaviu16-Apr-20 5:24 

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.