hexagon logo

Got Visual Studio and the Interop.PCDLRN.dll... Now what?

As I upgraded one CMM to Windows 7 64-bit, my small VBS helpers died in the process (still kickin' butt on XP though).
So, I have begun re-coding them in Visual Studio 2010 (I think). I have gotten so far in the coding where I need to connect to PC-DMIS and start interfacing with it. Now, I managed to find the DLL that is supposed to expose some interfaces and methods and I have successfully added it to my project.

Then what? How do I use the DLL to connect to PC-DMIS and expose the PartPrograms collection for instance?

Oh, I am using C# for this...

Any and all input, examples or suggestions are VERY welcome!

TIA!
Parents
  • Run regedit.exe, look in HKEY_CLASSES_ROOT for PCDLRN.Application and PCDLRN.Application.8.1 - do they both have a CLSID, and the same?

    If they are the same, search the registry for that CLSID (it looks something like {AC5C0EBD-E5E6-4AFB-95CB-1861FDCF785F}) and see what the LocalServer32 key says (something like "C:\Program Files\WAI\PC-DMIS 2013 MR1 (Release) 64-bit\PCDLRN.exe" (NOTE: Quotes should be included). Verify that this is the actual path to your PC-DMIS.

    And if you don't understand these instructions, leave the regedit running to someone else...Stuck out tongue closed eyes

    The following VBA for Excel code works on my Win7/64, PC-DMIS/64 (opens a connection to an already running PC-DMIS)

      Dim app As PCDLRN.Application
      Dim cmds As PCDLRN.Commands
      Dim part As PCDLRN.PartProgram
      
      Set app = CreateObject("PCDLRN.Application")
      Set part = app.ActivePartProgram
      Set cmds = part.Commands
    
Reply
  • Run regedit.exe, look in HKEY_CLASSES_ROOT for PCDLRN.Application and PCDLRN.Application.8.1 - do they both have a CLSID, and the same?

    If they are the same, search the registry for that CLSID (it looks something like {AC5C0EBD-E5E6-4AFB-95CB-1861FDCF785F}) and see what the LocalServer32 key says (something like "C:\Program Files\WAI\PC-DMIS 2013 MR1 (Release) 64-bit\PCDLRN.exe" (NOTE: Quotes should be included). Verify that this is the actual path to your PC-DMIS.

    And if you don't understand these instructions, leave the regedit running to someone else...Stuck out tongue closed eyes

    The following VBA for Excel code works on my Win7/64, PC-DMIS/64 (opens a connection to an already running PC-DMIS)

      Dim app As PCDLRN.Application
      Dim cmds As PCDLRN.Commands
      Dim part As PCDLRN.PartProgram
      
      Set app = CreateObject("PCDLRN.Application")
      Set part = app.ActivePartProgram
      Set cmds = part.Commands
    
Children