C# interop to lower level other than c\c++ [closed] - c#

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Given the fact that I need in specific parts of my projects,
to interop / interact a .net c# code with a code that's within a dll produced by an unmanaged language:
which language other than c\c++ has good compatibility and is as fast or preferably faster?
I have searched and found few ( looks promising) less popular names I couldn't decide on any of them as I have no clue how to if it's possible at all to interact with their dll.
Haskell, Rust, D, Fortran, Nim... and more..
Did you try to implement this approach with any of them?

Use C++/CLI. This give you an bridge with managed and unmanaged in the best performance possible.

Related

How to use native c++ template class in c++/cli [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a native c++ dll which contains some templates classes. And I need this dll in my c# code.
So I am using managed c++ for the c++ dll in order to use it in the c# code, but I have a big problem on how using the template classes in .Net.
Please if you guys have some solutions to this, it will very helpful.
Thanks!
read C++ instantiate template class from DLL to make sure you're not falling down a common rabbit hole.
Read about IntPtr and Interoperability
Try putting it all together, and then post a new question which has a specific problem.

several funcions in one dll or seperate? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I have algorithm (c++ dll) wrapped in C#. The execution is on a web server.
Considering throughput/speed/memory etc. Should i write all functions in one dll or each function one dll? which way is better ?
All functions, classes and other structures may contain in one dll. This is better option. If you create more dll for each functions, management of the project, implementation and maintanence will be harder.

is it possible to make debugger like ollydbg via c#? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Is it possible to make a debugger like OllyDbg using C# ? I mean debug VC++, Delphi, Borland? Or make something like IDA (debugger) ?
No.
.NET Framework languages as C# and VB.NET are not the best choice to conduct it. You will have a LOT of work to get information from CPU, libraries and so forth. You will must to implement so many procedures to direct-call DLL´s and hardware, that it could be impossible in some scenarios.
To make a debug and get Ring-0 and other CPU and OS features, should be better to utilize C, C++ or even pure Assembly.

Best practice for creating a C++ Dll to be marshalled in C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have to write a C++ Dll to wrap an existing C++ Dll so it can be declared in C# because the existing C++ API is just too complicated (functions returning pointers to unions within structs within structs). Is there any best practice for this? For instance:
What's the best way of declaring a string from C++ to C#?
Is it better to have C++ functions using pointers or references?
It depends on how many functions you wish to export and if you wish to export them only to c#.
If you answer yes to one of these then I recommend using swig as functions will get generated for you automatically
Here is a link
http://www.swig.org/tutorial.html

How does one implement a c++ wrapper into C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am working on a project where I need to use a wrapper written in C++ to transfer messages across servers through c# code. The client applications are written in c#, but the message bus that I have to use doesn't work directly with .NET, so C++ wrapper to the rescue.
I hope that this makes sense, and any help would be great. Thanks
You can call C++ contained in a dll from C# using Platform Invoke. http://msdn.microsoft.com/en-us/library/aa288468%28v=vs.71%29.aspx. In this case it is actually the C# code wrapping the C++ code.

Categories

Resources