Thread: function

  1. #1
    Registered User
    Join Date
    Feb 2004


    Function can be implement in console application (dos), can function be implement when i use MFC appwizard?

    If not, how is it done ( i mean how to separate them into smaller modules ) if it involve a large chunk of code being run through with 1 click of a button in the window? ( with all the data manipulation codes in the button function )

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    It depends. If the function is your own and is bog standard C or C++ it should work fine. If it uses API routines, then it may not work unmodified. MFC has it's own versions of many API functions which do not necessarily take the same number of parameters.

    An example is MessageBox(), the API routine needs 4, the MFC version, only 3. You'll need to modify them, or escape them to call the right version of the call.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Feb 2004
    Oh.. ok, thank for the help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  3. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  4. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  5. const at the end of a sub routine?
    By Kleid-0 in forum C++ Programming
    Replies: 14
    Last Post: 10-23-2005, 06:44 PM