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
  • I think what Anders is trying to say is you are getting an exception when you start PC-DMIS, but all you ever give yourself for feedback is your own generic message.

    Instead of this:

    MessageBox.Show("PC-DMIS needs to be started!");


    Try something like this:

    MessageBox.Show("ConnectPCDMIS : " & Exception.Message);


    You can change "ConnectPCDMIS" to whatever the name of the method you are making this call from (gives you a bit of a trace as to where exceptions are happening as your program gets bigger.) The main thing is, you'll be passing the message from the exception so your message box will tell you more about what's going on.
  • I got a error message " PCDLRN.Application has no clsid" when I run my PCDMIS addon program. The code calls CoCreateInstance(__uuidof(PCDLRN::Application). How to register this (PCDLRN.Application CLSID)? Thanks in advanced
Reply Children
No Data