Click here to Skip to main content
15,610,426 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Now none of my .h header file changes seem to take Pin
ForNow12-Jan-22 5:15
ForNow12-Jan-22 5:15 
Questionheader file not being read (resource.h) Pin
ForNow11-Jan-22 13:29
ForNow11-Jan-22 13:29 
AnswerRe: header file not being read (resource.h) Pin
Mircea Neacsu11-Jan-22 13:38
Mircea Neacsu11-Jan-22 13:38 
GeneralRe: header file not being read (resource.h) Pin
ForNow11-Jan-22 14:06
ForNow11-Jan-22 14:06 
GeneralRe: header file not being read (resource.h) Pin
ForNow11-Jan-22 14:14
ForNow11-Jan-22 14:14 
AnswerRe: header file not being read (resource.h) Pin
Mircea Neacsu11-Jan-22 15:09
Mircea Neacsu11-Jan-22 15:09 
GeneralRe: header file not being read (resource.h) Pin
ForNow11-Jan-22 16:01
ForNow11-Jan-22 16:01 
QuestionImplementing variable length parameter - variadic funetion Pin
Member 149687719-Jan-22 7:59
Member 149687719-Jan-22 7:59 
I screwed-up and started posting code problem in "quick answers' and I am sorry for that.
So I cut and paste it here to continue and hopefully resolve the issue


Not much of an improvement - more questions.
I am using the tutorial example and it is complaining about
missing "num" .
I am passing QString as variable number of parameters

Copy Code

QString parameter = " TEST message ";
ProcessMessage_Variadic(1, " TEST message ");



So what is the problem - the macro
Expand ▼   Copy Code

 va_arg
?

declaration
 void ProcessMessage_Variadic(int num,...);

usage 
ProcessMessage_Variadic(1, " TEST message ");

<pre>
definition 
void RemoteSelector::ProcessMessage_Variadic (int num,...)
{

     ui->textEdit->append( "RemoteSelector::ProcessMessage_Variadic");
     QString s = "DUMMY";
     va_list valist;
     double sum = 0.0;
     int i;

     /* initialize valist for num number of arguments */
     va_start(valist, num);

     /* access all the arguments assigned to valist */
     for ( i = 0; i < num; i++) {
         s = va_arg(valist, num);

ERROR HERE 
/home/qy/Qt/Examples/Qt-5.15.0/bluetooth/btchat/remoteselector.cpp:396: error: unknown type name 'num'

       ui->textEdit->append(s); 
     }

     /* clean memory reserved for valist */
     va_end(valist);

     //return sum/num;
  }

AnswerRe: Implementing variable length parameter - variadic funetion Pin
k50549-Jan-22 8:38
mvek50549-Jan-22 8:38 
GeneralRe: Implementing variable length parameter - variadic funetion Pin
Member 149687719-Jan-22 10:31
Member 149687719-Jan-22 10:31 
GeneralRe: Implementing variable length parameter - variadic funetion Pin
k50549-Jan-22 12:19
mvek50549-Jan-22 12:19 
GeneralRe: Implementing variable length parameter - variadic funetion Pin
Richard Andrew x649-Jan-22 11:30
professionalRichard Andrew x649-Jan-22 11:30 
GeneralRe: Implementing variable length parameter - variadic funetion Pin
k50549-Jan-22 12:24
mvek50549-Jan-22 12:24 
QuestionHelp with Bluetooth -seeking assistance with QT implementation of bluez library . Pin
Member 149687718-Jan-22 6:57
Member 149687718-Jan-22 6:57 
SuggestionRe: Help with Bluetooth -seeking assistance with QT implementation of bluez library . Pin
Richard Deeming9-Jan-22 21:27
mveRichard Deeming9-Jan-22 21:27 
Questionvacancy for google programmer with specification variation. (question) Pin
Dev Lil5-Jan-22 9:38
Dev Lil5-Jan-22 9:38 
AnswerRe: vacancy for google programmer with specification variation. (question) Pin
Dave Kreskowiak5-Jan-22 10:40
mveDave Kreskowiak5-Jan-22 10:40 
AnswerRe: vacancy for google programmer with specification variation. (question) Pin
Gerry Schmitz5-Jan-22 11:56
mveGerry Schmitz5-Jan-22 11:56 
AnswerRe: vacancy for google programmer with specification variation. (question) Pin
Stefan_Lang8-Jan-22 4:00
mveStefan_Lang8-Jan-22 4:00 
Questionquestion about CDC:Pie Pin
ForNow5-Jan-22 1:55
ForNow5-Jan-22 1:55 
AnswerRe: question about CDC:Pie Pin
Gerry Schmitz5-Jan-22 5:30
mveGerry Schmitz5-Jan-22 5:30 
GeneralRe: question about CDC:Pie Pin
ForNow5-Jan-22 5:43
ForNow5-Jan-22 5:43 
GeneralRe: question about CDC:Pie Pin
Gerry Schmitz5-Jan-22 7:14
mveGerry Schmitz5-Jan-22 7:14 
GeneralRe: question about CDC:Pie Pin
ForNow5-Jan-22 8:30
ForNow5-Jan-22 8:30 
GeneralRe: question about CDC:Pie Pin
Gerry Schmitz5-Jan-22 12:05
mveGerry Schmitz5-Jan-22 12:05 

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.