Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Comm Toolbox and Carbon?

Posted on 2001-06-22
5
Medium Priority
?
344 Views
Last Modified: 2013-12-26
How does one send simple serial data using built in serial ports from a carbon application?  I need to send and receive RS-232c Serial data from my carbonized application, but I understand the Communications toolbox is unsupported under carbon?  If this is true, how does one send/receive serial data other than the ridiculous complexity of open transport?  I need code example on how to identify the ports, open one and set it's com specs (baud, bits, parity, etc.), send data aynchronously and receive data asynchronously.  This used to be fairly simple with Comm Toolbox but what do you do with carbon.  Can you make comm toolbox calls from carbon app under MacOS 9.x?  I don't need it yet under MacOS X, besides MacOS X provides a new way to serial I/O, I think.
0
Comment
Question by:paulsat
  • 3
5 Comments
 
LVL 1

Expert Comment

by:mudface061200
ID: 6241386
I am sorry I don't know your answer.  But I highly suggest that if you are doing any developement whether it's Cocoa or Carbon getting on the mailing lists.  There is a Carbon development mailing list you can find it at:  http://lists.apple.com/mailman/listinfo

I'm sure someone there can answer your question.

Good luck.
Matt
0
 
LVL 1

Expert Comment

by:mudface061200
ID: 6345764
what is the status with this question?
0
 

Author Comment

by:paulsat
ID: 6353664
I have not gotten an answer yet, the mailing lists suggested by mudface have not revealed anything useful yet.  I am still hoping someone can answer this we some example code.
0
 
LVL 1

Expert Comment

by:mudface061200
ID: 6354599
So you have posted your question to the mailing list?
0
 

Accepted Solution

by:
teeselink earned 500 total points
ID: 6408544
If you don't care about macosX at all you can just use the old way of doing things (open transport or comm toolbox) you just have to trick the compiler into letting you use the non carbon headers. Probably the easiest way is to put all of your comm toolbox calls into a seperate shared library that is not carbon, and import that shared library into your project (you can then create a OSX version later and decide at runtime which to load).
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question