Page 1 of 1

c#

Posted: 15 Apr 2013, 09:42
by paul24
hi, i like be able to program robot with c# with visual studio. can u implement this? and also examples and tutorials? thanks.

Re: c#

Posted: 15 Apr 2013, 21:01
by coppelia
Hi,

Have a look here.

Cheers

Re: c#

Posted: 16 Apr 2013, 07:17
by paul24
hi, thanx for answer. but sorry, this is not what i want to do: call c from c#? i just want program robots with c#. i don't anderstand how call c from c# can me help? can u better explain please?

Re: c#

Posted: 16 Apr 2013, 10:03
by coppelia
Sorry, forgot some additional infos:

Using the link I provided you can call remote API functions to connect to V-REP and control a model or simulation.

Cheers

Re: c#

Posted: 16 Apr 2013, 11:57
by paul24
hi, i tried that but no avail. it dozen't work. can u send me template visualstudio file with c# example please?

Re: c#

Posted: 27 Jul 2013, 21:42
by SeveQ
I'm currently writing a .NET wrapper DLL for the remoteApi.dll. It's pretty easy, once you've figured out how. Just a diligent but routine piece of work...

Here's how you can provide a remoteApi.dll function to C#:

Code: Select all

        [DllImport("remoteApi.dll")]
        public static extern int simxStart(string ip, int port, bool waitForConnection, bool reconnectOnDisconnect, int timeoutMS, int cycleTimeMS);
All you have to do is have the remoteApi.dll in the same directory like your executable (and your wrapper DLL in case you build one too).