Sunday, August 2, 2009

While creating an adobe indesign plug-in,how to add reference to a 3rd party dll in c++ ?

I need to create a connection between Adobe indesign (layout design tool) and Mark logic server.





For that i have to create a plugin for indesign which establishes connection with marklogic.





As a test project, i was successful in creating a sample web form application that connects to marklogic and fetches data from it.There i was getting directly an option to browse for marklogic dll under "add reference".





To create a plgin,a tool has been given by Indesign sdk,called dollyXs which generates basic vc++ code (vc++ project in visual studio 2005) for developing plugins.





In this VC++ project of visual studio, when i tried to add a reference to marklogic dll, im not getting any option under "add reference" for browsing that dll and adding it to the vc++ project.





Kindly help me and thnx in advance.





please mail me at sunil_chengalva@satyam.com.





Regards,


sunny.

While creating an adobe indesign plug-in,how to add reference to a 3rd party dll in c++ ?
You can use only file with a typelib ... or COM object ...





If your DLL is a standard dll, not an automation server, you need to create a wrapper for function dll .. and to load the dll through LoadLibrary/GetProcAddress standard api...


1 comment:

  1. Hi Sunny

    Hope you are fine! I also want to create VC++ plugin for InDesign to create some InMath Equations on the fly. Can you please share your piece of code? I am new to VC++ and have been working only on VB.NET.

    Thanks and look forward to hearing from you soon!!!

    Jayashree

    ReplyDelete