import einer tlb Datei



  • Hi,

    ich hab leider keine Ahnung in welche Sparte des Forums das passt, ich poste es einfach mal hier rein.
    Also, ich importiere eine tlb Datei

    #import "C:\Programme\Adobe\Photoshop 7.0\TypeLibrary.tlb" no_namespace
    /*using namespace PhotoshopTypeLibrary; */
    

    Jetzt würde ich auch gern auf die Funktionen etc. dort drin zugreifen, nur leider bekomme ich nicht raus wie ich das genau mache...

    hier mal noch ein kleiner Teil aus der der TLB:

    // Generated .IDL file (by the OLE/COM Object Viewer)
    // 
    // typelib filename: TypeLibrary.tlb
    
    [
      uuid(4B0AB3E1-80F1-11CF-86B4-444553540000),
      version(7.0),
      helpstring("Adobe Photoshop 7.0 Type Library"),
      custom(DE77BA64-517C-11D1-A2DA-0000F8773CE9, 83951780),
      custom(DE77BA63-517C-11D1-A2DA-0000F8773CE9, 1018140129)
    
    ]
    library PhotoshopTypeLibrary
    {
        // TLib :     // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
        importlib("stdole2.tlb");
    
        // Forward declare all types defined in this typelib
        interface IActionReference;
        interface IActionList;
        interface IActionDescriptor;
        interface IActionControl;
        interface IAutoPSDoc;
        interface IAction;
        interface IActions;
        interface IPhotoshopApplication;
    
        typedef [public]
        __MIDL___MIDL_itf_OLEActions_0000_0001 PSConstants;
    
        typedef enum {
            phDialogDontDisplay = 0,
            phDialogDisplay = 1,
            phDialogSilent = 2,
            phTypeEnumerated = 0x656e756d,
    

    Sorry, für die wenigen infos, nur ich hab keine Ahnung was ihr wissen müßt um mir dabei zu helfen...
    Wenn man da nach googelt bekommt fast nur Basic um die Ohren gehaune.
    Ich bin wie immer für jeden brauchbaren Tip dankbar!

    Gruß
    setcookie



  • Hallo,
    welchen Compiler verwendest du?



  • Hi,

    ich verwende VC++.
    Hat sich aber erledigt, so geht es:

    #import "C:\Programme\Adobe\Photoshop 7.0\TypeLibrary.tlb" no_namespace
    using namespace PhotoshopTypeLibrary;
    
    IPhotoshopApplication *pDisp = NULL;
    

    Ich danke dir aber troz dem!

    Gruß setcookie


Anmelden zum Antworten