• 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: M Pulis <email@hidden>
  • Date: Wed, 10 Sep 2008 08:29:34 -0700

Which is exactly why it felt wrong...

Fortunately, there is no GUI and we are well on the way with redesign.

It is basically a DLL, so I got off on the wrong foot, so to speak.

Gary

On Sep 10, 2008, at 7:53 AM, Bill Royds wrote:


On 10-Sep-08, at 02:33 , M Pulis wrote:

(1) How should fields declared as HGLOBAL be declared as on Macintosh? I have tried "handle" but Xcode complains (why???). Tried uint32, which allowed compilation to continue, BUT, it feels wrong. Example:

typedef struct TheData
{
unsigned int ID;
int size;
HGLOBAL hTheData;
HGLOBAL hTheHeader;
HGLOBAL hTheGains;
} TheData;


HGLOBAL is a windows specific data type.  No code that uses such data types (HGLOBAL, HWND, can be ported to OSX  (or Linux or other operating systems) without considerable change.

In Windows style operating systems, everything is a window so there needs to be something that ties the internal Windows data structure to the objects in your code. This is the HWND (and its relatives like HGLOBAL) data type (which is actually just a long unsigned integer). So if your code uses these, it is intrinsically tied to running on Windows and such modules need to be completely redesigned to achieve similar functionality.






 _______________________________________________
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

References: 
 >bringing windows c++ code to Macintosh (From: M Pulis <email@hidden>)

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