importing C++ code into Xcode HOW ?

Apprentice
Posts: 9
Joined: 2008.09
Post: #1
Hi
Where new to Iphone development and need some guidance as to porting existing c++ games into objective c structures. Blink
Do you have to change the name of the .cpp file to .mm ?
Do you have to include the c++ header files in .m files ?
What settings do you have to change in Xcode from the default examples that you get to include C++ files?
Has anybody got a simple example ?
Im sure once we get going it will not be so bad.
Yours in thanks steve

PS how do you call a C++ function from objective c and vise versa....
Quote this message in a reply
Member
Posts: 312
Joined: 2006.10
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
Why not just use C++, if you have existing C++ code?
Quote this message in a reply
Apprentice
Posts: 9
Joined: 2008.09
Post: #4
Thanks that's great. Now if I can just find hash on the keyboard Wink ( not the kind you smoke )
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Importing geometry miq01 2 2,542 Feb 27, 2009 06:46 AM
Last Post: miq01