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

Creating a Release Build

New Here ,
Nov 24, 2016 Nov 24, 2016

Help! I have used the Basic example in the SDK as a basis to create my plug-in, it works fine on my machine so I built it to put on another machine, and discovered because it was in debug mode, it was using the debug version of the C++ libraries which aren't distributable, however when I change it to a release build then it just doesn't appear as an add-in (It is signed and reader enabled).

I don't know what I am missing \ what I should be doing in get this to work, it has been ages since I have done anything in C++ so the many many options in the project properties are lost in time.  I have spent nearly 4 days this and not made any progress.  Can you help? Or at least point me some areas to check? People to ask.

Thanks in advance.

Danny Banks

TOPICS
Acrobat SDK and JavaScript
4.2K
Translate
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 ,
Nov 25, 2016 Nov 25, 2016

Will the release plug-in loaded in Adobe Acrobat?

Translate
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 25, 2016 Nov 25, 2016

Nope not in that either, sadly.

Translate
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 ,
Nov 25, 2016 Nov 25, 2016

You can check your plug-in with this:

Dependency Walker (depends.exe) Home Page

Translate
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 25, 2016 Nov 25, 2016

Yes I have done this, and that's how I discovered it was dependant on the debug version of the DLL. 

Are you trying to say you think there might be another dependency missing? would Adobe Acrobat not produce an error, or log if this is a problem?

Translate
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 ,
Nov 25, 2016 Nov 25, 2016

Adobe Acrobat will not produce a error message.

Translate
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 25, 2016 Nov 25, 2016

Nope no missing dependancies.  So what to try next?  I am sure it's something to do with the property settings, but alas don't know enough about where I should be looking.

Translate
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 01, 2016 Dec 01, 2016

any more ideas anyone, I am banging my head against a brick wall here.

Translate
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 ,
Dec 01, 2016 Dec 01, 2016

Did you test the plugin with Adobe Acrobat on the other machine?

Translate
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 01, 2016 Dec 01, 2016

Yep same results on all machines.

Translate
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 ,
Dec 01, 2016 Dec 01, 2016

In the init part of the plugin you can insert some output code to a log file.

Translate
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 01, 2016 Dec 01, 2016

I tried a simple msgbox to start with, and in debug build it worked fine but in release build nothing, so I am guessing this would indicate it isn't hitting the init section which would explain why it isn't displaying, what remains unknown is WHY would it not be running the init section.

Translate
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 ,
Dec 01, 2016 Dec 01, 2016

1. Be sure the extension name returned by PIHandshake is unique and includes your company prefix.

2. You say you have verified there are no dependencies. How exactly did you do that? Did you install the C++ release runtime?

Translate
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 01, 2016 Dec 01, 2016

1)  Think so but will double check that.

2)  Yes I have the runtime installed (and used the dependency to check that none ot them were mssing).

D

Translate
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 ,
Dec 01, 2016 Dec 01, 2016

Which dependency check?

Translate
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 01, 2016 Dec 01, 2016

1) It is currently set to "TMS:LawManPDFPlugin"

2) I used Microsft Dependancy Walker... which confirmed it was using the runtime version of the files, but as it was not displaying so whilst a win, still doesn't work.

Translate
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 Employee ,
Dec 02, 2016 Dec 02, 2016

Developer prefixes MUST be four characters in length. They MUST also be registered with Adobe.

Yours (TMS) doesn’t qualify for either.

(NOTE: this isn’t your problem with loading – but it is a problem)

Translate
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 05, 2016 Dec 05, 2016

Thanks, wasn't aware of either, Adobe didn't mention anything when I applied for the Reader license, will investigate. 

Any ideas on the not loading? Anyone?

Translate
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 05, 2016 Dec 05, 2016

Irosenth,

I have been trying to locate the facility to register for a developer prefix but can't seem to find it anywhere can you point me in the right direction.

D

Translate
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 ,
Dec 05, 2016 Dec 05, 2016

Go to PDF Technology Center | Adobe PDF Technology Center and look for the link to "PDF Registry".

Translate
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 ,
Dec 01, 2016 Dec 01, 2016

1) Should be fine, a classic problem is adapting a sample, without changing this.

2) Sounds OK. A thought: does it use any private DLLs? If so it's no use putting them in the plug_ins folder with the plug-in.

Translate
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 01, 2016 Dec 01, 2016

It uses a Broker which uses an External DLL, but in itself no.

(The Broker has the external files with it).

I am so new to PDF plugins (and not used C++ in far too many years (I am a vb.net guy)). Can't help but feel there is something fundamental I am missing.

So frustrating... any ideas?

Translate
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 ,
Dec 01, 2016 Dec 01, 2016

So long as the broker isn't in the same folder: the PLUG_INS folder isn't added to the Windows search order.

Did you put your message in the PIHandshake routine, at the top, using MessageBox (not AVAlert)?

Translate
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 01, 2016 Dec 01, 2016

Yep that is exactly where I put it, built it on debug one message box, release nada.

D

Translate
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 ,
Dec 05, 2016 Dec 05, 2016

I don't have much idea now, but let's confirm your symptoms/do a test. Does the problem happen when all of these apply.

1. Release build as a set up by Adobe's project, not modified settings

2. NOT Reader enabled.

3. Testing on SAME machine as build, SAME machine as worked with Debug build

4. Debug and all other custom plug-ins removed.

5. Installed to Acrobat PRO not Reader.

6. Confirmed running PRO.

7. Confirmed Acrobat NOT RUNNING using Task Manager (not just status bar)

8. Confirmed keyboard not touched while Acrobat started.

Translate
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