Click here to Skip to main content
15,896,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncheck how many variable arguments are passed? Pin
hansipet6-Jun-07 23:47
hansipet6-Jun-07 23:47 
AnswerRe: check how many variable arguments are passed? Pin
BadKarma6-Jun-07 23:49
BadKarma6-Jun-07 23:49 
AnswerRe: check how many variable arguments are passed? Pin
Roger Stoltz7-Jun-07 0:29
Roger Stoltz7-Jun-07 0:29 
GeneralRe: check how many variable arguments are passed? Pin
hansipet7-Jun-07 0:58
hansipet7-Jun-07 0:58 
GeneralRe: check how many variable arguments are passed? Pin
CPallini7-Jun-07 1:39
mveCPallini7-Jun-07 1:39 
GeneralRe: check how many variable arguments are passed? Pin
hansipet7-Jun-07 2:38
hansipet7-Jun-07 2:38 
GeneralRe: check how many variable arguments are passed? Pin
CPallini7-Jun-07 2:59
mveCPallini7-Jun-07 2:59 
GeneralRe: check how many variable arguments are passed? Pin
hansipet7-Jun-07 3:13
hansipet7-Jun-07 3:13 
The marker is not so a good was i think...
The problem is that it is not possible to define 2 methods in a class (same name). One with variable length parameter and one without...This would be the best solution for me too...

I want to make a logger class in this way...

class Logger{
void Log(LPCSTR format,...);
void Log(LPCSTR message);
}

something like that. It is easier for the user to have allways the same name...Do you know any solution for that? arrays are also not so good..it's not easy to use...

if not I have to give the function another name.... Frown | :(

Best regards

hansjörg
GeneralRe: check how many variable arguments are passed? Pin
CPallini7-Jun-07 3:24
mveCPallini7-Jun-07 3:24 
GeneralRe: check how many variable arguments are passed? Pin
hansipet7-Jun-07 3:43
hansipet7-Jun-07 3:43 
GeneralRe: check how many variable arguments are passed? Pin
CPallini7-Jun-07 3:57
mveCPallini7-Jun-07 3:57 
GeneralRe: check how many variable arguments are passed? Pin
hansipet7-Jun-07 4:03
hansipet7-Jun-07 4:03 
GeneralRe: check how many variable arguments are passed? Pin
Roger Stoltz7-Jun-07 4:03
Roger Stoltz7-Jun-07 4:03 
GeneralRe: check how many variable arguments are passed? Pin
hansipet7-Jun-07 5:46
hansipet7-Jun-07 5:46 
GeneralRe: check how many variable arguments are passed? Pin
Roger Stoltz7-Jun-07 6:42
Roger Stoltz7-Jun-07 6:42 
QuestionHook Procedure not working when window is minimized Pin
Jayapal Chandran6-Jun-07 23:41
Jayapal Chandran6-Jun-07 23:41 
QuestionManaging Bitrate through Programming Pin
Andy Rama6-Jun-07 23:22
Andy Rama6-Jun-07 23:22 
QuestionEarly Morning blues - Array of object pointers Pin
mcsherry6-Jun-07 22:57
mcsherry6-Jun-07 22:57 
QuestionRe: Early Morning blues - Array of object pointers Pin
mcsherry6-Jun-07 23:00
mcsherry6-Jun-07 23:00 
AnswerRe: Early Morning blues - Array of object pointers Pin
Cedric Moonen6-Jun-07 23:08
Cedric Moonen6-Jun-07 23:08 
GeneralRe: Early Morning blues - Array of object pointers Pin
mcsherry6-Jun-07 23:45
mcsherry6-Jun-07 23:45 
GeneralRe: Early Morning blues - Array of object pointers Pin
Cedric Moonen7-Jun-07 0:05
Cedric Moonen7-Jun-07 0:05 
QuestionString Pin
mazeed6-Jun-07 22:53
mazeed6-Jun-07 22:53 
AnswerRe: String Pin
SandipG 7-Jun-07 1:21
SandipG 7-Jun-07 1:21 
GeneralRe: String Pin
mazeed7-Jun-07 14:50
mazeed7-Jun-07 14:50 

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.