Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ncmason

macrumors regular
Original poster
Feb 27, 2007
126
0
Hello fellow developers,
I recently volunteered to work on porting an already-made C++ Windows app to the Mac platform. I really would appreciate it if some people are willing to help me go about this as this is somewhat confusing for me.

The project can be downloaded here:
http://masonsklut.com/tooki.zip

Thanks,
Mason
 

Cromulent

macrumors 604
Oct 2, 2006
6,812
1,100
The Land of Hope and Glory
How to convert the files so they work as a Mac OS X app.

Well you just need to rewrite the Windows API calls to Mac OS X API calls. I'm assuming the Windows application was written using the Win32 API? If so it should be fairly straightforward to port it to Carbon but it might be worth the extra effort and try and get it to Cocoa.
 

ncmason

macrumors regular
Original poster
Feb 27, 2007
126
0
Well you just need to rewrite the Windows API calls to Mac OS X API calls. I'm assuming the Windows application was written using the Win32 API? If so it should be fairly straightforward to port it to Carbon but it might be worth the extra effort and try and get it to Cocoa.

Thanks for the suggestions. I'm a newbie to this stuff so I'll give it a try even though I'm not too sure about how to do all of this.
 

lee1210

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
http://www.6speedonline.com/forums/showthread.php?t=128354&page=2

It looks like a mac version is forthcoming. It might be best to contact those on this thread to see if you can help with this, as they appear to already working on this.

The hardest part will be the bluetooth interaction. I'm confident that the windows API for accessing bluetooth is much different. It seems like for this application (Pair with Bluetooth device, push file to bluetooth device, disconnect) it's probably quicker to start from scratch than with a windows App.

-Lee
 

ncmason

macrumors regular
Original poster
Feb 27, 2007
126
0
http://www.6speedonline.com/forums/showthread.php?t=128354&page=2

It looks like a mac version is forthcoming. It might be best to contact those on this thread to see if you can help with this, as they appear to already working on this.

The hardest part will be the bluetooth interaction. I'm confident that the windows API for accessing bluetooth is much different. It seems like for this application (Pair with Bluetooth device, push file to bluetooth device, disconnect) it's probably quicker to start from scratch than with a windows App.

-Lee

I've already contacted the main guy at the bluetooth company. He started a thread for anyone who wants to help. So, I volunteered. If I started from scratch, would it be a do-able task for a novice? Any help would be greatly appreciated.
 

tacoman667

macrumors regular
Mar 27, 2008
143
0
You will not be able to use C++ MFC at all in Mac. MFC is Windows based as AppKit is Mac based. You will be rewriting those into the AppKit framework as the previous poster suggested.

What compiler did you use or was used to create the C++ application?
 

ChrisA

macrumors G5
Jan 5, 2006
12,917
2,169
Redondo Beach, California
Hello fellow developers,
I recently volunteered to work on porting an already-made C++ Windows app to the Mac platform. I really would appreciate it if some people are willing to help me go about this as this is somewhat confusing for me.

The project can be downloaded here:
http://masonsklut.com/tooki.zip

Thanks,
Mason

There are a few decision you have to make. The first one is if the code is to be split or if you are going to try and keep one set of files that build on both platforms, maybe by use of #if preprocessor statements. There are advantages both ways but a common code base would likely means quite a bit of restructuring to separate the GUI from the rest of the code.

Maybe you could tell us what this software does and how big it is. How many source files and how many lines of code total?
 

ncmason

macrumors regular
Original poster
Feb 27, 2007
126
0
Maybe you could tell us what this software does and how big it is. How many source files and how many lines of code total?


The app uses your laptop's built-in bluetooth to find the Tooki (bluetooth phone adapter). When it finds it, it updates the firmware.

The app size is 1 MB. It's very small.

Thanks,
Mason
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.