Copy link to clipboard
Copied
I have been trying to create a simple InDesign CS6 plug-in that writes to a log file as I'm opening & closing InDesign documents. SDK package had the LinkWatcher sample that I've been using as a reference when creating my solution.
Currently the problem is that I'm getting a "Adobe InDesign does not recognize mfindesign.pln as a valid plug-in" when I try to start up InDesign CS6 with the plugin. That isn't too helpful as it doesn't let me know where the problem is and compiling the code with VS2010 gives me no errors currently.
Relevant parts of the code can be found from https://github.com/crnd/MFIndesign/. I've been using CResponder as a base class in my implementation.
Anyone have any good pointers where & how to start looking for the problem? Or even better if someone can already spot the mistake(s) I've made...
I guess that is resource related problem. Check if you have (MFIndesign Resources) directory in plugins directory
Regards
Bartek
Copy link to clipboard
Copied
I guess that is resource related problem. Check if you have (MFIndesign Resources) directory in plugins directory
Regards
Bartek
Copy link to clipboard
Copied
You need a class DocumentServiceProvider derived from CServiceProvider.
In GetServiceIDs() you register kDuringNewDocSignalRespServiceImp and alike.
Your CDocumentWatcher() looks good on first glance.
In your *.fr file change the class definitions to somethings like:
Class {
kMFInDesignNewDocResponderBoss,
kInvalidClass,
{
IID_IRESPONDER, kCDocumentWatcherImpl,
IID_IK2SERVICEPROVIDER, kDocumentServiceProviderImpl,
}
}
Regards, Peter
Copy link to clipboard
Copied
This was indeed caused by my resources not being in the (MFInDesignPlugIn Resources) directory. I changed my intermediate directory from project properties and now I got it working.
Copy link to clipboard
Copied
Make sure you are using debug plug-in with InDesign debug (or release plug-in with InDesign release).
Copy link to clipboard
Copied
This is a typical problem to solve, based on my individual experience on this issue i would recommend the following check points.
Hope one of these steps does the trick for you.
-Manan
Find more inspiration, events, and resources on the new Adobe Community
Explore Now