FDK: Creating an async client on windoze

DA drew.avis at gmail.com
Mon Apr 26 09:39:25 PDT 2010


Hello Framers, it's been a few years since I've read & posted to this
list.  I've started a new position, and am back to using frame, so
have rejoined the list, which has been a great resource in the past.

Anyway, I thought it would be fun to play with the FDK again to learn
more about Frame internals.  For a starter project, I'd like to
automate Frame with Ruby scripts (similar to FMPython).  So first off
I'm trying to create a simple asynchronous client following the FDK
docs (which are terrible).   I'm trying to run the example client in
the Windows Guide, and I'm unable to connect to an active Frame
process using either F_ApiStartup() or F_ApiWinConnectSession().
According to the Windows guide, F_ApiStartup() should connect to a
locally running instance of Frame, though there's a cryptic warning in
API Reference that F_ApiStartup() is only available on Unix.
F_ApiWinConnectSession() is also failing, whether I start Frame and
give it a process name, or try to attach to the default name of
FrameMaker.Api.1 (which I've confirmed does have a registry entry).

I'm using Frame 8, FDK8, and VC++ 2010 Express (which can compile and
run samples, so I know the compiler is working).

Any ideas from folks who may have tackled this problem before?

Thanks!
Drew



More information about the framers mailing list