Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started 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
-
Those defines are part of the SDK. If you have access to SDK, the C-header files are located in subfolder "SKD/include".
-
I have not access to SDK :). You can show header files.
Rgs
-
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.
-
Tks smurph. How do register a developer?
-
I would ask here: http://www.machsupport.com/contact-us/ (http://www.machsupport.com/contact-us/)
-
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
-
Tks for your infomation