1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

function with ... as its parameter?

Discussion in 'C++' started by Ming Soon, Sep 2, 2010.

  1. Ming Soon

    Ming Soon New Member

    Joined:
    Sep 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Any one know what is means by

    void Log(int nLevel,LPCTSTR lpszFormat,...)
    {

    }

    May I know what can ... inside the above function refering to?
     
  2. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    19
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    LPCTSTR is nothing but a format string..This string must be null-terminated.
    The arguments to be inserted into the pszFormat string. e.g:-
    LPCTSTR pszFormat = TEXT("%s %d + %d = %d.");
    Now pass it as parameter in the log function...
     

Share This Page