• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

PhotoshopSDK.h

Engaged ,
Feb 22, 2009 Feb 22, 2009

Copy link to clipboard

Copied

I was given some code and it is trying to include PhotoshopSDK.h. I have SDKs from CS4 and v6 and can't find it. Is it in one of the other SDKs? I expect there is a PhotoshopSDK.cpp also.

Any recommendations where I might find these files? Or how I can build them?

Thanks,
RON C
TOPICS
SDK

Views

903

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Feb 22, 2009 Feb 22, 2009

Copy link to clipboard

Copied

I did a quick search in two different versions of the SDK, and did not find
a PhotoshopSDK.h. More than likely this was a wrapper file that included
the actual Photoshop files.

Rather than looking for that particular file, I recommend that you try
searching for one of the declared macros or symbols. Lather, rinse, repeat
until you have everything covered.

Just to get you started, a filter plugin might typically include these two
files:
#include "PIDefines.h"
#include "PIFilter.h"

Plus a .h for each of the suites that your plugin uses uses.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 23, 2009 Feb 23, 2009

Copy link to clipboard

Copied

Curvemeister,

Thanks for the response.

I was afraid that was the answer I'd receive.

RON C

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 23, 2009 Feb 23, 2009

Copy link to clipboard

Copied

How serious this is depends on whether PhotoshopSDK.h contained significant
source definitions or, as I suspect, it was just a wrapper that included
several of the SDK files.

One of your most important tools is the ability to recursively search a
source tree for a particular symbol definition, then add that .h file and
compile again, etc. The Windows Visual Studio search command makes this
fairly easy to do.

If you're on the Mac, I imagine there is a similar tool. In a pinch the
grep command will get the job done. If you fire up a terminal window, the
following command will do a recursive search:

find . -exec grep -i blah {}\;
(where blah is the symbol you're looking for)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 23, 2009 Feb 23, 2009

Copy link to clipboard

Copied

> find . -exec grep -i blah {}\;
> (where blah is the symbol you're looking for)

grep -Ri blah

I'm always paranoid about using find -exec. One typo and it's time to reload
from backups.

-X

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 23, 2009 Feb 23, 2009

Copy link to clipboard

Copied

I'm going to stick with VS search as I'm not really familiar with the -exec bit.

Thanks guys.

RON C

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 03, 2009 Mar 03, 2009

Copy link to clipboard

Copied

I turned on pre-compiled headers and put them all in PhotoshopSDK.h. Then I learned how evil pre-compiled headers are and removed it. Just add the PI*.h files you need to your project and build.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 04, 2009 Mar 04, 2009

Copy link to clipboard

Copied

LATEST
Tom,

Thanks.

I plan to start this weekend on adding the PI*.h files one by one so I don't get extraneous references.

I never use precompiled headers.

RON C

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines