Hello Guest it is April 25, 2024, 10:15:24 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DiyAddict

Pages: 1
1
Mach SDK plugin questions and answers. / Re: Automating Mach from VB6
« on: October 25, 2010, 07:09:17 AM »
I think I've found the problem - it seems that the latest version of Mach3 (3.042.040) never creates the registry entry Mach4.Document, which is needed for the automation object to work.

The solution is to install version 2.63 first, then run it once, then install the latest version.

I'd be interested in comments - has anyone else had similar problems?

2
Mach SDK plugin questions and answers. / Re: Automating Mach from VB6
« on: October 23, 2010, 04:12:52 PM »
Ok, after searching around, I've seen a couple of examples of code similar to the following:

Create a reference to mach3.exe, then:

Public objMach As mach4.IMach4                                          'Access the embedded type library

Private Sub test()                                                               'Simple test sub

    Set objMach = GetObject(, "Mach4.Document")                     'Create the object
    objMach.LoadGCodeFile "c:\mach3\gcode\roadrunner.tap"        'Load Gcode

    Set objMach = Nothing                                                       'dereference Mach3 object

End Sub


My problem is that each time this program gets to the GetObject line, I get an error message "Runtime error 429: ActiveX component can't create object"

I know that Mach3.exe is properly referenced, because it's interface's methods and events show up.

No one else has reported this problem, so here's my question: Am I getting this error because I'm using the trial version of Mach 3?

VB6 says something about this error occuring when a license key is not found.

Any light you can shed on this matter would be greatly appreciated


3
Mach SDK plugin questions and answers. / Automating Mach from VB6
« on: October 23, 2010, 01:47:50 PM »
Hi everyone,
I'm trying to automate Mach from a VB6 program. Can anyone point me in the right direction?

Thanks in advance

4
Mach SDK plugin questions and answers. / Re: VS2008 Add Reference
« on: October 23, 2010, 08:41:50 AM »
Congrats on achieving this with VS2008. Has anyone managed to do something similar with VB6?

Pages: 1