Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Porting from C++ & Windows API to Mac.

 
   Soft32 Home -> Mac -> Programmer Help RSS
Next:  Inserted text sometimes vertical, why?  
Author Message
Andrew Tomazos

External


Since: Jul 27, 2009
Posts: 2



(Msg. 1) Posted: Mon Jul 27, 2009 6:04 am
Post subject: Porting from C++ & Windows API to Mac.
Archived from groups: comp>sys>mac>programmer>help (more info?)

I have written a desktop application in C++ that talks directly to the
Windows API (win32).

I would like to port it to recent versions of Mac OS.

The features of the Windows API that the application uses (that are
not part of the C++ standard) are:
- creating and deleting preemptive asynchronous threads and mutexes
- walking directories and file info (size, created, modified, hard
link file indexes)
- creating windows, tab controls, scroll bars, push buttons, menus,
edit fields, radio buttons, tool windows, tool tips
- handling mouse and keyboard input
- drawing lines, polygons and text in the standard UI font of various
colors and point sizes.
- creating client TCP connections.

All the calls to the Windows API are just straight C functions and
types.

Which of the various Mac OS APIs would you use to replace these
Windows API calls?

Thanks in advance,
Andrew.
Back to top
Login to vote
Reinder Verlinde

External


Since: Jul 23, 2007
Posts: 258



(Msg. 2) Posted: Mon Jul 27, 2009 3:20 pm
Post subject: Re: Porting from C++ & Windows API to Mac. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<0e613fd3-0b9c-479b-98c3-c54170d114d4.TakeThisOut@h11g2000yqb.googlegroups.com>,
Andrew Tomazos <andrew.TakeThisOut@tomazos.com> wrote:

> I have written a desktop application in C++ that talks directly to the
> Windows API (win32).
>
> I would like to port it to recent versions of Mac OS.
>
> The features of the Windows API that the application uses (that are
> not part of the C++ standard) are:
> - creating and deleting preemptive asynchronous threads and mutexes
> - walking directories and file info (size, created, modified, hard
> link file indexes)
> - creating windows, tab controls, scroll bars, push buttons, menus,
> edit fields, radio buttons, tool windows, tool tips
> - handling mouse and keyboard input
> - drawing lines, polygons and text in the standard UI font of various
> colors and point sizes.
> - creating client TCP connections.
>
> All the calls to the Windows API are just straight C functions and
> types.
>
> Which of the various Mac OS APIs would you use to replace these
> Windows API calls?
>
> Thanks in advance,
> Andrew.

Start by reading
<http://developer.apple.com/documentation/Porting/Conceptual/win32porting
/win32porting.html>, and come back with detailed questions afterwards.

When encountering the phrase "Wherever possible, it is recommended that
you develop applications using the Cocoa environment" in that document,
pretend that it is set in bold, 24 points or greater.

Reinder
Back to top
Login to vote
Simon Slavin

External


Since: Dec 28, 2008
Posts: 37



(Msg. 3) Posted: Mon Jul 27, 2009 5:20 pm
Post subject: Re: Porting from C++ & Windows API to Mac. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<reinder-0CEEFD.20555327072009 RemoveThis @fl-69-69-134-194.sta.embarqhsd.net>Reind
er Verlinde <reinder RemoveThis @verlinde.invalid> wrote:
> Start by reading 
>

> http://developer.apple.com/documentation/Porting/Conceptual/win32porti
> ng /win32porting.html
>
> , and come back with detailed questions afterwards.
> When encountering the phrase "Wherever possible, it is recommended
> that  you develop applications using the Cocoa environment" in that
> document,  pretend that it is set in bold, 24 points or greater.

This is great advice, but I want to add a step before it: the Mac
software market is completely different to the Windows market. Just
because an application is useful on a Windows computer, don't assume
it's needed, orthat it doesn't already exist, for the Mac.

Before beginning your port, check to see that you application makes
sense on the Mac (many don't), that the functionality of your
application isn't already part of the stuff you get free with a
Macintosh or available for free from an existing application. Find
someone with a fairly new Mac and take a look at it, then spend a
couple of hours with Google looking for a Mac application that does
what yours does. Then find a Mac expert and askthem how they'd do
what your application does.

if you want to learn to program the Mac as a hobby, that's wonderful
and we welcome you. If you need to use your skills to make money, do
your market research first.

--
I'm using an evaluation license of nemo since 210 days.
You should really try it!
http://www.malcom-mac.com/nemo
Back to top
Login to vote
Andrew Tomazos

External


Since: Jul 27, 2009
Posts: 2



(Msg. 4) Posted: Mon Jul 27, 2009 11:27 pm
Post subject: Re: Porting from C++ & Windows API to Mac. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jul 27, 11:40 pm, Simon Slavin <slav....RemoveThis@hearsay.demon.co.uk> wrote:
> if you want to learn to program the Mac as a hobby, that's wonderful
> and we welcome you.  If you need to use your skills to make money, do
> your market research first.

Well given I was producer of Anarchie/Interarchy and other Stairways
products for 6 years, and the keynote speaker at Apples University
Consortium - I guess I'll muddle through it somehow. Wink
-Andrew.
Back to top
Login to vote
Simon Slavin

External


Since: Dec 28, 2008
Posts: 37



(Msg. 5) Posted: Tue Jul 28, 2009 5:20 pm
Post subject: Re: Porting from C++ & Windows API to Mac. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<261f6700-5ab5-43e0-8975-f729c7ee75da DeleteThis @26g2000yqk.googlegroups.com>Andre
w Tomazos <andrew DeleteThis @tomazos.com> wrote:
> On Jul 27, 11:40 pm, Simon Slavin <slav... DeleteThis @hearsay.demon.co.uk>
> wrote:
>> if you want to learn to program the Mac as a hobby, that's
>> wonderful and we welcome you.  If you need to use your skills to
>> make money, do your market research first.

> Well given I was producer of Anarchie/Interarchy and other
> Stairways products for 6 years, and the keynote speaker at Apples
> University Consortium - I guess I'll muddle through it somehow. Wink

Sorry, Andrew. Your post looked like you were just starting on the
Mac.

Simon.

--
I'm using an evaluation license of nemo since 211 days.
You should really try it!
http://www.malcom-mac.com/nemo
Back to top
Login to vote
Display posts from previous:   
Related Topics:
windows coder stuck with porting to osx - By trade I'm a windows/C++ coder and have been for many a year, working under Visual Studio 2003. I'm now trying to por...

Newbee - porting Windows & Unix code - where to start - Dear group I do have a 20+ year backround in developping all kind of C software on various platforms including Unixes....

porting windows to mac byte swapping issue - Hi, Newbie to Mac OS ,currently porting some C code in Windows to Mac OS G4 machine. I am getting some data in an..

MacOS questions: Porting game from Windows, striving for n.. - Hi, In porting a Windows game to MacOS, I've noticed that there is a number of ways to do the same things. Ultimately...

Help porting to OS X ? - I got the source to Trend <http://www.complex.iastate.edu/information/projects/cellular.html> I fink install ope...

Porting code to Mac - Hi, I've encountered a few problems porting some Windows code over to the Mac, and I'm wonderring if someone could help...
       Soft32 Home -> Mac -> Programmer Help All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
  Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]