Page 1 of 1

Registering a C Plug In

Posted: Fri Jul 01, 2005 9:33 am
by mcdonalj
Hi,

I am trying to register a shared object created from C code for an Ascential Plug In. The code was ported from a SUN Solaris 5.8 to an AIX 5.3. The code worked fine in the Solaris environment but now gives me an error code of -3 when trying to register the shared object. The documentation indicates that this is because the code is lacking the DllMain() and DSCMagicStageTypeFunc(). As it turns out the code is lacking these two functions. However, that is all the documentation says, it does not say what these functions are responsible for or how they should be written. Does anyone have any idea on this ?

Posted: Fri Jul 01, 2005 7:14 pm
by ray.wurlod
Welcome aboard! :D

That's a pretty heavy duty first post! Obviously placing stubs (including these functions but without having them do anything) would overcome the registration checks, but are these functions essential? I have not played with this interface since version 5.2, and neither of the functions is familiar to me.

My guess is that DSCMagicStageTypeFunc() is a way to differentiate the stage type as server, parallel or mainframe (but how???). I have no idea about DllMain().

You might be better off posting on Ascential Developer Net where vendor's personnel are permitted to respond, or asking directly through your support provider.

May I ask what version of the Plug-In Writer's Guide you are using?