Article View: comp.sys.mac.programmer.codewarrior
Article #453Re: Looking for cross-platform best practices
From: jonhoyle
Date: Tue, 18 Jan 2005 00:14
Date: Tue, 18 Jan 2005 00:14
30 lines
2525 bytes
2525 bytes
Hi Chris, My experience has been very positive using CodeWarrior C++ (both Mac & Windows) for the core code for speed and optimization and RealBasic as the GUI that rides on top of it. I tend to find that this really gives me the best of all worlds when it comes to cross-platform code generation. Essentially, I begin with a CodeWarrior DLL project for Mac and Windows (ie Carbon Shared Library for Mac and Dynamic Linked Library for Win32). I write my model code in here, typically using a command line interface for it to make sure Unit Tests pass. (I can provide you with a sample CW 8.3 project I use as my template.) Then I write my GUI in RealBasic, using Declares to call into the DLL. Since I use RB only for GUI, it's fairly thin since none of my model code uses RB objects. The RB calls essentially resolve to Mac and Win API calls under the hood, making life so much easier. GUI writing is a breeze this way, allowing me to spend most of my time writing the core in C++. I have done other projects in th past doing the same thing, except using Java for the GUI instead of RealBasic. I find that Java's runtime is a bit heavy and less responsive as compared to RealBasic, and the coding much more involved, so I am not really interested in going back to that. Hope that helps, Jonathan
Technical Details
Message-ID:
<1106007254.689360.5600@z14g2000cwz.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mailReferences:
<4XKGd.7822$nt.593@fed1read06>Show Full Headers
Complete Article Headers
X-Google-Thread: f635e,3b32242fe52324ef X-Google-Thread: fd047,3b32242fe52324ef X-Google-Thread: 10bcce,3b32242fe52324ef X-Google-Attributes: gidf635e,gidfd047,gid10bcce,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: jonhoyle@mac.com Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.windows,codewarrior.mac Subject: Re: Looking for cross-platform best practices Date: 17 Jan 2005 16:14:14 -0800 Organization: http://groups.google.com Lines: 31 Message-ID: <1106007254.689360.5600@z14g2000cwz.googlegroups.com> References: <4XKGd.7822$nt.593@fed1read06> NNTP-Posting-Host: 69.128.83.42 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1106007259 7655 127.0.0.1 (18 Jan 2005 00:14:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 18 Jan 2005 00:14:19 +0000 (UTC) In-Reply-To: <4XKGd.7822$nt.593@fed1read06> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=69.128.83.42; posting-account=TByE6A0AAABDAUFIGltmMOj1XlSljYa5