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

Registration of a namespace

Community Beginner ,
Feb 16, 2017 Feb 16, 2017

Copy link to clipboard

Copied

At our PLug-In we want to use a namespace parsing_results to share the parsed values with other classes.

We've declared that namespace within namespacs.h with

namespace parsing_results {

  extern int aktOrder;

  etc.

}

We've included the namespaces.h into LocaleIndex.h, but the parsing_results is not accessible atb the class, which shall use the parsing_results, even when implementing 'using namespace parsing_results' at that class.

It seems that the parsing_results will have to be registered.

The only trace of IMetaDataAccess::RegisterNamespace was at a text file, wher that function was called with two parameters.

The class IMetaDataAccess is declaring that function with a different set of parameters.

Could please anybody let me know, how to call that function?

Regards

Jochen Seliger

TOPICS
SDK

Views

585

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
LEGEND ,
Feb 16, 2017 Feb 16, 2017

Copy link to clipboard

Copied

From my reading IMetaDataAccess is part of the Indesign SDK, which you cannot use in Acrobat plug-ins.

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 ,
Feb 16, 2017 Feb 16, 2017

Copy link to clipboard

Copied

I'm really building a Plug_in for InDesingn.

I want to know a sample for CS2 to call the RegisterNamespace-Function.

Regards

Jochen Seliger

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 ,
Feb 16, 2017 Feb 16, 2017

Copy link to clipboard

Copied

IMetaDataAccess.h is setting kDefaultIID = IID_IMETADATAACCESS.

But IID_IMETADATAACCESS I can't find on my system.

What is wrong here?

Regards

Jochen Seliger

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 Expert ,
Feb 16, 2017 Feb 16, 2017

Copy link to clipboard

Copied

Try a forum for InDesign programming.

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
LEGEND ,
Feb 16, 2017 Feb 16, 2017

Copy link to clipboard

Copied

Please post here InDesign SDK

But don't expect much interest in CS2 problems!

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 ,
Feb 16, 2017 Feb 16, 2017

Copy link to clipboard

Copied

I was intended to post to InDesign Forum.

But first I'd like to know if a namespace is the right solution to share variables with their values  across all my classes.

That is what I require.

If anbody has a better idea, I'm interested to know.

Regards

Jochen Seliger

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 Expert ,
Feb 16, 2017 Feb 16, 2017

Copy link to clipboard

Copied

LATEST

I've moved your question to the InDesign SDK forum.

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