Click here to Skip to main content
15,924,935 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What SDL can do ? Pin
Cedric Moonen18-Mar-08 5:50
Cedric Moonen18-Mar-08 5:50 
GeneralRe: What SDL can do ? Pin
led mike18-Mar-08 6:03
led mike18-Mar-08 6:03 
AnswerRe: What SDL can do ? Pin
Cedric Moonen18-Mar-08 5:48
Cedric Moonen18-Mar-08 5:48 
GeneralRe: What SDL can do ? Pin
Hanan88818-Mar-08 6:00
Hanan88818-Mar-08 6:00 
GeneralRe: What SDL can do ? Pin
Moak18-Mar-08 6:47
Moak18-Mar-08 6:47 
GeneralRe: What SDL can do ? Pin
Eytukan18-Mar-08 6:47
Eytukan18-Mar-08 6:47 
GeneralRe: What SDL can do ? Pin
Cedric Moonen18-Mar-08 8:29
Cedric Moonen18-Mar-08 8:29 
GeneralConvert code from VS6.0 to VC 1.52 Pin
KeithF18-Mar-08 5:24
KeithF18-Mar-08 5:24 
Hi All,

I have the following code which uses an argument list passed into a function, i get a pointer to the first argument and then set this pointer = to some modified argument. This in turn updates the arglist. See code below:

	va_list arglist; // variable argument list<br />
<br />
	va_start(arglist,cString);<br />
	<big>char **Arg1 =  &va_arg( arglist, char *); </big><br />
	*Arg1 = Arg1Modified;


I now have to convert this code to work after being compiled under VC 1.52. The line in bold above is the problem because in VC 1.52 you cannot declare variables on the same lin that they are used.

Does anyone know how i need to declare the variable to work the same as it does in VS 6, i have tried:

char **Arg1<br />
Arg1 = &amp;va_arg( arglist, char *);


but this does not work correctly.

Thanks in Advance
GeneralRe: Convert code from VS6.0 to VC 1.52 Pin
David Crow18-Mar-08 5:32
David Crow18-Mar-08 5:32 
GeneralRe: Convert code from VS6.0 to VC 1.52 Pin
KeithF18-Mar-08 5:43
KeithF18-Mar-08 5:43 
QuestionRe: Convert code from VS6.0 to VC 1.52 Pin
David Crow18-Mar-08 5:54
David Crow18-Mar-08 5:54 
GeneralRe: Convert code from VS6.0 to VC 1.52 Pin
KeithF18-Mar-08 6:01
KeithF18-Mar-08 6:01 
GeneralRe: Convert code from VS6.0 to VC 1.52 Pin
Chris Meech18-Mar-08 7:32
Chris Meech18-Mar-08 7:32 
GeneralRe: Convert code from VS6.0 to VC 1.52 Pin
David Crow18-Mar-08 9:46
David Crow18-Mar-08 9:46 
GeneralRe: Convert code from VS6.0 to VC 1.52 Pin
Joe Woodbury18-Mar-08 16:09
professionalJoe Woodbury18-Mar-08 16:09 
Questionwhy does mouse dispear in CRectTracker? Pin
includeh1018-Mar-08 4:39
includeh1018-Mar-08 4:39 
GeneralDifferent methods in objects in a List Pin
piul18-Mar-08 1:54
piul18-Mar-08 1:54 
GeneralRe: Different methods in objects in a List Pin
Cedric Moonen18-Mar-08 2:18
Cedric Moonen18-Mar-08 2:18 
GeneralRe: Different methods in objects in a List Pin
Hanan88818-Mar-08 2:34
Hanan88818-Mar-08 2:34 
GeneralRe: Different methods in objects in a List Pin
piul18-Mar-08 2:43
piul18-Mar-08 2:43 
GeneralRe: Different methods in objects in a List Pin
BadKarma18-Mar-08 2:54
BadKarma18-Mar-08 2:54 
GeneralRe: Different methods in objects in a List Pin
Cedric Moonen18-Mar-08 3:11
Cedric Moonen18-Mar-08 3:11 
GeneralRe: Different methods in objects in a List Pin
CPallini18-Mar-08 5:11
mveCPallini18-Mar-08 5:11 
GeneralRe: Different methods in objects in a List Pin
Cedric Moonen18-Mar-08 5:34
Cedric Moonen18-Mar-08 5:34 
GeneralRe: Different methods in objects in a List Pin
Hanan88818-Mar-08 3:15
Hanan88818-Mar-08 3:15 

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.