realbasic-nug
[Top] [All Lists]

Re: C code

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: C code
From: Totte Alm <totte at code66 dot se>
Date: Sat, 31 Aug 2002 20:20:22 +0200

lördagen den 31 augusti 2002 kl 19.45 skrev Scott Griebel:


Hi Everyone -

I am really new to this realbasic thing.  Perhaps someone can help me.

I have some c code files (like 50 of them) which I have had no problem
compiling and running from the command line is os x. I would like to access the functionality in these c files from within realbasic. So I am assuming
I have to create a DLL-like file to do so.  My questions are:

1.  what is this dll-like file called?

Best solution is to wrap your c-code into a REALbasic plugin. download the Plugin SDK.

2.  how do I create it?
Using CodeWarrior, you can create pugins for PPC, carbon & Win32 (and 68k if you use CW 6 or earlier)

3.  how do I access its functions?


The plugin registers methods of classes or functions which you call directly from your REALbasic code

example
Dim i as integer

i = MySurfCoolFunction(4711, "foobar")

Am I totally off base?


Nope, but the Plugin SDK takes more than just a glimpse to understand. Take a look at Thomas Tempelmans samples.

www.tempel.org (correct  me if I'm wrong)

//Totte
Thanks,
Scott


---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>

Subscribe to the digest:
<mailto:realbasic-nug-digest at lists dot realsoftware dot com>


------------------------------------------------------------------------ ----------------
No keyboard present
Hit F1 to continue


---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:realbasic-nug-off at lists dot realsoftware dot com>

Subscribe to the digest:
<mailto:realbasic-nug-digest at lists dot realsoftware dot com>
.


<Prev in Thread] Current Thread [Next in Thread>
  • Re: C code, Totte Alm <=