please explain

This is a discussion on please explain within the C++ Programming forums, part of the General Programming Boards category; Can someone please explain this piece of code: Code: int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR, INT) { } I don't ...

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    10

    please explain

    Can someone please explain this piece of code:

    Code:
    int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR, INT)
    {
    }
    I don't understand what the last 3 things of it mean.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    It means that the function takes three parameters that it doesn't actually use for anything. The names given are the types of the respective arguments.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 08-23-2008, 01:16 PM
  2. Please Explain me few terms that i have listed in here.
    By chottachatri in forum C++ Programming
    Replies: 3
    Last Post: 02-26-2008, 07:20 AM
  3. Can someone explain to me what this code means
    By Shadow12345 in forum C++ Programming
    Replies: 3
    Last Post: 12-22-2002, 11:36 AM
  4. Replies: 4
    Last Post: 11-19-2002, 08:18 PM
  5. Can someone explain "extern" to me?
    By valar_king in forum C++ Programming
    Replies: 3
    Last Post: 09-16-2001, 12:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21