Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I need to integrate CCTV Camera controls to the Web API. The Panasonic provides two means of control (activeX and DLL). The Panasonic ActiveX plugin and MS Windows Server 2008 R2 does not like each other, so this leaves me with the DLL.
DLL are C++ libraries.
Panasonic PS-API:
http://security.panasonic.com/pss/security/library/developer.html#SDK
I am looking for guidance, how to integrate the controls.
Using C++ Class DLL in C# Application thread describes inclusion of the .NET Class, where in my case is COM Class I think. The thread also mentioning a wrapper for functions within the dll.
I am looking for some super simple example of the dll referencing, inclusion, dll wrapping and usage.
Thank You all.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am writing a program that utilises a c# sdk. The functionality of this program will be used in a larger program written in c++ using QtCreator. I would like to create a c# dll to interact with the sdk and then consume this in the c++ program. Has anyone done this before and can point me in the right direction.
Many thanks.
You can, I do this regularly at work. You can consume C# from C++ using COM and Interop. Worth noting now that this is all windows only.
If you've not used COM from C++ before you are in for a nasty surprise. It's fairly unpleasant.
This is a very big topic, so I can't really cover it in a post, but if you want to learn more, I'd look here for starting on the C++ side:
COM(C++) programming tutorials?
I'd recommend using ATL to make your COM life a lot easier.
EDIT: Actually I didn't know this, but Qt has COM support, so you'd be much better off using that - Have a look at https://doc.qt.io/qt-5.10/activeqt-index.html
Google around for the C# side, but it's mostly about using the ComVisible and Guid attributes on your classes to make them COM ready and then registering them using regasm.exe (Part of the .NET Framework).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
pocketsphinx has a SWIG interface "pocketsphinx.i" to generate wrappers in multiple language and one of them is C#.
It is not clear how to run the swig command in Windows and how to use the resulting library in a NetCore C# project.
What are the steps required to generate the wrapper library and use it in a C# NetCore app?
There is an official swig-based wrapper in github, you can compile it for Linux with Make or for Microsoft with CMake:
https://github.com/cmusphinx/pocketsphinx/tree/master/swig/csharp
You can also check
https://github.com/cmusphinx/pocketsphinx-unity-demo
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
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have a MFC dialog based windows application developed using C++ (both frontend and backend).
I need to convert my MFC dialog to a web-based application, without changing the backend, which is developed in C++.
Can i get a suggestion on the technology that can be used? (i.e. asp.net or wpf or ....)
Have a look at CPPCMS (http://cppcms.com/wikipp/en/page/main). I have used it to add a web-interface to an existing application and it worked very well.
You will have to create a new front-end with CPPCMS and then link it to your existing backend. This is however all still possible within one process/application.
CPPCMS can run its embedded http server or it can interface with something like apache through fcgi.
MFC dialog won't work with web based. You can try following:
Convert the code of present MFC app to a C++ dll which will export all the useful functions you are using.
Create an ASP.net web application which will have a form similar to your dialog.
Call your dll from ASP.net. Refer following
http://www.codeproject.com/Questions/208615/How-to-invoke-Cplusplus-DLL-in-ASP-NET.
You will have to write the code to call the dll and display results in form.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for a free .NET (C#) library which i can use in my program and simply draw UML diagrams (especially class diagram). I tried to used Netron Diagramming Library but it is kind of tricky.
Have you looked at EasyDiagram?
Depending on your requirements you may be able to use the http://yuml.me/ REST api.
http://sourceforge.net/projects/numl/
From the home page:
Library for manipulating UML 2.0 and MOF 2.0 models, for .NET, Mono,
and DotGNU. Provides serialization to/from XMI 2.1.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for a free .NET (C#) library which i can use in my program and simply draw UML diagrams (especially class diagram). I tried to used Netron Diagramming Library but it is kind of tricky.
Have you looked at EasyDiagram?
Depending on your requirements you may be able to use the http://yuml.me/ REST api.
http://sourceforge.net/projects/numl/
From the home page:
Library for manipulating UML 2.0 and MOF 2.0 models, for .NET, Mono,
and DotGNU. Provides serialization to/from XMI 2.1.