 |
 |
HyperCard externals development
|
 |
|
 |
|
Clinically Insane
Join Date: Apr 2000
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|