Hello Guest it is March 29, 2024, 07:45:32 AM

Author Topic: How to programing C# with Mach4  (Read 4634 times)

0 Members and 1 Guest are viewing this topic.

How to programing C# with Mach4
« 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

Re: How to programing C# with Mach4
« Reply #1 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".
Re: How to programing C# with Mach4
« Reply #2 on: March 01, 2016, 08:27:52 PM »
I have not access to SDK  :). You can show header files.

Rgs

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: How to programing C# with Mach4
« Reply #3 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. 
Re: How to programing C# with Mach4
« Reply #4 on: March 02, 2016, 04:03:32 AM »
Tks smurph.  How do register a developer?

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: How to programing C# with Mach4
« Reply #5 on: March 02, 2016, 03:57:59 PM »
Re: How to programing C# with Mach4
« Reply #6 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
Steve Stallings
www.PMDX.com
Re: How to programing C# with Mach4
« Reply #7 on: March 02, 2016, 08:17:03 PM »
Tks for your infomation