How to use dlib library in C# - c#

Is there anyway I can use dlib c++ library in C#. What I understood is creating a dll which can be called from c# may work but I dont know how to do it. Any help is appreciated. I am not familiar with C# and dll. Thank you

This section on MSDN explains interop: https://msdn.microsoft.com/en-us/library/ms235282.aspx

Related

How can i use xNet in C# & is there any alternate of xNet in VB.Net?

can anyone help me with using xNet in C# ?
1st thing is when i put source code into my c# code tab it partially hide the xNet and says no need of this ?
what should i do? and if i convert my code to vb.net then is there any alternate of xNet using in VB.Net ?
thanks for answers
XNet is a library, so just add a reference to the dll in visual studio. Here's a how to guide for that. https://msdn.microsoft.com/en-us/library/wkze6zky.aspx
As you are accessing the code as a dll you don't need to worry about what language it is coded in. vb.net and c# can both access the classes it defines.
If you're trying to convert example code which is written in c# to vb.net or vice versa try using an online conversion tool such as http://converter.telerik.com/
Your description of the issue you're facing with the tabs isn't terribly clear, if you need further help it may pay to upload a screenshot.
Unfortunately, it seems that there is no XNET support in VB.net or C# at the current time from NI. You can see this by going to the following link below. If you search 'Visual' on that webpage you will find 'Microsoft Visual C/C++ 6.0', which is an old version of Visual Studio ~1998.
http://download.ni.com/support/softlib//embedded%20networks/NI-XNET/Driver/16.0/readme.htm
If someone creates a dll for this then it would be possible, but most likely it is best to request this from NI directly. They should have the capability to support this and release an updated version of the NI-XNET driver software so they can support C# and VB.net.
Hope this helps. I guess the easiest way is to code it in LabVIEW or the harder way is to acquire a copy of Visual Studio C/C++ 6.0 (since they are no longer sold or available).

How to use Pocketsphinx with c#?

Good day!
I try to use pocketsphinx with c# ,but do not know how to do that.
Can you give me some links on examples, or piece of code?
Thank you!
I created an example, ready to use, Windows Phone example.
github
probably also usable for Windows 10 / UWP, otherwise I will make it compatible soon myself in the example.
You can use SWIG to generate a C# wrapper for PocketSphinx lib, like it done here:
https://github.com/cmusphinx/pocketsphinx-unity-demo/tree/master/Assets/Pocketsphinx
There is a piece of code that uses generated wrapper:
https://github.com/cmusphinx/pocketsphinx-unity-demo/blob/master/Assets/TestScript.cs

Can ImageMagickNET be used with c#?

I am making an application for editing images. I tried using ImageMagickNET, but can't figure out how to use the API - or if it even works with C#.
Does anybody know ho to use this API or if it works with c#?
ImageMagick.NET appears to be a managed C++ wrapper around the ImageMagick API. As such it should be usable by any .NET language (VB.NET, C#, even IronPython). I don't have experience using it at all but based on what I see in the code in their CodePlex repo I don't see any reason it wouldn't work.

integrate LightScribe functionality with c# application

hope you guys could share some light with me..are you guys aware of lightscribe? i have the sdk document and am tasked to integrate LightScribe functionality with c#.can anyone of you guide me or mayb have some examples to show me?
I haven't used the lightscribe api myself. But it appears to be a C++ API, what you will need to do is write a C# wrapper around it (using p/invoke)
A quick google search also turns up this wrapper library that someone has already done, have a look at the source in that and you will see the techniques used.

Calling an XLL in C#

I have a XLL Addin (Test.xll). I wish to use this in my C# (VS2008/.Net 3.5) application. If anybody can guide me how to use this in my C# application.
If anybody could please guide me how to use this XLL in the C# application, it will be great.
Any help is appreciated.
Regards,
Tushar
You'll have to use P/Invoke via static external methods which use the DLL's exports. However, depending on the dependencies in the XLL (especially if it uses some Excel functionality) you may not be able to get this to work properly.

Categories