• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: bringing windows c++ code to Macintosh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bringing windows c++ code to Macintosh


  • Subject: Re: bringing windows c++ code to Macintosh
  • From: "Michael Williamson" <email@hidden>
  • Date: Wed, 10 Sep 2008 16:49:16 +1000

Not sure about (1).

(2) This struct appears to be a class, Xcode objects to "public:" of course, as it is not declared as a class. How should this be declared on Xcode? (extra credit - how did the microsoft compiler pass this?)

structs are almost the same as classes in C++. The main (I think only?) difference is that members are public by default in structs, whereas they're private by default in classes.
So the "public" modifier in your struct is redundant in this case (assuming you have no "private" or "protected" specifier prior to it). If you remove it everything should behave the same and maybe XCode won't complain.
Although redundant, I thought it's still allowed by standard C++ so that might be why it works with other compilers.

(3)  Last (at the moment), Xcode objects (pun intended) to this class. 

class McsFile : public CFile
{

Complains how? What is the error?
If it's complaining about CFile, I have a feeling that's a class from a Microsoft SDK, so it's not surprising it's not found on Mac.

- Michael
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: bringing windows c++ code to Macintosh
      • From: M Pulis <email@hidden>
References: 
 >bringing windows c++ code to Macintosh (From: M Pulis <email@hidden>)

  • Prev by Date: bringing windows c++ code to Macintosh
  • Next by Date: Re: bringing windows c++ code to Macintosh
  • Previous by thread: bringing windows c++ code to Macintosh
  • Next by thread: Re: bringing windows c++ code to Macintosh
  • Index(es):
    • Date
    • Thread