Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Aug 19, 2018 4:53 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Really simple plugin help required... please!
PostPosted: Sun Jan 08, 2006 10:15 pm 
Offline

Joined: Sun Jan 08, 2006 9:47 pm
Posts: 1
Hello All,

I have a simple command line program that I wrote some time ago using C++, and would like now to put a graphical front end on using realbasic.

From what I can gather, the route toward doing this is to create a plugin. I am using OS X, but would like if possible to stick to using g++ rather than Xcode if possible. I believe I have to create a shared library which is then some how then wrapped to form a realbasic plugin. Just to try and get things working I've been trying a "hello world!" example.

The command line hello.cpp file looked as follows:

#include <iostream.h>;

int main()
{

cout << "hello world!\n";

return 0;
}


and compiled fine with "g++ -o hello.exe hello.cpp". I have modified this file to create a library file helloLib.cpp

#include <iostream.h>;

void Hello()
{

cout << "hello world!\n";

return;
}


This seems to compile fine using "g++ -fno-common -c helloLib.cpp", but I don't know where to go from here, or indeed, if I've used the correct flags.

I've searched the web a little, but can't find anything that gives a simple walk through. Any help would be very much appreciated.

Tar

Chris

OS X 10.3.9
realbasic 5.2.4[/b]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 11, 2006 3:31 pm 
Offline
User avatar

Joined: Wed Sep 28, 2005 8:39 am
Posts: 9341
Location: St Augusta, MN
You should download the plugins sdk and start from there. There are example projects using a handful of different tools (CodeWarrior, mingw, Visual C++ 6, XCode, etc) that you can use as a jumping-off point.

HTH!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group