Highlighted

add boss addin

Community Beginner ,
Jul 25, 2020

Copy link to clipboard

Copied

Hi
I am trying to include a boss class in my resource file but I am getting the below error while trying to build my project.

 

error R32691: # Error: Custom type name expected, but 'kXMLStructureSuiteBoss' found.

 

Any one faced such issue before?

Reduce your .fr file to the absolute minimum, then start adding things until the compile breaks.

Make sure to use the "umbrella" .fr file, as it is the only one to directly compile - the others are just included.

 

// E.g. you're working on the ClassDescriptionTable, so

#include "ObjectModelTypes.fh"

// You likely use the resource ID from

#include "SDKDef.h"

// kXMLStructureSuiteBoss is in

#include "XMLID.h"

 

// here we go

resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID)

{{{

 

// an empty add-in

AddIn

{

kXMLStructureSuiteBoss,

kInvalidClass,

{

} }

 

// close the ClassDescriptionTable

}}};

// that's it

 

If you now comment out the #include "XMLID.h", you see that odfrc can't evaluate the boss symbol any more. The error message is a bit misleading, the compiler hasn't changed much in its 20+ years.

Topics

SDK

Views

57

Likes

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

add boss addin

Community Beginner ,
Jul 25, 2020

Copy link to clipboard

Copied

Hi
I am trying to include a boss class in my resource file but I am getting the below error while trying to build my project.

 

error R32691: # Error: Custom type name expected, but 'kXMLStructureSuiteBoss' found.

 

Any one faced such issue before?

Reduce your .fr file to the absolute minimum, then start adding things until the compile breaks.

Make sure to use the "umbrella" .fr file, as it is the only one to directly compile - the others are just included.

 

// E.g. you're working on the ClassDescriptionTable, so

#include "ObjectModelTypes.fh"

// You likely use the resource ID from

#include "SDKDef.h"

// kXMLStructureSuiteBoss is in

#include "XMLID.h"

 

// here we go

resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID)

{{{

 

// an empty add-in

AddIn

{

kXMLStructureSuiteBoss,

kInvalidClass,

{

} }

 

// close the ClassDescriptionTable

}}};

// that's it

 

If you now comment out the #include "XMLID.h", you see that odfrc can't evaluate the boss symbol any more. The error message is a bit misleading, the compiler hasn't changed much in its 20+ years.

Topics

SDK

Views

58

Likes

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
Adobe Community Professional ,
Jul 25, 2020

Copy link to clipboard

Copied

Have you added it to the id.h file as well. Seems the id is missing

Edit:- This seems to be the boss you are adding into, did you include the .h file that has the definition for this boss class id into your fr file?

 

-Manan

Likes

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
Reply
Loading...
Community Beginner ,
Jul 25, 2020

Copy link to clipboard

Copied

I have followed the same implentation exist in the snippRunner plugin in sdk examples, the headers and implementations for the kXMLStructureSuiteBoss are defined and exist in ID.h file, i am on this since 2 days and made sure everything is placed and defined as in the example of the snipRunner, what i need at the end is to implement xml inspecting and to deal with IXMLNodeTarget, thats why i had to add kXMLStructureSuiteBoss to my .fr file.

 

any help about this is really appreciated.

Likes

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
Reply
Loading...
Advisor ,
Jul 25, 2020

Copy link to clipboard

Copied

Reduce your .fr file to the absolute minimum, then start adding things until the compile breaks.

Make sure to use the "umbrella" .fr file, as it is the only one to directly compile - the others are just included.

 

// E.g. you're working on the ClassDescriptionTable, so

#include "ObjectModelTypes.fh"

// You likely use the resource ID from

#include "SDKDef.h"

// kXMLStructureSuiteBoss is in

#include "XMLID.h"

 

// here we go

resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID)

{{{

 

// an empty add-in

AddIn

{

kXMLStructureSuiteBoss,

kInvalidClass,

{

} }

 

// close the ClassDescriptionTable

}}};

// that's it

 

If you now comment out the #include "XMLID.h", you see that odfrc can't evaluate the boss symbol any more. The error message is a bit misleading, the compiler hasn't changed much in its 20+ years.

Likes

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
Reply
Loading...
Community Beginner ,
Jul 25, 2020

Copy link to clipboard

Copied

Thank you very much for this descriptive answer, my problem was with a missing include:

#include "XMLID.h"

 

Likes

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
Reply
Loading...