Adding c++ OpenBLAS library to c# project - c#

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

Related

How to add the QuickTest.dll on c# for automating UFT

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.

Building a static library in a C# application

In my c# winforms application, I have to use some C code which is generated from TargetLink model. For this, in my solution I have added the C Code to a VC++ project and am building it into a static library. I have added another VC++ project with a C++ class to interface between C# and C(Static Library) and building it to a dll.
I have a new requirement in which the user will browse to the location of the C Code as the code may change periodically. The application has to use this code. I want to build a dll with the C++ class and the C Code.
What I have tried so far is parsing the .vcxproj file and changed the path of the C Files to the new location. I find this complicated and am looking for a better way to do this.
Do you use MS Visual Studio? Then if you write a PreBuild command for the C++ project which overwrites the source files if newer version exists in the user's location, it doesn't solve your problem?

How do I reference a DLL in a .net script without Visual Studio

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");

Visual Studio: Writing hints visible in other projects

Using Visual Studio 2013 and .NET I've created set of widgets which I want to use in external projects. Each class and method is well documented with the XML-style comments. For example:
///<summary>...</summary>
When I use already commented code within the same solution, the appearing prompt suggesting how to finish the line contains my remarks. Nevertheless, when I tried to generate a DLL file with the code and use it in the external project the comments were not available anymore. How can I document code to make these hints visible in other projects using the compiled DLL?
If you want to use Code Documentation when referencing dll you have to generate XML documentation. XML documentation has to be in same folder that .dll is in.

Build every Microsoft Visual C# 2012 file in separate .dll

I'm making mods for some game that are created through C# .dll files. I started a C# .dll project in my Microsoft Visual C# 2012. However, I want to make several .dll files - specifically one per .cs file.
How would I do that? I want to avoid making too many projects while every project contains just one file.
What purpose of this? To easily decompile and replace some class? I don't see any profit from this.
Use .cs-files and dynamic (re-)compilation and (re-)loading when needed. Several projects do this. It's quite comfortable way. But not troubleless...
Or make some API that will define what MOD must do and what MOD can do. Most projects that use mod's do this.

Categories