can we embed C++ clases inside object C code?

Discussion in 'iOS Programming' started by shweta13, Aug 12, 2008.

  1. shweta13 macrumors member

    Joined:
    Aug 7, 2008
    #1
    Hi all,

    I am porting an application written in cpp to object C.
    Can i directly use cpp files in my application without porting them to object C?
    If so how can I do it?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
  3. shweta13 thread starter macrumors member

    Joined:
    Aug 7, 2008
    #3
    Actually I do not want to use Objective C++, I want to make my application in Object C.
    I heard that C++ files can be used with .M extn??

    Also if I have to include some classes of Cpp in Object C , how do I do it?

    Thanks in advance.
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    If you want to mix Objective-C and C++ you must use Objective-C++. Please read the documentation.
     

Share This Page