Automation Error - Can't register type library

I am running Windows 7, 32-bit.
I tried to add a reference from Visual Studio but Photoshop was not visible. So I decided to try to register the type library manually.
I am trying to automate photoshop but I cannot get the type library registered.
There error I am getting is:
The module typelibrary.tlb may not be compatile with the version of windows tha tyou are running. check if the module is copaitble with an x86 (32 bit) or x64 (64-bit) version of regsvr32.exe
Any ideas?

You may be better asking in the SDK forum..
http://forums.adobe.com/community/photoshop/photoshop_sdk
I don't use Visual Studio, mainly JavaScript, but managed to get this to talk to Photoshop to change the brush hardness...
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace SendKeysTest
public class Driver
[DllImport("user32.dll")]
public static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
[DllImport("User32")]
public static extern int SetForegroundWindow(IntPtr hwnd);
public static void Main(string[] args) {
IntPtr iHandle = FindWindow("Photoshop",null);
SetForegroundWindow(iHandle);
SendKeys.SendWait("+]");
EDIT: This site might give you the information required:-
http://www.pcpix.com/Photoshop/#com

Similar Messages

  • While installing the itunes setup i am getting an error"Could not register type library for file ipodsevice.exe" What to do now?

    While installing the itunes setup i am getting an error"Could not register type library for file ipodsevice.exe" What to do now?

    Try posting in the iTunes forum.  You have an iTunes problem not an iPod problem

  • Fatal error C1083: Cannot open type library file: '..\..\bin\TsAdpApi.tlb': No such file or directory

    Hi Folks:
    I am doing one Dll file for TestStand , and got an error : d:\teststand3.5\teststand 3.5\examples\modaldialogs\mfc\tsapivc.h(18) : fatal error C1083: Cannot open type library file: '..\..\bin\TsAdpApi.tlb': No such file or directory
    Could anyone help me out of that ??
    Thanks in advance !

    This type library for the adapter API is embedded in the teapi.dll. If you are using Visual Studio.NET, there is an attribute called tlbid that you can use with the #import directive in order to import that embedded library (see the MSDN documentation for more details). For example:
    #import tlbid(2)
    In VC++ 6.0, there is no way to import embedded type libraries. Therefore, you must use the attached type library file (.tlb) with the #import directive. For example:
    #import "TsAdpApi.tlb"

  • ERROR: can't register at XIP. RfcRc = 3, SYSTEM_FAILURE

    I am running XI3.0 sp12, oracle 9.2.0.6 on MS Cluster - 2003.
    I am trying to set up CCMS as per How to Monitor XI 3.0.
    I am trying to register the CMSCONF file in the Admin Console, but am getting the following error:
    INFO: Connected to XIP, CCMS version in ABAP: 20040229   Successfully updated RFC destination.  Tue Jan 10 09:56:01 2006 par
    ERROR: can't register at XIP. RfcRc = 3, SYSTEM_FAILURE par
    RFC Error Info for SALF_CSM_AGENT_REGISTER message: An exception that could not be caught occurred. status:  intstat:   Tue Jan 10 09:56:05 2006 par
    INFO: dsr: dsrlib unloaded. ...closing this logfile... par
    Registration of CCMS Customizing Destination par
    Error during registration of CCMS Customizing destination ENTRY_NOT_EXISTING par
    I have madesurethe sapccms.exe is in the rightplace, the usernames and passwords are okay.
    It has created some entries in SM59 (SAP.CCMS.J2EE.XIP - works & SAPCCMSR.SAPXI.00 - doesn't work)
    Error when checking SAPCCMSR.SAPXI.00:
    ERROR                program sapxi.sapccmsr.00 not registered
    LOCATION             SAP-Gateway on host sapxi.fqdn / sapgw00
    DETAIL               TP sapxi.sapccmsr.00 not registered
    COMPONENT            SAP-Gateway
    COUNTER              3164
    MODULE               gwr3cpic.c
    LINE                 1621
    RETURN CODE          679
    SUBRC                    0
    RELEASE              640
    TIME                 Tue Jan 10 10:10:22 2006
    VERSION              2
    How can I resolve this issue??
    Regards

    Dear ,
    For Error  " LOCATION SAP-Gateway on host sapxi.fqdn / sapgw00 "
    Login into Visual Admin and go Service - JCO connection ..
    Check the user name and password..
    If you has changed the password in ABAP then also requred to change the password in JCO connection setting.
    After use SET button to set the password.
    Hope it will work.
    Regards,
    Ravindra Ghangurde.

  • Import package: Automation error Interface not registered

    Standard Import.dtsx package, which has been working well before fails on Load and Process stage with following error:
    Automation error
    Interface not registered
    This is on 7.0MS SP03  dual server: app server and  64bit MSSQL Server 2008
    Did dll got unregistered?
    Thanks,
    Roman

    Hi,
       Please verify if you have EVERESTDMSERVER COM+ Object. Try to shutdown all BPC COM+ components on application server.
    Regards,
    Mihaela

  • Server 280R is showing the error  can't open PAM library

    Hello Guys,
    Please help me to overcome this error .server is showing the error can't open the PAM library contact system administrator.i heard that i have to install one package to fix this problem that package is SUNnspr.but this package i am not getting any where from sun site .so kindly any body can help me what to do now.shall i install the os again or any other process is there.and the server is also not booting.
    Its very urgent

    Try searching for SUNWnspr in your Solaris CDs / DVD. Its there. Once you find it, use pkgadd to install the package and if you have access to sunsolve, apply the latest nspr patch (I think this patch available for SunOS 5.8 in patch 119209-11, for SunOS 5.9 in patch 119211-11, for SunOS 5.10 in patch 119213-11, for SunOS 5.9_x86 in patch 119212-11, for SunOS 5.10_x86 in patch 119214-11).

  • Showing error can't open PAM library

    Hello Guys,
    Please help me to overcome this error .server is showing the error can't open the PAM library contact system administrator.i heard that i have to install one package to fix this problem that package is SUNnspr.but this package i am not getting any where from sun site .so kindly any body can help me what to do now.shall i install the os again or any other process is there.and the server is also not booting.
    Its urgent

    Try searching for SUNWnspr in your Solaris CDs / DVD. Its there. Once you find it, use pkgadd to install the package and if you have access to sunsolve, apply the latest nspr patch (I think this patch available for SunOS 5.8 in patch 119209-11, for SunOS 5.9 in patch 119211-11, for SunOS 5.10 in patch 119213-11, for SunOS 5.9_x86 in patch 119212-11, for SunOS 5.10_x86 in patch 119214-11).

  • Web Service Import Error - Can't Create Project Library

    Hello,
    I'm haiving an issue importing a particular .NET web service using the import wizard.  I'm running .NET 2.0 framework and LV8.2.  I have followed this tutorial and successfully got a few simple services working.  I can successfully import an use simple web services like this one with no issues, but when I attempt to import a local web service I keep experienceing the same error at the end of the import, the error is:
    The following errors/warnings occurred when generating the local proxy dll and VI wrappers for this web service.
    Can't Create Project Library.
    Project Library Generation Failed.
    Possible Reasons:
    1) The imported project library has a conflicting name with a project library already in memory.
    2) The imported VIs have conflicting names with VIs already in memory.
    Close the project library and VIs and reimport the Web Service.
    ionService.lvlib
    I seriously doubt that the error is actually caused by 1 or 2, I think this is just the default message for some other error.  I have cleaned all previous failed projects from the userlibs and opened and closed the program, restarted etc...  I have also tried this and got the same error with another machine running .NET 1.1 and LV8.2, same error.
    The service's WSDL page seems to be working correctly, LV sees the availble functions and lists them correctly for import, it just always fails when creating the DLL wrappers.
    I have included the WDSL XML file for reference.
    Anyone have any ideas for fixing this?
    Thanks,
    Adam
    Message Edited by ajckson on 05-20-2008 04:27 PM
    Attachments:
    WSDL - XML.zip ‏2 KB

    Hi Adam,
    Some of the functions in your project library may have the same names as some of the inbuilt functions in LabVIEW or any loaded functions in the memory.
    Try closing down all other programs and see if it works.
    What are the names of the functions you are using?
    You may have to rename them to remove the naming conflict, but you did mention that you don’t think that it’s because of one of those reflected conflicts!!
    SubVIs being generated may have the same name as some LabVIEW inbuilt functions which may be causing the problem.
    Could you please provide the header file to see the names of the functions?
    Hopefully this helps!!
    Aashish M
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

  • Getting error Can't open file "~/Library/Application Support/iWeb/Domain.sites2." when trying to open iWeb?

    I recently had to replace my harddrive a few months back and tried to open my iWeb to update my website.  When I click to open it, I get "Can’t open file “~/Library/Application Support/iWeb/Domain.sites2.”  I uploaded iLife again but that didn't seem to help.

    Did you confirm that you have a Domain.sites2 file in your Users/Home/Library/Application Support/iWeb folder?  If so double click on it to try to open with iWeb.  If that doesn't work try the following:
    delete the iWeb preference file, com.apple.iWeb.plist, that resides in your Home()/Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • Error starting Software Update Manager (SUM) Can't retrieve C library version

    Hi,
    I am trying to update my SAP Solution Manager 7.1 SP04 to SP11 on a Debain squeeze. I did create a stack.xml and downloaded SUM SP10 (SUM10SP10_4-20006543.SAR)
    unpacked location is /usr/sap/S01/SUM
    I tried to run ./STARTUP with user s01adm but I got the following error:
    <!--LOGHEADER[START]/-->
    <!--HELP[Manual modification of the header may cause parsing problem!]/-->
    <!--LOGGINGVERSION[2.0.7.1006]/-->
    <!--NAME[/usr/sap/S01/SUM/sdt/log/SDTServer.log]/-->
    <!--PATTERN[SDTServer.log]/-->
    <!--FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%s]: %m)]/-->
    <!--ENCODING[UTF8]/-->
    <!--LOGHEADER[END]/-->
    May 6, 2014 3:23:52 PM [Info]: *************************************************
    May 6, 2014 3:23:52 PM [Info]: Starting SL Controller listening on port 4241 ...
    May 6, 2014 3:23:52 PM [Info]: Starting StorageService ...
    May 6, 2014 3:23:52 PM [Info]: Initializing SecurityManager ...
    May 6, 2014 3:23:54 PM [Info]: Server certificate fingerprint is 3E 76 23 18 C1 74 AC B9 5D E4 CC 88 BF FE 3A 08
    May 6, 2014 3:23:54 PM [Info]: Configuring HTTPManager ...
    May 6, 2014 3:23:54 PM [Info]: Starting WebstartService ...
    May 6, 2014 3:23:54 PM [Info]: Starting RoleService ...
    May 6, 2014 3:23:54 PM [Info]: Starting AlertService ...
    May 6, 2014 3:23:54 PM [Info]: Starting NotesService ...
    May 6, 2014 3:23:54 PM [Info]: Starting ProcessService ...
    May 6, 2014 3:23:54 PM [Info]: Starting MIDService ...
    May 6, 2014 3:23:54 PM [Info]: Starting FileService ...
    May 6, 2014 3:23:54 PM [Info]: LogService switched off.
    May 6, 2014 3:23:54 PM [Info]: Starting MailService ...
    May 6, 2014 3:23:54 PM [Info]: Starting services ...
    May 6, 2014 3:23:54 PM [Info]: Starting service "UseCaseService" ...
    May 6, 2014 3:23:55 PM [Info]: Starting MIDService ...
    May 6, 2014 3:23:59 PM [Error]: Can't retrieve C library version.
    May 6, 2014 3:23:59 PM [Error]: Error while initializing service context.
    May 6, 2014 3:23:59 PM [Error]: Can't initilize sdt service provider
    May 6, 2014 3:23:59 PM [Error]: Creation of use case executor failed.
    May 6, 2014 3:23:59 PM [Fatal]: Error during controller startup.
    May 6, 2014 3:23:59 PM [Fatal]: SL Controller exiting.
    This is what /usr/sap/S01/SUM/sdt/trc/DETECT.TRC reports:
    <!--LOGHEADER[START]/-->
    <!--HELP[Manual modification of the header may cause parsing problem!]/-->
    <!--LOGGINGVERSION[2.0.7.1006]/-->
    <!--NAME[/usr/sap/S01/SUM/sdt/trc/DETECT.TRC]/-->
    <!--PATTERN[DETECT.TRC]/-->
    <!--FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%s]: %-100l [%t]: %m)]/-->
    <!--ENCODING[UTF8]/-->
    <!--LOGHEADER[END]/-->
    May 6, 2014 3:23:56 PM [Error]:                                                                    com.sap.sdt.dmt.DMTFactoryManager [Thread[main,5,main]]: Property file dmt.properties not found in class path
    May 6, 2014 3:23:57 PM [Error]:                                                                  com.sap.sdt.jspm.JspmFactoryManager [Thread[main,5,main]]: Property file jspm.properties not found in class path
    May 6, 2014 3:23:57 PM [Error]:                                                                    com.sap.sdt.dmt.DMTFactoryManager [Thread[main,5,main]]: Property file dmt.properties not found in class path
    May 6, 2014 3:23:58 PM [Error]:                                                                  com.sap.sdt.jspm.JspmFactoryManager [Thread[main,5,main]]: Property file jspm.properties not found in class path
    May 6, 2014 3:23:59 PM [Error]:            com.sap.sdt.tools.sysinfo.unx.UnixDetermineOSInfo.setupUNIX(UnixDetermineOSInfo.java:131) [Thread[main,5,main]]: Can't retrieve C library version.
    May 6, 2014 3:23:59 PM [Error]:                                                         com.sap.sdt.server.core.admin.SDTServerAdmin [Thread[main,5,main]]: com.sap.sdt.tools.sysinfo.DetermineOSException: Can't retrieve C library version.
      at com.sap.sdt.tools.sysinfo.unx.UnixDetermineOSInfo.setupUNIX(UnixDetermineOSInfo.java:131)
      at com.sap.sdt.tools.sysinfo.unx.UnixDetermineOSInfo.<init>(UnixDetermineOSInfo.java:64)
      at com.sap.sdt.tools.sysinfo.unx.UnixOSInfoFactory.getOSInfo(UnixOSInfoFactory.java:29)
      at com.sap.sdt.j2ee.services.OSInfoServiceRetriever.retrieveOSInfo(OSInfoServiceRetriever.java:47)
      at com.sap.sdt.j2ee.services.SDTServiceProvider.detectOSInformation(SDTServiceProvider.java:587)
      at com.sap.sdt.j2ee.services.SDTServiceProvider.initServiceContext(SDTServiceProvider.java:414)
      at com.sap.sdt.j2ee.services.SDTServiceProvider.initialize(SDTServiceProvider.java:180)
      at com.sap.sdt.executor.service.ServiceAndBeanProviderFactory.getServiceAndBeanProvider(ServiceAndBeanProviderFactory.java:120)
      at com.sap.sdt.executor.usecase.UseCaseExecutionInitializer.getServiceBeanProviderWrapper(UseCaseExecutionInitializer.java:268)
      at com.sap.sdt.executor.usecase.UseCaseExecutionInitializer.initialize(UseCaseExecutionInitializer.java:155)
      at com.sap.sdt.executor.factory.UseCaseExecutorFactory.createUseCaseExecutor(UseCaseExecutorFactory.java:56)
      at com.sap.sdt.dsu.service.UseCaseService.createUseCaseExecutor(UseCaseService.java:1014)
      at com.sap.sdt.dsu.service.UseCaseService.initDetectUseCaseExecutor(UseCaseService.java:1027)
      at com.sap.sdt.dsu.service.UseCaseService.init(UseCaseService.java:166)
      at com.sap.sdt.server.core.services.Service.start(Service.java:94)
      at com.sap.sdt.server.core.admin.SDTServerAdmin.startServices(SDTServerAdmin.java:1155)
      at com.sap.sdt.server.core.admin.SDTServerAdmin.start(SDTServerAdmin.java:367)
      at com.sap.sdt.server.core.admin.SDTServerAdmin.runServer(SDTServerAdmin.java:847)
      at com.sap.sdt.server.core.admin.SDTServerAdmin.start(SDTServerAdmin.java:217)
      at com.sap.sdt.server.core.admin.SDTServerAdmin.main(SDTServerAdmin.java:126)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sap.sdt.bootstrap.BootStrap.start(BootStrap.java:169)
      at com.sap.sdt.bootstrap.Startup.start(Startup.java:140)
      at com.sap.sdt.bootstrap.Startup.main(Startup.java:356)
    May 6, 2014 3:23:59 PM [Error]:                 com.sap.sdt.j2ee.services.SDTServiceProvider.initialize(SDTServiceProvider.java:184) [Thread[main,5,main]]: Error while initializing service context.
    May 6, 2014 3:23:59 PM [Error]: com.sap.sdt.executor.service.ServiceAndBeanProviderFactory.getServiceAndBeanProvider(ServiceAndBeanProviderFactory.java:125) [Thread[main,5,main]]: Can't initilize sdt service provider
    May 6, 2014 3:23:59 PM [Error]:           com.sap.sdt.dsu.service.UseCaseService.initDetectUseCaseExecutor(UseCaseService.java:1031) [Thread[main,5,main]]: Creation of use case executor failed.
    May 6, 2014 3:23:59 PM [Fatal]:                 com.sap.sdt.server.core.admin.SDTServerAdmin.startServices(SDTServerAdmin.java:1165) [Thread[main,5,main]]: Error during controller startup.
    May 6, 2014 3:23:59 PM [Fatal]:                 com.sap.sdt.server.core.admin.SDTServerAdmin.startServices(SDTServerAdmin.java:1166) [Thread[main,5,main]]: SL Controller exiting.
    Any idea what could be wrong?
    Thanks,
    Sven

    SUM checks the libc version by parsing the output of 'ldd --version'.
    The java code looks like this:
    String[] parsedOutput = getCommandOutput("ldd", new ValueIF[] { new StringValue("--version") }).split("libc\\) ");
       if (parsedOutput.length > 1) {
       this.cLibraryVersion = parsedOutput[1];
      } else {
       throw new DetermineOSException("msg.tools.sysInfo.0078");
    With newer releases of libc, the output of ldd --version no longer contains a string matching the pattern "libc\\) ", so this fails.
    A rather quick-and-dirty workaround:
    - rename the ldd executable to ldd.exe
    - create the following shell script named ldd in /usr/bin:
    #!/bin/sh
    if [ $1 == "--version" ] ; then
      echo "libc) 2.17"
    else
      /usr/bin/ldd.exe $@
    fi
    As SUM ignores the PATH variable it is not possible to place the modified ldd into some other directory.
    br,
    Sebastian

  • Type Library Registered - but error still present.

    I am trying to automate this equipment = "Goniomertic
    Radiometer LD8900R".
    The installer included a LabVIEW library that references a new Type Library.
    So, I manually registered my type library (Gonio32.tlb).  It was successful.
    However, I am still having the same error "Error -2147221164 occurred at Class not registered ..."
    What am I missing?
    Ref:
    How Do I Manually Register Type Libraries, ActiveX Controls, and ActiveX Servers?

    ----------Attempt #1 -------------------------------------------------------------------------------------------------------
    Command String Entered:     "C:\I386\regsvr32.exe"  "C:\Program Files\Photon\GonioR\Gio32.dll"
    ERROR MESSAGE:
    ....\Gio32.dll was loaded, but the DllRegisterServer entry point was not Found.
    THis file cannot be registered.cannot be registered
    ----------Attempt #2 -----------------------------------------------------------------------------------------------------
    Command String Entered:    "C:\I386\regsvr32.exe" /i /n "C:\Program Files\Photon\GonioR\Gio32.dll"
    ERROR MESSAGE:
    ....\Gio32.dll was loaded, but the DllInstall entry point was not Found.
    THis file cannot be registered.cannot be registered.
    Attachments:
    GONIO_Install.jpg ‏64 KB
    Gonio.zip ‏119 KB

  • Error loading type library/DL​L?

    I am using ActiveX to call a LabView VI, compiled with the ActiveX
    Server option enabled. When I load the VI (using the CreateObject
    method) the front panel appears, but I get back this error:
    "0x80029c4a {Error loading type library/DLL.}". What is wrong, and
    how do I fix it? My program can't proceed beyond that point, because
    it doesn't have a valid handle for the VI.
    The VI is known to work (it is the "Frequency Response" example
    from 'examples\apps\freqresp.llb').
    Leslie

    When you open an instance of the application, make sure you are not opening a reference to LabVIEW, but to your stand alone application. In order to do this, you need to make sure your application is registered with the windows system. You can do this by either running the installer for it, or by running the executable with /register after it in the command line. In your code, you should create an instance of the application, then an instance of a VI pointer and use the GetVIReference method to assign a VI object reference to the pointer.

  • BlackBerry Desktop Software displays the error "Caught _com_error exception. Description(): (null): Error(): -2147319779 (0x8002801D). ErrorMessage(): Library not registered.:Source(): (null)." when attempting to synchronize organizer data

    BlackBerry Desktop Software displays the error "Caught _com_error exception. Description(): (null): Error(): -2147319779 (0x8002801D). ErrorMessage(): Library not registered.ource(): (null)." when attempting to synchronize organizer data.Can someone help me with this?  

    Tried clean wipe and reinstall. Immediately after reinstall of DM, in setting up my 9900 "for the first time", I received the following error message...
    "Either there is no default email client or the current mail client cannot fulfill the messaging request. Please open Microsoft Outlook and set it as the default mail client."
    I opened Outlook 2013 and checked that it was the default mail client. It was already.
    After going in and clicking to confirm default email client, I was allowed to proceed to configure organizer sync settings. I configured memo only (one way from device). I then received the same error message that I was receiving (per my original post in the last message). I've previously tried configuring only one type of organizer sync and not one of them completed a successful sync, so it can't be a bad entry in the calendar or contacts. I also tried deleting CICAL entries for all of email addresses other than my primary one. No difference. Also, prior to setup and sync, I confirmed that my 9900 was not on wireless sync.
    I was hoping that this was an old issue and I could use one of the old work-arounds, so if anyone has any ideas for something else to try, please let me know.
    In the mean time, I  have to assume that it's something that's changed with Outlook 2013 (particularly given the new error message I reported above. I hope that someone at RIM is aware of these error messages and is working on a compatibility fix for Office 2013.
    Thanks in advance,
    Sheldon
    Twitter: @sheldonbk
    Twitter: @sheldonbk

  • How can I use a COM object that does not have a type library?

    Hello,
    I've created a com server in python for which I do not have a type library. I am able to call functions for this application in Python, TCL, I'm sure VB, etc. without the type library.
    Must I have a type library registered to use this COM object with Labview? I was hoping I could simply supply the name to the refnum (or the GUID) then call functions by passings strings to the invoke node. This does not seem to be possible - am I missing something?
    In the event that I cannot use a com server without a type library. Any recommendataions on how to create one? I'm wondering if I can use the same GUID and create a shell in LabWindows which generates the IDL/TBD file I need for Labview to see my
    com server.
    Any help is greatly appreciated.
    73,
    Timothy

    Timothy Toroni wrote:
    > Thanks for the info, however their example is labview server and
    > python client. I'm going the other way. It's good to know about
    > LabPython though...
    >
    > As of now, it seems to be there is no way to use a COM object without
    > a type library from inside LabView.
    Yes that is true. LabVIEW needs that to configure the Property and
    Methode Nodes correctly. Otherwise it would need to have a special
    Property and Method Node with a configuration dialog similar to the Call
    Library Node, but a LOT more complicated. Not sure many people could
    make use of that, and it would be a very tiring experience trying to get
    things setup in that way, by going through the edit, test, and crash
    cycle over and over again.
    Rolf Kalberm
    atter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Photoshop Type Library Error

    Hi,
    Anyone can tell me the cause of this error "Additional information: QueryInterface for interface PhotoshopTypeLibrary.IPhotoshopApplication failed.".
    I'm using photoshop cs3 type library in VB.Net. Below is my codes
    Imports PhotoshopTypeLibrary
    Sub Main()
    Dim oPhoto As PhotoshopApplication
    Dim gControl As IActionControl
    Dim ophotoDoc As IAutoPSDoc
    oPhoto = New PhotoshopApplication
    gControl = oPhoto.MakeControlObject
    End Sub
    I'm using this code in CS2 but when I installed the CS3 the code is not working. Please help me to solve this error. Thanks in advance.
    Thanks
    Regards,
    Buddy

    You may be better asking in the SDK forum..
    http://forums.adobe.com/community/photoshop/photoshop_sdk
    I don't use Visual Studio, mainly JavaScript, but managed to get this to talk to Photoshop to change the brush hardness...
    using System;
    using System.Windows.Forms;
    using System.Runtime.InteropServices;
    namespace SendKeysTest
    public class Driver
    [DllImport("user32.dll")]
    public static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
    [DllImport("User32")]
    public static extern int SetForegroundWindow(IntPtr hwnd);
    public static void Main(string[] args) {
    IntPtr iHandle = FindWindow("Photoshop",null);
    SetForegroundWindow(iHandle);
    SendKeys.SendWait("+]");
    EDIT: This site might give you the information required:-
    http://www.pcpix.com/Photoshop/#com

Maybe you are looking for