Monday, March 22, 2010

Problem right from the start.

Good Morning--



I'm attempting to make an Automation Plugin, so I decided to start with the example in the Automation Tutorial.



Because I do not have the codewarrior development environment on my mac, I opted to use Visual C++ 6.0 on the PC. I followed the directions starting on page 25 of the Adobe Photoshop 6.0 Automation Tutorial.



When I went to compile, the following definitions were not found:

_AcquireList

PIUSuitesAcquire

PIUSuitesRelease



Looking through the ADM API reference, I found that these were supposed to be defined in PIUSuites.h. The reference also had the correct declarations listed, so I added them myself.



This allowed me to compile, so I took the compiled file and put it in the plugins directory of Photoshop CS2. It did appear in the help menu, but when I select it, it gives me the following error:



''Could not complete the [Plugin name] command because of a program error.''



I'm stumped-- I'm sure I'm missing something simple. Searching the web and adobe's sites for ''PIUSuitesAcquire'' gets me nothing.



--Mike
Problem right from the start.
I apologize-- The link fails if I declare the missing items in the .h file (can't find PIUSuitesAquire, PIUSuitesRelease).



The crash occurs if I comment these function calls out of the source.
Problem right from the start.
It appears the auto.cpp file provided in the documentation is incorrect. Instead, MakeSelectFill.cpp should be used in the example (provided in the SDK)

No comments:

Post a Comment