** 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