call function from variable

This is a discussion on call function from variable within the Windows Programming forums, part of the Platform Specific Boards category; You know when you register a class you can set it wndproc callback function? Or when you subclass you set ...

  1. #1
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293

    call function from variable

    You know when you register a class you can set it wndproc callback function? Or when you subclass you set it?

    How does the system call that function?

    Like:

    WNDPROC procfunc = WinProc;

    How does it call the function that procfunc has as it's value, in this case WinProc.

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Damn and blast, your learning more in two days than I learn in a year!

    >>How does the system call that function?<<

    http://www.function-pointer.org/fpt.html#call
    http://www.function-pointer.org/

    Search: function pointer tutorial

  3. #3
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    lol!

    Thanks for the info, now I can do heaps more stuff ... shouldn't be to long till my visual resource editor can do something.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help calling function is asm
    By brietje698 in forum C++ Programming
    Replies: 24
    Last Post: 12-06-2007, 04:48 PM
  2. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  3. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  4. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-30-2005, 12:21 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM

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