Thank you for your help. Indeed when i use va_arg to extract my float the result is corect, so I'll just use a printf :-D Thanks again
bbluey
Posts
-
how can i get all the arguments in the va_list -
how can i get all the arguments in the va_listIndeed something like that works. Thank you Now something else troubles me regarding float. I make myself a list of the arguments. the list contains a char*, a float and something. I check them, they are ok. But when i'm tring to right them into a file using vfprintf(file,format,list), instead of my float value i always get a 0.00000 This is too much :-D
-
how can i get all the arguments in the va_listIf i have a function myfunc(arg1,arg2,arg3), how can i include them, all, in a va_list variable? if i use va_start(list, arg1), i won't have arg1 in the list and I cannot change the singnature of the function myfunc. If I do something like: list = (va_list)&arg1 it works for types like int, unsigned int, even char*, but not float or double. If one of the args is float, it will store in list a 0 instead of the real value. please help :~
-
Differences between VC 6.0 and VC 7.0Can anyone point out the differences between Visual C++ 7.0 (.Net) and Visual C++ 6.0? Thanks