Re: bringing windows c++ code to Macintosh
Re: bringing windows c++ code to Macintosh
- Subject: Re: bringing windows c++ code to Macintosh
- From: email@hidden
- Date: Wed, 10 Sep 2008 13:25:58 +0000
-------------- Original message ----------------------
From: Cryptonome <email@hidden>
> On 10/09/2008, at 8:33, M Pulis wrote:
>
> > We have a project bringing c++ code from windows to Macintosh. All
> > code was compiled and released under windows XP, so I am told.
> >
>
> First there are some documents that can help you :
>
>< http://developer.apple.com/documentation/Porting/Conceptual/win32porting/win32porting.html>
>
> <http://www.ibm.com/developerworks/eserver/library/es-MigratingWin32toLinux.html>
>
>
> And many others,
>
> the key is that moving code from one platform to another is not as
> simple as just compile in some cases, and specially if the code is
> platform dependent as in your case.
>
> In response to the special question about how HGLOBAL is managed on
> the Mac, you have to ask your self first how is managed on Windows.
> Take a read on
>
>< http://msdn.microsoft.com/en-us/library/aa366596(VS.85).aspx>
>
> and you will have the answer.
>
> By the way, to port an application you need to understand the
> application first, then port it. If not you will not be able to do it.
>
Thanks for beating me to it, Crypto
I will add my voice to yours is saying that "Porting Code" is not a simple process. Unless the code was written portable to begin with, the approach you should be taking, Pulis, is to re-engineer the older code. You have to reduce it to requirements and algorithms and then re-implement it in the new environment. Considering that you are trying to go from Windows to a non-Windows environment, this is especially true as, in my experience, NOTHING is done portable in Windows.
Too often, I have seen projects dig themselves a deep hole by taking code from one platform and drop it onto another and then try to patch it up with kite string and duct tape and coat hanger wire to get it to run properly.
_______________________________________________
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