Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / January 2006



Tip: Looking for answers? Try searching our database.

Link Error trying to create a FM plug-in

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Walsh - 13 Jan 2006 20:11 GMT
** WARNING NEWBIE QUESTION **
I have been tasked with creating a plug-in for filemaker who's single
task it is, is to launch a file (ultimately a Java applet).
Yes, I am aware someone has done this with another plug-in called Launch
it and I have tested this, but it seems over-kill at this point. I'm up
for a small challenge.

I've grabbed the 24U FM Template (for creating FM plug-ins) & compiled
it in CodeWarrior 8.3 on a Mac (OS X.4). I've been successful with the
version test sample & passing back & forth the path to a file.

Someone was kind enough to post the procedure I need in order to launch
an application.
#include <unistd.h>
int exec(const char *path, ...);

What I've added:
 param = GetIndParam(in, 1); /* from the given example */
 result = ( char *)(exec( (const char *)param ));

Complies, but have been unable to get it to link (undefined symbol _exec).

I have this feeling it's something really basic (i.e. obvious)that I'm
missing. Just don't know enough about CW to know where to start looking.

Any thoughts?
Cheers,
JRW
John Walsh - 16 Jan 2006 20:30 GMT
Yep. I was right. Really basic.
Trying to compile for Mac & PC.
Forgot the   #if FM_CPU_PPC statement. D'oh!

Next quesiton, why does FM die after successfully launching the app via
the plug-in?
Time to turn on debug mode.

Cheers,
JRW

> ** WARNING NEWBIE QUESTION **
> I have been tasked with creating a plug-in for filemaker who's single
[quoted text clipped - 24 lines]
> Cheers,
> JRW
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.