Page 1 of 1

Working with Ranorex & C++

Posted: Mon May 11, 2015 12:07 pm
by TamirE
Hello,
I'm evaluating Ranorex for integration with our C++ test suite.
I have seen some of your tutorials and the code samples.
I am having a hard time understanding how to use Ranorex platform in a C++ project.
all the code samples are written with C# or CB.NET.

any help would be great.
Thanks in advance.

Re: Working with Ranorex & C++

Posted: Tue May 12, 2015 4:41 pm
by Support Team
Hi TamirE,

I am correct that you want to use the Ranorex DLLs in your C++ solution?
In general, Ranorex is based on the .Net framework, so the DLLs are managed .Net DLLs, so you should be able to load them into your .Net C++ solution in the same way as you would load other .Net DLLs into your solution.
Here are some hopefully useful links: Mixed (Native and Managed) Assemblies, DLLs in Visual C++ and Calling C# .NET methods from unmanaged C/C++ code.
When your C++ solution is not part of .Net you would propably need to make the follwing: How to call a C# library from Native C++ (using C++\CLI and IJW).
To know how to call the Ranorex methods you can open the online API and select Visual C++: Online API Documentation.

Besides that, I am afraid I am of little help here.

Regards,
Markus