I am trying to integrate c# instead of the vbscript for opening a uft script. I already have the code to test to convert my vbcodes into c# but I need to add reference first the interop.quicktest.dll.
I have a UFT One version 15.01 and using Visual studio 2015.
I tried the manage NU get but the dll is not existing.
How do I find / download this dll for me to be able to use the Quick Test functionality?
The code I'm trying to work is just like on the https://www.codeproject.com/Questions/156466/How-to-Automate-Qtp-with-C-sharp
Please help on how I can add reference the dll to my application...
Best regards,
Mon
I found the solution!
It is actually not interop.quicktest.dll as the name of the dll to be added as reference to be able to use the code.. it is QTObjectModelLib.dll and QTObjectModel.dll which is located in the bin folder of the UFT installation.
In my case it is in:
C:\Program Files (x86)\Micro Focus\Unified Functional Testing\bin
Then after adding it, the Quick Test exist also on the references.
Related
I am trying to use some classes from the Microsoft.DirectX.DirectInput namespace, in the past if there was a namespace I couldn't use in my project I would just go to references and add the file with that name to my project, except that I cannot find the file in the list.
How can I use this namespace?
Found the answer at https://social.msdn.microsoft.com/Forums/en-US/2a08e16f-e05b-412e-b533-4b91f11db864/erorr-in-loading-directx-reference?forum=gametechnologiesdirectx101 Following the C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0 path, I was able to find the DLL I needed. Then just went to references > add reference > browse (the one at the bottom next to OK) then found the DLL.
How do I reference a DLL in a C# script? I'm not using Visual Studio, I'm just using NPP with a C# plugin to write a quick one file script. That script needs to reference a third party DLL. Is there a code snippet that I can include to accomplish this?
The DLL I want to reference is for iTextSharp
Now we know the plugin you're using, it's easy. Just read the documentation on "Using .NET assemblies". In particular, it sounds like you want:
//css_reference iTextSharp.dll;
That's assuming the library is one of the locations CSScript can find automatically - read the linked documentation for more information and options.
You can load the assembly dynamically from a file
Assembly.LoadFrom("iTextSharp.dll");
I'm trying to use OpenBLAS in a c# project (more specifically I'm attempting to use it with Math.NET via MathNet.Numerics.Control.LinearAlgebraProvider). I've successfully created the files following https://github.com/xianyi/OpenBLAS/wiki/How-to-use-OpenBLAS-in-Microsoft-Visual-Studio.
Now I have a .lib and .dll file in a new directory (as per subsection Use OpenBLAS .dll library in Visual Studio), but I'm not sure where to go from here!
Does anyone know what I'm supposed to do from here? I cannot directly add the generated dll to my project, and from further reading it seems like I need to generate a new dll using Visual Studio.
Use the NativeWrappers solution file provided by MathNet.
Similar instructions for MKL and ACML are here:
http://mathnetnumerics.codeplex.com/wikipage?title=Native%20Providers&referringTitle=Documentation
I am kind of new to C#. I built a class library in order to create a DLL which I need to reference from a VB.Net application.
I followed all the steps detailed in this this article in order to generate the COM assembly based on my C# class library.
All the process ran smoothly (create the key, run gacutil.exe to add the assembly to the cache), but I still can't see the DLL from my main project in order to add it as a reference.
What am I doing wrong? Any help will be appreciated
There's some pretty bad advice in that article, the GAC is a deployment detail and has no relevance to the task of writing and using an assembly on your dev machine. The entire process also has nothing to do with COM at all.
Get ahead by opening your VB.NET solution in Visual Studio. Right-click the solution in the Solution Explorer window, Add, New Project. Pick "Class Library" from the C# node. Now right-click your VB.NET project, Add Reference, Project tab and select your C# project. Any of the public C# classes you write are now available in your VB.NET code.
You might not see the solution if it contains only one VB.NET project. Fix with Tools + Options, Project and Solutions, General, tick "Always show solution".
Is there a way to generate a DLL file from Visual Studio Express without explicitly creating a DLL project?
EDIT:
Maybe my thinking process has gone astray on me, but I am trying to setup NUnit, and thought is needed a dll to run it... Please correct me if I am wrong.
Yes, you can change the Project Properties|Application|Output Type to either Windows Application, Console Application or Class Library, thus by selecting Class Library you will output a DLL.
I struggle to think why you'd want to do this though?
How do you mean? What exactly are you after?
You can create an exe project and change the output type (project properties)... or you can use csc /target:library at the command line...