Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Xp Like ScrollBar in VC++ 6.0 Pin
Anonymous27-Oct-05 0:01
Anonymous27-Oct-05 0:01 
Questionwincrypt.h? Pin
adonisv26-Oct-05 20:32
adonisv26-Oct-05 20:32 
AnswerRe: wincrypt.h? Pin
__yb26-Oct-05 21:30
__yb26-Oct-05 21:30 
GeneralRe: wincrypt.h? Pin
adonisv27-Oct-05 12:08
adonisv27-Oct-05 12:08 
GeneralRe: wincrypt.h? Pin
TheGreatAndPowerfulOz28-Oct-05 3:21
TheGreatAndPowerfulOz28-Oct-05 3:21 
GeneralRe: wincrypt.h? Pin
adonisv28-Oct-05 13:46
adonisv28-Oct-05 13:46 
GeneralRe: wincrypt.h? Pin
__yb31-Oct-05 21:10
__yb31-Oct-05 21:10 
Questiona garbage value from va_arg() Pin
plowstar26-Oct-05 19:29
plowstar26-Oct-05 19:29 
Hi
I wrote this.

int SelectTest(char * strTest,...)
{
va_list marker;
char *temp = NULL;

va_start( marker, strTest );

temp = strTest;
while(temp)
{
//doing something with 'temp'
temp = NULL;
temp = va_arg( marker, char*);
}

va_end( marker );

...
}

if I call the function with 2 params like SelectTest("test1","test2");
va_arg is called 3 times rather than once.
and last two calls return garbage value (like "\?" )

And I know it would be better to call with Null parameter
(SelectTest("test1","test2",NULL);

Except this, any better idea?? thanks.

AnswerRe: a garbage value from va_arg() Pin
__yb26-Oct-05 21:43
__yb26-Oct-05 21:43 
AnswerRe: a garbage value from va_arg() Pin
David Crow27-Oct-05 2:43
David Crow27-Oct-05 2:43 
Questionwhile (*p++); Pin
Chintoo72326-Oct-05 16:45
Chintoo72326-Oct-05 16:45 
AnswerRe: while (*p++); Pin
John R. Shaw26-Oct-05 16:58
John R. Shaw26-Oct-05 16:58 
GeneralRe: while (*p++); Pin
Anonymous26-Oct-05 17:53
Anonymous26-Oct-05 17:53 
GeneralRe: while (*p++); Pin
John R. Shaw26-Oct-05 19:08
John R. Shaw26-Oct-05 19:08 
GeneralRe: while (*p++); Pin
Chintoo72327-Oct-05 5:37
Chintoo72327-Oct-05 5:37 
GeneralRe: while (*p++); Pin
John R. Shaw30-Oct-05 16:09
John R. Shaw30-Oct-05 16:09 
AnswerRe: while (*p++); Pin
Christian Graus26-Oct-05 17:11
protectorChristian Graus26-Oct-05 17:11 
GeneralRe: while (*p++); Pin
Anonymous26-Oct-05 18:39
Anonymous26-Oct-05 18:39 
GeneralRe: while (*p++); Pin
Christian Graus27-Oct-05 12:00
protectorChristian Graus27-Oct-05 12:00 
GeneralRe: while (*p++); Pin
Chintoo72327-Oct-05 16:33
Chintoo72327-Oct-05 16:33 
AnswerRe: while (*p++); Pin
sunit526-Oct-05 19:26
sunit526-Oct-05 19:26 
GeneralRe: while (*p++); Pin
Ghasrfakhri26-Oct-05 20:24
Ghasrfakhri26-Oct-05 20:24 
GeneralRe: while (*p++); Pin
sunit526-Oct-05 23:13
sunit526-Oct-05 23:13 
AnswerRe: while (*p++); Pin
Roger Stoltz26-Oct-05 21:47
Roger Stoltz26-Oct-05 21:47 
AnswerRe: while (*p++); Pin
Carsten Leue27-Oct-05 2:23
Carsten Leue27-Oct-05 2:23 

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.