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

references Error

New Here ,
Nov 27, 2008 Nov 27, 2008

Copy link to clipboard

Copied

Error 1 error LNK2019: unresolved external symbol "public: virtual __thiscall ATE::ITextRange::~ITextRange(void)" (??1ITextRange@ATE@@UAE@XZ) referenced in function "long __cdecl toolMouseUp(struct AIToolMessage *)" (?toolMouseUp@@YAJPAUAIToolMessage@@@Z) toolHandler.obj

why is it that I am getting such error in visual studio 2005 whenever I am try to use ATE::ITextRange ???? References problem???
TOPICS
SDK

Views

1.6K

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
Guide ,
Nov 27, 2008 Nov 27, 2008

Copy link to clipboard

Copied

Are you including IText.cpp in your project? That's the most common mistake.

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 ,
Nov 27, 2008 Nov 27, 2008

Copy link to clipboard

Copied

Error 2 fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "IllustratorSDK.h"' to your source? d:\Work\Adobe Illustrator CS3 SDK\illustratorapi\ate\IText.cpp 12635

After I include it into my project, I got this funnie error, wonder whether the step I had done correct a not.

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 ,
Nov 27, 2008 Nov 27, 2008

Copy link to clipboard

Copied

1. Add <SDK>/illustratorapi/ate/IText.cpp to the list of project source files.<br />2. Right-click on IText.cpp in the Solution Explorer, and select Properties.<br />3. Under C/C++ > Precompiled Headers, set Create/Use Precompiled Header to Not Using<br />Precompiled Headers.<br />4. Repeat steps 13, this time with <SDK>/illustratorapi/ate/IThrowException.cpp.<br /><br />Now I followed the above step from the reference pdf but now having a lot of this typr of problems. There are a total of 79 of them.<br /><br />Error 1 error LNK2001: unresolved external symbol _sApplicationPaint IText.obj <br />Error 2 error LNK2001: unresolved external symbol _sCompFont IText.obj

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
Guide ,
Nov 28, 2008 Nov 28, 2008

Copy link to clipboard

Copied

It sounds like you're not defining all the suite variables it needs. You should look at the sample text project and make sure you've got everything it does. This will probably mean including a couple of the helper headers in the ATE directory and making sure their macros get invoked.

In a nutshell: the suite pointers IText.cpp uses are declared (header included) but not actually defined (some kind of .cpp). So it knows about the suite pointers, but it can't actually find details about them.

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 ,
Jul 01, 2011 Jul 01, 2011

Copy link to clipboard

Copied

LATEST

I had a similar issue and I was looking at the sample and still didn't notice the macros at first. When I re-read your post, I realized that that was what I was missing. Thanks.

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 ,
Dec 08, 2008 Dec 08, 2008

Copy link to clipboard

Copied

How do I go about solving this if it is the case???

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 ,
Dec 08, 2008 Dec 08, 2008

Copy link to clipboard

Copied

I followed the sample project and did everything as follow, I just could not solve this issue... this is killing me...

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
Guide ,
Dec 09, 2008 Dec 09, 2008

Copy link to clipboard

Copied

Out of curiosity, have you managed to get one of the sample plugins up & running? If so, you might be better off taking the text example plugin and altering it to suit your needs. It can be a bit of a pain to bootstrap a plugin project from scratch, given the four or five pieces that just *need* to be there. Once you have something that compiles & builds, it's quite easy to alter it to suit your purposes.

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