Click here to Skip to main content
15,884,353 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem using MFC to create multiple CDialog threads Pin
Avi Berger21-Feb-10 8:33
Avi Berger21-Feb-10 8:33 
GeneralRe: Problem using MFC to create multiple CDialog threads Pin
Spawn@Melmac21-Feb-10 10:00
Spawn@Melmac21-Feb-10 10:00 
GeneralRe: Problem using MFC to create multiple CDialog threads Pin
Spawn@Melmac23-Feb-10 1:59
Spawn@Melmac23-Feb-10 1:59 
QuestionBase64 and VC++ Pin
burslem200121-Feb-10 6:08
burslem200121-Feb-10 6:08 
AnswerRe: Base64 and VC++ Pin
Rajesh R Subramanian21-Feb-10 6:12
professionalRajesh R Subramanian21-Feb-10 6:12 
AnswerRe: Base64 and VC++ Pin
CPallini21-Feb-10 7:49
mveCPallini21-Feb-10 7:49 
AnswerRe: Base64 and VC++ Pin
Graham Breach21-Feb-10 9:57
Graham Breach21-Feb-10 9:57 
Questiondynamic variable argument list C/C++ Pin
yakabmarci21-Feb-10 4:06
yakabmarci21-Feb-10 4:06 
Hello,

I've got a question about variable argument list: Is there a possibility/what would be the best way to call a function with variable arguments, but the number and the type of the arguments is not know at compile time?

You could imagine the problem as follows ( printf is used here for simplicity):
You have an input txt file with the string and a variable number of parameters on each line:
e.g.
"id=%d, name=%s, age=%d" 1 "marci" 100
" a totally different string %d %d %c %x" 1 2 'Y' 10
" there is no rule, this string can be %s" "anything"

You have to use these inputs in the code as parameters for the printf function.
(e.g. for the first line printf("id=%d, name=%s, age=%d",1,"marci",100);

Thank you in advance,
yakabmarci

P.S. The resp. function is available as both as func(n,...) and func(n,va_list p)
AnswerRe: dynamic variable argument list C/C++ Pin
Chris Losinger21-Feb-10 6:11
professionalChris Losinger21-Feb-10 6:11 
QuestionConnect to all LAN servers Pin
Manmohan2920-Feb-10 22:36
Manmohan2920-Feb-10 22:36 
AnswerRe: Connect to all LAN servers Pin
Garth J Lancaster20-Feb-10 23:28
professionalGarth J Lancaster20-Feb-10 23:28 
GeneralRe: Connect to all LAN servers Pin
Manmohan2921-Feb-10 0:46
Manmohan2921-Feb-10 0:46 
GeneralRe: Connect to all LAN servers Pin
Garth J Lancaster21-Feb-10 9:44
professionalGarth J Lancaster21-Feb-10 9:44 
AnswerRe: Connect to all LAN servers Pin
Emilio Garavaglia22-Feb-10 2:38
Emilio Garavaglia22-Feb-10 2:38 
GeneralRe: Connect to all LAN servers Pin
Manmohan2922-Feb-10 3:52
Manmohan2922-Feb-10 3:52 
QuestionVS 2003/2008 or GCC Need To Choose! Pin
Trevor Johansen20-Feb-10 13:02
Trevor Johansen20-Feb-10 13:02 
AnswerRe: VS 2003/2008 or GCC Need To Choose! Pin
Nemanja Trifunovic20-Feb-10 16:06
Nemanja Trifunovic20-Feb-10 16:06 
QuestionAgain KeyBoar dll Pin
devidmorton20-Feb-10 10:59
devidmorton20-Feb-10 10:59 
AnswerRe: Again KeyBoar dll Pin
CPallini20-Feb-10 11:16
mveCPallini20-Feb-10 11:16 
AnswerRe: Again KeyBoar dll Pin
Trevor Johansen20-Feb-10 12:51
Trevor Johansen20-Feb-10 12:51 
GeneralRe: Again KeyBoar dll Pin
devidmorton21-Feb-10 5:26
devidmorton21-Feb-10 5:26 
GeneralRe: Again KeyBoar dll Pin
Trevor Johansen3-Mar-10 19:04
Trevor Johansen3-Mar-10 19:04 
QuestionC code in VC Pin
Punima Sen20-Feb-10 5:34
Punima Sen20-Feb-10 5:34 
AnswerRe: C code in VC Pin
David Crow20-Feb-10 6:12
David Crow20-Feb-10 6:12 
AnswerRe: C code in VC Pin
CPallini20-Feb-10 11:15
mveCPallini20-Feb-10 11: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.