Solved

Comm Toolbox and Carbon?

Posted on 2001-06-22
5
316 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 250 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now