Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

Delphi.net


#1

Hi,

Need I recompile sources to use SI with Delphi.Net (RadStudio 2007)?

The compiler don’t find dcuil

Thanks
Ing Giuseppe Monteleone


#2

Hello Giuseppe,

Delphi for .NET requires the Gurock.SmartInspect.dll .NET assembly. It cannot use the normal SmartInspect.pas/SiAuto.pas units. These are for Delphi/C++Builder for Win32 only.

So, in order to use SmartInspect with Delphi for .NET 2007, you need to add the Gurock.SmartInspect.dll .NET assembly as a reference to your project (you should be able to choose the assembly directly from the Add Reference dialog, otherwise the assembly can be found in your SmartInspect directory under “lib\dotnet\v1.x”).

You are then able to include and use the Gurock.SmartInspect namespace in your project. Please see the SiAuto class to get started. The SiAuto class in the .NET assembly is very similar to the SiAuto unit in Delphi. You can use SiAuto.Si for a “global” SmartInspect object and SiAuto.Main for the related session. Please let me know if you have any questions.