Click here to Skip to main content
15,501,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHelp with calculating percentage in C Pin
ForNow20-Mar-22 6:37
MemberForNow20-Mar-22 6:37 
AnswerRe: Help with calculating percentage in C Pin
k505420-Mar-22 6:54
mvek505420-Mar-22 6:54 
GeneralRe: Help with calculating percentage in C Pin
ForNow20-Mar-22 7:47
MemberForNow20-Mar-22 7:47 
GeneralRe: Help with calculating percentage in C Pin
Calin Negru20-Mar-22 9:41
MemberCalin Negru20-Mar-22 9:41 
JokeRe: Help with calculating percentage in C Pin
RedDk21-Mar-22 8:16
MemberRedDk21-Mar-22 8:16 
AnswerRe: Help with calculating percentage in C Pin
Victor Nijegorodov20-Mar-22 8:42
MemberVictor Nijegorodov20-Mar-22 8:42 
GeneralRe: Help with calculating percentage in C Pin
ForNow20-Mar-22 10:02
MemberForNow20-Mar-22 10:02 
QuestionHow to pass pointers and process them using ellipsis ? Pin
Member 1496877118-Mar-22 16:23
MemberMember 1496877118-Mar-22 16:23 
I understand the concept of using ellipsis to pass variable number of parameters to a function.
However, the tutorial examples pass a simple values to demonstrate the workings of "list" .
I like to pass a object / widget (pointer) parameter and process the passed
parameter.

For example equivalent to this:

object -> add text (text )

Can that be done and if so can you post actual C++ code ?
Am I actually trying to do similar as passing a function as a parameter ?



My code call looks like this
ellipsisFunction( 2, listWidget_1, lisTWidget_2)


/* va_start example */
#include <stdio.h> /* printf */
#include <stdarg.h> /* va_list, va_start, va_arg, va_end */

void PrintFloats (int n, ...)
{
int i;
double val;
printf ("Printing floats:");
va_list vl;
va_start(vl,n);
for (i=0;i
AnswerRe: How to pass pointers and process them using ellipsis ? Pin
Richard MacCutchan19-Mar-22 0:08
mveRichard MacCutchan19-Mar-22 0:08 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
Member 1496877119-Mar-22 5:06
MemberMember 1496877119-Mar-22 5:06 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
k505419-Mar-22 6:01
mvek505419-Mar-22 6:01 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
Member 1496877119-Mar-22 9:44
MemberMember 1496877119-Mar-22 9:44 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
k505419-Mar-22 13:00
mvek505419-Mar-22 13:00 
GeneralRe: How to pass pointers and process them using ellipsis ? Pin
Richard MacCutchan19-Mar-22 7:11
mveRichard MacCutchan19-Mar-22 7:11 
Questionworking with pointers Pin
Calin Negru17-Mar-22 22:48
MemberCalin Negru17-Mar-22 22:48 
AnswerRe: working with pointers Pin
Victor Nijegorodov18-Mar-22 0:16
MemberVictor Nijegorodov18-Mar-22 0:16 
GeneralRe: working with pointers Pin
Calin Negru18-Mar-22 1:12
MemberCalin Negru18-Mar-22 1:12 
GeneralRe: working with pointers Pin
Victor Nijegorodov18-Mar-22 2:39
MemberVictor Nijegorodov18-Mar-22 2:39 
GeneralRe: working with pointers Pin
Calin Negru18-Mar-22 11:20
MemberCalin Negru18-Mar-22 11:20 
Generalgoing a bit further: working with pointers Pin
Calin Negru20-Mar-22 8:47
MemberCalin Negru20-Mar-22 8:47 
AnswerRe: working with pointers Pin
Mircea Neacsu18-Mar-22 11:19
mvaMircea Neacsu18-Mar-22 11:19 
QuestionRe: working with pointers Pin
David Crow21-Mar-22 4:16
MemberDavid Crow21-Mar-22 4:16 
AnswerRe: working with pointers Pin
Calin Negru21-Mar-22 6:15
MemberCalin Negru21-Mar-22 6:15 
QuestionCode to Figure out x,y cords for CDC::Pie inside an CDC::Ellipse given % Pin
ForNow13-Mar-22 10:37
MemberForNow13-Mar-22 10:37 
AnswerRe: Code to Figure out x,y cords for CDC::Pie inside an CDC::Ellipse given % Pin
Mircea Neacsu14-Mar-22 17:41
mvaMircea Neacsu14-Mar-22 17:41 

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.