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!
Thanks for all your input, I checked the GUIDS and they all checked out, they existed and the path is correct.
What I haven't done is trying the VB-path as I want to create this as a learning experience for me in C#.
Who knows, I might have to do that if this doesn't work out (thanks ewe0006).
As I explained, the C# arena is new to me and I have no previous experience, but I feel like this could be a bug as I can't connect to PC-DMIS at all using the
Marshal.GetActiveObject in C#... I have a little tester app that checks for the instance in the ROT (Running Object Table) and PC-DMIS does not seem to be available there. Start Word (and PC-DMIS), then run my app (run it in a command window) and it will look for both an instance of Word and PC-DMIS through Marshal.GetActiveObject. Here, it finds Word when started and reports the opposite when Word isn't started. PC-DMIS on the other hand, displays as not available no matter what. I have tried running it elevated and not elevated to no avail. I want to connect to a running instance of PC-DMIS - not start a new one.
Thanks for all your input, I checked the GUIDS and they all checked out, they existed and the path is correct.
What I haven't done is trying the VB-path as I want to create this as a learning experience for me in C#.
Who knows, I might have to do that if this doesn't work out (thanks ewe0006).
As I explained, the C# arena is new to me and I have no previous experience, but I feel like this could be a bug as I can't connect to PC-DMIS at all using the
Marshal.GetActiveObject in C#... I have a little tester app that checks for the instance in the ROT (Running Object Table) and PC-DMIS does not seem to be available there. Start Word (and PC-DMIS), then run my app (run it in a command window) and it will look for both an instance of Word and PC-DMIS through Marshal.GetActiveObject. Here, it finds Word when started and reports the opposite when Word isn't started. PC-DMIS on the other hand, displays as not available no matter what. I have tried running it elevated and not elevated to no avail. I want to connect to a running instance of PC-DMIS - not start a new one.