Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to call RoboServer from Delphi?

Delphi possible roboserver
0
Posted

Is it possible to call RoboServer from Delphi?

0

Yes, if you use Delphi 8 for the Microsoft .NET Framework. What you do is: 1. Create your robots in RoboMaker and then use the C# wizard to generate a DLL for your robots. 2. Then in Delphi you add your generated DLL and robosuite-dotnet-api.dll as new references to your project. 3. Then you should be able to create input/output object and run robots from within your programs in Delphi. Here is an example of such a program that calls a hello world robot (RSDelphi.dll is my DLL containg the C# code for my robots): program HelloWorld; {$APPTYPE CONSOLE} {$UNSAFECODE ON} {%DelphiDotNetAssemblyCompiler ‘c:\temp\csharp\rsdelphi\robosuite-dotnet-api.dll’} {%DelphiDotNetAssemblyCompiler ‘c:\temp\csharp\rsdelphi\RSDelphi.dll’} uses RSDelphi.Models, RSDelphi.Robots; var result : array of HelloAnswer; var query : HelloQuestion; var name : string; begin try Console.Write(‘Enter your name: ‘); name := Console.get_In.ReadLine; query := HelloQuestion.Create(name); result := HelloRobot.Create.Run(que

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123