How to learn Indesign CS3  SDK programming for windows

Hi,<br /><br />I am very new to plugin development.I am working in Indesign CS3 SDK (windows).<br /><br />But I am not able to write /understand the syntax of InterfacePtr.<br /><br />for eg :<br /><br />InterfacePtr<IClassIDData> orgDocFileHandlerData(doc, IID_ORGICLASSIDDATA); <br /><br />We get Pointer of any Interface , and pass some arguments .<br /><br />So can anybody help how to learn this programming , I am not finding any <br /><br />books or tutorials on this so that I can read from the basic. I have only <br /><br />referred to Programming Guide(CS3). Can anybody please help/explain  me how <br /><br />to learn it?<br /><br />Thanks.<br /><br />Ravi Sharma

It's only my way of understanding about InDesign SDK :<br /><br />* SDK objects are know as 'boss(es)' and are accessed thru interfaces.<br />* You can imagine object as collection of interfaces. And you can even aggregate new interfaces to existing objects.<br />* When you have a reference to an interface of a boss, you can access other interfaces (of the same boss - or object) using the *amazing* syntax : (here, doc is a probably an IDocument interface on a kDocBoss object, and you want to access it's IClassIDData interface)<br />InterfacePtr<IClassIDData> orgDocFileHandlerData(doc, IID_ORGICLASSIDDATA); <br />* And finally, InterfacePtr has a reference counter, which allows the framework to destroy the interface object - not the boss of course, only the memory used by the object - when it's non mre referenced.<br /><br />HTH !

Similar Messages

  • How to access indesign cs3 document through VC++

    Hello
    i am new to VC++, i need to communiacte Indesign CS3 through VC++, for this what can i do? inorder to access indesign docuemnts,
    i also need to access a Third party API for CS3 through VC++, for the two puproses, i dont have any idea, so
    kindly help me
    with regards,
    ram

    Hi ram<br /><br />As Olav has pointed out, you need to decide whether to use COM or SDK.<br /><br />SDK is hard core - and I really mean HARD CORE. I consider myself to be a reasonably good VC++ programmer, but when I tried to develop an InDesign plug-in using SDK and VC++ I was completely lost.<br /><br />However it is possible to use VC++ to control InDesign via the COM object.<br /><br />Here is what you should do:<br /><br />1) Make a new VC++ project (MFC, MFC Application)<br />2) In Wizard dialog select Dialog Based and leave everything else unchanged (simply press Next)<br />3) You now have a simple empty dialog with 2 buttons<br />4) Double-click the OK button<br />5) Insert the following code (before OnOK()):<br /><br />// COM support required for this<br />//  Call CoInitialize() to initialize the COM library on the current thread<br />if(::CoInitialize(NULL) != S_OK) return;<br /><br />// Create instance of InDesign Application<br />InDesign::_ApplicationPtr app;<br />// Use the appropriate version here<br />//  This string will be used to search the registry for the application<br />//  associated with it and the same is invoked. <br />//  If you have different builds of the same version and you want to work<br />//  with a specific build, call CreateProcess() for that build and then<br />//  call CreateInstance() so that the currently running instance is returned.<br />app.CreateInstance(L"InDesign.Application.CS3");<br /><br />// Open existing document<br />InDesign::DocumentPtr doc = app->Open("C:\\InDesign\\myDocument.indd", true);<br />InDesign::PagePtr page = doc->Pages->FirstItem();<br />InDesign::TextFramePtr textFrame = doc->TextFrames->FirstItem();<br />textFrame->Contents = "Hello world";<br /><br />6) Go to the start of the file<br />7) Insert the following code before // CAboutDlg dialog used for App About<br /><br />// Required for calling COM initialization methods<br />#include <objbase.h><br /><br />// Import InDesign's Type Library<br />#import "C:\Documents and Settings\All Users\Application Data\Adobe\InDesign\Version 5.0\Scripting Support\5.0\Resources for Visual Basic.tlb"<br /><br />8} Build and run the project (F5). When you press OK, InDesign should launch, open your document, find the first page, find the first TextFrame and replace the text (contents) with "Hello world"<br /><br />How to get in contact with your third-party API is a completely different ball game (not in the scope of this forum), but at least you now have a VC++ project with header files etc.<br /><br />If your third-party API is indeed an InDesign plug-in, I totally agree with Olav that you have to direct your questions to the SDK forum.<br /><br />Best regards,<br />Bo

  • How to download InDesign CS3 Debug (non-Server version)

    I have downloaded and installed the InDesign CS3 SDK and can generate a Release build of a plug-in and get it to load and work in InDesign CS3, but as indicated in the doc, building the Debug configuration of a plug-in and trying to get it to work in the Release version of InDesign CS3 does not work. So, of course, I want to download and install InDesign CS3 Debug so that I can load and run the Debug configuration of plug-ins. But I cannot find a way to download InDesign CS3 Debug anywhere. I find a link for downloading InDesign CS3 Server Debug but not InDesign CS3 Debug (non-server version).
    Can someone point me to the InDesign CS3 Debug download?
    Thanks

    The last official statement was here:
    http://blogs.adobe.com/notesfrommnr/2005/08/heres_how_to_ge.html
    The ASN membership details and site have changed since that writing, if you have problems following the instructions ask MNR for an update.
    Hth,
    Dirk

  • Can I open .pmd files in indesign? And how? Since indesign is a "substitute" for PageMaker it should/must be possible, but I don't know how to do it

    Can I open .pmd files in indesign? And how? Since indesign is a "substitute" for PageMaker it should/must be possible, but I don't know how to do it

    CS6 was the last version capable of opening Pagemaker files. It's included with Cloud subscriptions, so if you don't have it installed (or an earlier version) you can download it from your cloud subscription.
    To open them you use File > Open..., but the quality of conversion can range between nearly perfect and total garbage, depending on the PM file and the status of links (unembed images before trying to convert).

  • How do I get a program for windows to open without putting windows on my computer

    How do I get a program for windows to open and setup on my Macbook Pro without purchasing windows?

    Try running it through CrossOver Mac or WineSkin.
    (82008)

  • How can i  apply this  java program for  a jsp page?

    import java.io.*;
    import java.util.*;
    public class FileProcessing
      //create a vector container  for the input variables
         Vector variables = new Vector();
      //create a vector container for the constants
         Vector constants = new Vector();
      /*create a string expression container for the equation
         as read from the file */
         String expression = " ";
      //create double result container for the final result
         double result = 0;
         public boolean processFile(String filename,String delim)
          //index for values vector
              int num_values = 0;
          //index for constants vector
              int num_constants = 0;
          //current line being read from the external file.
              String curline = " ";
          //start reading from the external file
              try
                   FileReader fr = new FileReader(filename);
                   BufferedReader br = new BufferedReader(fr);
                   while(true)
                        curline = br.readLine();
                        if(curline == null)
                             break;
                    //determine the type of current interaction
                        boolean variable = curline.startsWith("input");
                        boolean constant = curline.startsWith("constant");
                        boolean equation = curline.startsWith("equation");
                        boolean output = curline.startsWith("result");
                   //on input variables
                        if(variable)
                          StringTokenizer st = new StringTokenizer(curline,delim);
                          int num = st.countTokens();
                          int count=0;
                          while(st.hasMoreTokens())
                               String temp = st.nextToken();
                               if(count==1)
                                    byte b[]= new byte[100];
                                    System.out.println(temp);
                                    System.in.read(b);
                                    String inputval = (new String(b)).trim();
                                    variables.add(num_values,inputval);
                                    num_values++;
                               count++;
                        // on constant values
                        if(constant)
                             StringTokenizer st = new StringTokenizer(curline,delim);
                             int num = st.countTokens();
                             int count = 0;
                             while(st.hasMoreTokens())
                                  String temp = st.nextToken();
                                  if(count==1)
                                       byte b[]= new byte[100];
                                       System.out.println(temp);
                                       System.in.read(b);
                                       String cons = (new String(b)).trim();
                                       constants.add(num_constants,cons);
                                       num_constants++;
                                  count++;
                        // on equation
                        if(equation)
                             StringTokenizer st = new StringTokenizer(curline,delim);
                             int num = st.countTokens();
                             int count = 0;
                             while(st.hasMoreTokens())
                                  String temp = st.nextToken();
                                  if(count==2)
                                       this.expression = temp;
                                  count++;
              // now we are ready to evaluate the expression
                       if(output)
                          org.nfunk.jep.JEP  myparser= new org.nfunk.jep.JEP();
                          myparser.setAllowAssignment(true);
                          for(int i=1;i<variables.size()+1;i++)
                             String name = "arg"+Integer.toString(i);
                             myparser.addVariable(name,new Double(variables.get(i-1)
                                                .toString()).doubleValue());
                          for(int i=1;i<constants.size()+1;i++)
                               String name = "arg" +Integer.
                                         toString(i+variables.size());
                               myparser.addConstant(name,new Double(constants.get(i-1).toString()));
                   //output is obtained as follows
                          myparser.parseExpression(expression);
                          result = myparser.getValue();
                          System.out.println("Assay value: "+result);
              catch(Exception e)
                   System.out.println(e.toString());
              return true;
         public static void main(String[] args)
              FileProcessing fp = new FileProcessing();
              fp.processFile("input.eqn",":");
    }//my text file name is: "input.eqn" (given below)
    input:Enter Value1:arg1
    input:Enter Value2:arg2
    input:Enter Value3:arg3
    constant:arg4
    constant:arg5
    Equation:arg1+arg2+arg3
    result:

    how can i apply this java program for a jsp pagewhy do you want to do this ?
    Your program reads from a file on the disk and formats based on a patterm.
    Jsp is not intended for such stuff.
    ram.

  • How do I install Creative Cloud programs for others?

    Users in my network are not allowed to install or update software.  How do I install Creative Cloud programs for them?  They are also not allowed to have Adobe IDs.  This is all to be done by Network Administrators, like me.

    You would use CC for Teams, but install it via deployment tools. Still, you're gonne need Adobe IDs for every memaber of the team. There's no way around that part, even if you manage them yourself.
    Mylenium

  • Indesign CS3 Crashes Randomly on Windows x64, Dual Monitor Setup

    My coworker and I just had our computers upgraded Windows XP 64-bt on the following computer setup:
    Intel Core i7 920 2.66Ghz CPU
    8GB DDR3 RAM
    Gigabyte GA-EX58 Intel X58 Motherboard
    1TB Seagate ES.2 7200rpm 32MB Cache SATAII Hard  Drive
    We're running CS3. Indesign keeps crashing on her machine, randomly from what we can tell. It runs fine on my machine.
    We are running Indesign in compatibility mode for Windows XP on both machings (the crashing was much worse before we turned it on).
    The only difference between my computer and the workstation where Indesign CS3 crashes is she has a dual monitor setup.
    Any thoughts on what might be causing it?

    Thanks for the heads up.We're actually kinda banking on Windows 7 to be a bit more stable and switch to that, but it's a long few months when your program crashes every few minutes.
    I just realized that we don't have the latest update (5.0.4) on her machine, we've downloaded it and are hoping that will help to at least reduce the crashing...

  • What is the best anti-virus programe for windows 7 32 bit??

    what is the lightest and fastest anti-virus programe for windows 7 32 bit ??
    any recomendations would be appreciated
    thank you :)

    The issue is not how light or fast the AV software is but how effective it is in protecting your computer.
    AV Software reviews:
    http://www.pcmag.com/article2/0,2817,2372364,00.asp
    and: http://anti-virus-software-review.toptenreviews.com/
    J W Stuart: http://www.pagestart.com
    Never be afraid to ask. This forum has some of the best people in the world available to help.

  • How much HD space should I partician for Windows XP?

    I am upgrading to a new (2010) iMac i5 with 1 TB HD and I was wondering how much disc space I should make for Windows XP? I only have a couple of special apps that I use in Windows and the attending files do not take up much space so other than the OS I may not need too much, but would appreciate a little starting point. Thanks.

    I got this mixed up with my Shakespearean readings. I should be partition. I hit the key before reading.

  • How to download Adobe Premiere pro CS5 for windows to my new imac 27 inch

    How to download Adobe Premiere pro CS5 for windows to my new imac 27 inch

    IMHO Windows would be the place to start.
    Why do you want to load CS5 for Windows?
    Adobe does produce a version of CS5 that runs on OS X so that it would not be necessary for you to have to screw around with Windows. Personally that would be the way to go and avoid the hassles of Windows.
    Allan

  • How to fix error 3914 of itunes for windows...?

    How to fix error 3914 of itunes for windows...?

    Queries1 :- Where i need to type the above command to get the version of cygwin and make.From the command prompt -- Make sure that the Cygwin Bin directory is set in the Path (Refer to the same doc, 7. Add Cygwin Bin Directory to Path). You could also search for make.exe file to verify the directory where all those executable files are located.
    Thanks,
    Hussein

  • Is their a program for windows xp to put ipod songs to itunes?

    is their a program for windows xp to put ipod songs to itunes? i would appreciate the help! =)

    no try this http://mac.softpedia.com/get/System-Utilities/Pod-Manager.shtml
    (its a free copy pod download)

  • Uninstalling the drivers and programs for Windows 7 SP1 64 bit of the OfficeJet 7410 All-In-One

    Hi
    Which utility should be used to properly and completely uninstall the drivers and programs for Windows 7 SP1 64 bit installed with the OfficeJet 7410 All-In-One printer?
    Thanks
    Bye
    balubeto

    Hi @balubeto 
    I located a software removal utility for you but if you have other HP printers or scanners you may perform the more basica uninstall.
    Software and Driver Removal Utility
    Uninstalling the Printer Software (more basic uninstall)
    I hope this resolves your inquiry.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Installation of Master Collection CS3 (disc version for Windows)  on a laptop without optical drive

    Installation of Master Collection CS3 (disc version for Windows) -  is there any possibility of installing my legitimately purchased MC-CS3 on a new laptop without optical drive? Perhaps through a download link or will tranfering all Adobe files from my old to my new computer do the trick as well? Or do I necessarily have to buy an external optical drive? Thank you for answering.

    No need to buy an optical drive and don't try transferring, it rarely works.
    Download the installer from Download CS3 products
    Install then enter your serial number to license it.

Maybe you are looking for

  • Div moves down when window is resized

    Hello, Here's my problem:  When I resize my browser window the main div is resized up until a certain point when it just falls below all of the other content. How can I prevent this from happening?  I have both the top and bottom div's set to auto wi

  • IchatAV 3

    Hi from Texas. I have an iSight Camera, System 10.4.4 on Mac G4, iMac 17 in. I have AIM loaded. Is there some one out there willing to test my iChat Video. I have not been able to find anyone with the same set up to test with. My daughter has a PC in

  • SWC and Unit for PI 7.0 for a Java application

    i want to integrate my Java application with XI. In SLD what should i mention the SWC and Unit for PI 7.0 for a Java application to be integrated????

  • Cant install elements 9 on macbook pro retina. no optical drive

    I bought a new macbook pro retina. it doesnt have an optical drive. i purchased the adobe photoshop elements 9 but cant install it now. can i download it from the adobe website and how do i do that. thanks

  • How can i connect iphone 4 with other mobile through bluetooth

    how can i connect iphone 4 with other mobile through bluetooth