Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > HyperCard externals development

HyperCard externals development
Thread Tools
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
Feb 5, 2001, 07:53 PM
 
Ok I'm developing something in C++ sorta, and for the interface and all that I want to use HyperCard to control it all, and whatever.
So heres the deal, I know a little C++, and I know HyperCard/HyperTalk. So how do I combine the two using XCMD's and XFCN's?
Like, how do I do it?
If I were to write a script in C++, and I wanted to call it in my HyperCard stack, what kind of headers and stuff do I need in the C++, and how do I compile it for it and all that?
What file do I paste into HC with ResEdit?
And how could I decompile/reverse engineer an already made XFCN/XCMD, just to check like the headers and whatnot...
I haven't had a chance to look all this up on the net, I will soon, but any help/tips etc. would be appreciated...
TIA

Cipher13
     
Mac Enthusiast
Join Date: Feb 2000
Location: Storrs,Connecticut, USA
Status: Offline
Reply With Quote
Feb 6, 2001, 07:05 AM
 
Ummm... If you want to use OS X you can't use Hypercard. No one has ported it to X and I doubt that Apple is will; they haven't supported it in a while. Also, ResEdit is not used in X. It has become obsolete. If you want to write something for X using C++ then you should learn Carbon. I'd recommend that you forget about Hypercard and ResEdit and look at Interface Builder for your interface needs. It's much nicer to use than either of those and you can make Carbon apps that use nib files. Take a look at Apple's documentation on their site to see how to do all of that.

On A side note, if you aren't worried about backwards compatibility I'd suggest that you learn Cocoa because I find it much easier to program in than Carbon. Look at Apple's sample program, Currency Converter, to get a feel for what it's like.
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Feb 6, 2001, 02:13 PM
 
There's an OS X version of HC?

Anyway, I agree completely with Dalgo. You can use Cocoa with HC in such a way that it feels as easy as HC, without having to get into technical details.

Just imagine having all of your HC scripts written in C and put into separate files. Heck, using the keyDown method in NSWindows is just as easy as "on keyDown".
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
Feb 9, 2001, 06:36 AM
 
Oh crap.
Sorry guys wrong forum. I mean to post in developer, not OSX developer...
Oops...
Erm... if a mod could move it for me I'd appreciate it, or I'll just repost. Whichever. Hell just delete this I'll repost.
Sorry again.
LOL, thanks for your replies

Cipher13
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:18 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2