Hello, I am seeking some help with loading my plugin, I don't know if it's a build error or if I am messing up some settings.
Currently it's building my .8bc without errors but there is little debugging I can do to see where it's being unloaded. Am I not seeing it "Loaded" because I'm not doing anything with it?
I'll just toss up my stuff and see if anyone can notice what's happening and give me some advice:
Plugin.r
Command line settings for Plugin.r:
PhotoshopPlugin.cpp:
Build Configurations:
Currently it's building my .8bc without errors but there is little debugging I can do to see where it's being unloaded. Am I not seeing it "Loaded" because I'm not doing anything with it?
I'll just toss up my stuff and see if anyone can notice what's happening and give me some advice:
Plugin.r
Code:
#include "PIDefines.h"#ifdef __PIMac__
#include "PIGeneral.r"
#elif defined(__PIWin__)
#include "PIGeneral.h"
#endif
resource 'PiPL' ( 16000, plugInName, purgeable)
{
{
Kind { Actions },
Name { "Auto" },
Category { "SDK Example" },
Version { (latestActionsPlugInVersion << 16) | latestActionsPlugInSubVersion },
#ifdef __PIMac__
CodePowerPC { 0, 0, "" },
#elif defined(__PIWin__)
CodeWin32X86 { "PluginMain" },
#endif
}
};
Command line settings for Plugin.r:
CL /I $(SolutionDir)PhotoshopPlugin\photoshopapi\photoshop /I $(SolutionDir)PhotoshopPlugin\photoshopapi\pica_sp /I $(SolutionDir)PhotoshopPlugin\common\includes /DMSWindows=1 /EP /Tc%(FullPath) > $(SolutionDir)\$(AssemblyName).rr
$(SolutionDir)PhotoshopPlugin\Cnvtpipl.exe $(SolutionDir)\$(AssemblyName).rr $(SolutionDir)\\$(AssemblyName).pipl
PhotoshopPlugin.cpp:
Code:
#include "PhotoshopPlugin.h"
#include "PIAbout.h"
DLLExport MACPASCAL void PluginMain(
const int16 selector,
void * filterRecord,
intptr_t * data,
int16 * result)
{
try {
if (selector == plugInSelectorAbout)
{
Ptr pointer = NULL;
}
}
catch (...)
{
}
}
Build Configurations: