Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: lethang85 on February 29, 2016, 03:24:44 AM

Title: How to programing C# with Mach4
Post by: lethang85 on February 29, 2016, 03:24:44 AM
Hello,

In mach3, i can call API by C#. But in Mach4, i can't call API because i don't know define: const, type .... ex: MERROR_NOERROR,MINSTANCE , HMCDEV. How to programing C# with Mach4?

Rgs

Title: Re: How to programing C# with Mach4
Post by: FocusPaul on March 01, 2016, 02:30:58 AM
Those defines are part of the SDK. If you have access to SDK, the C-header files are located in subfolder "SKD/include".
Title: Re: How to programing C# with Mach4
Post by: lethang85 on March 01, 2016, 08:27:52 PM
I have not access to SDK  :). You can show header files.

Rgs

Title: Re: How to programing C# with Mach4
Post by: smurph on March 01, 2016, 11:16:23 PM
In order to have access to the SDK, you need to become a registered developer.  Otherwise, the API is in the documentation that is distributed with Mach 4.  You will have to make your own C# API wrappers. 
Title: Re: How to programing C# with Mach4
Post by: lethang85 on March 02, 2016, 04:03:32 AM
Tks smurph.  How do register a developer?
Title: Re: How to programing C# with Mach4
Post by: smurph on March 02, 2016, 03:57:59 PM
I would ask here:  http://www.machsupport.com/contact-us/ (http://www.machsupport.com/contact-us/)
Title: Re: How to programing C# with Mach4
Post by: Steve Stallings on March 02, 2016, 05:44:19 PM
Most of the information you want is distributed as part of a normal Mach4Hobby install.

You will find the file -  Mach4CoreAPI.chm  - in the DOCS folder of your install directory.

This is a compiled Windows help file and should open with a simple double click on the file name.

It does contain the calling convention descriptions, but may not be up to date will all of
the latest available calls.

Regards,
Steve Stallings
www.PMDX.com
Title: Re: How to programing C# with Mach4
Post by: lethang85 on March 02, 2016, 08:17:03 PM
Tks for your infomation