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

add boss addin

Community Beginner ,
Jul 25, 2020 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?

TOPICS
SDK

Views

259

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

correct answers 1 Correct answer

Guide , Jul 25, 2020 Jul 25, 2020

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 emp

...

Votes

Translate

Translate
Community Expert ,
Jul 25, 2020 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

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

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

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

Copy link to clipboard

Copied

LATEST

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

#include "XMLID.h"

 

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