Copy link to clipboard
Copied
Hi,
Im creating plug-in for illustrator cs3 sdk using visula studio 2005. I need to get text frame art type. For using this, i added IText.cpp and IThrowException.cpp. I got 79 errors related to IText.cpp.
The error is like
error LNK2001: unresolved external symbol _sApplicationPaint
error LNK2001: unresolved external symbol _sCompFont
error LNK2001: unresolved external symbol _sCompFontClass
1>IText.obj : error LNK2001: unresolved external symbol _sCompFontClassSet
How to solve this
Copy link to clipboard
Copied
Just take a look at your project properties.
Be sure to set correctly the additional Include directories.
Thomas.
Copy link to clipboard
Copied
The includes sound okay; what it sounds like is he's missing whatever .c/.cpp actually declares the variables. Its been a while since I worked with the SDK's skeleton plugin, so I can't remember which file that is -- suites.cpp maybe? Whatever file it is, it just needs to be added to the project.
Copy link to clipboard
Copied
Although I'm too late, thought it will help someone in need. To resolve the external symbols, follow the steps specified under the heading Adding text support to your plug-in (in page 10 and 11) in the following document:
Adding text support to your plug-in
For your plug-in to use the Adobe text engine API, it must compile the Adobe text engine wrapper classes
and acquire the necessary suites for these classes during start-up.
In Visual C++, follow these steps to add the required source code:
1. Add <SDK>/illustratorapi/ate/IText.cpp to the list of project source files.
2. Right-click IText.cpp in the Solution Explorer and choose Properties.
3. Under C/C++ > Precompiled Headers, set Create/Use Precompiled Header to Not Using Precompiled Headers.
4. Repeat with <SDK>/illustratorapi/ate/IThrowException.cpp
In the source code, follow these steps:
1. Add the following include instruction to the file that contains the definition of the suite pointers.
(See <SDK>/samplecode/MarkedObjects/Source/MarkedObjectsSuites.h)
#include "ATETextSuitesImportHelper.h"
2. Add EXTERN_TEXT_SUITES to the list of external suite pointers.
(See <SDK>/samplecode/MarkedObjects/Source/MarkedObjectsSuites.cpp)
3. Add IMPORT_TEXT_SUITES to the list of suites and suite versions to be imported.
(See <SDK>/samplecode/MarkedObjects/Source/MarkedObjectsSuites.cpp)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now