Blogs

Can I export a C++ interface with C-Style methods to a C# DLL?

This is a question posted right here on the stack overflow web site. None of the answers are completely correct since they do not address the real issue of the question. I consider those answers are work-around and they are not direct solution. With using xInterop C++ .NET Bridge, the answer of course is, YES. In C++, there is really no concept of an interface, the OP referred to the C++ abstract class by stating C++ interface. So let’s change the question to Can I export a C++ abstract class with C-Style methods to a C# DLL? Stating exporting a...

xInterop C++ .NET Bridge 3.3 is available now

xInterop C++ .NET Bridge 3.3 is available now We are pleased to announce the release of xInterop C++ .NET Bridge 3.3, a Code Generator for Creating Two-Ways Bridges between C++ Native World and .NET World. xInterop C++ .NET Bridge 3.3 is available to the public for evaluation. To anyone who is interested in using xInterop C++ .NET Bridge to Generating C# .NET Wrapper/Bridge for native C++ DLLs so that you can call native C++ DLL from .NET. Generating C++ Native DLL Bridge for .NET assemblies so that you can call .NET assemblies from native C++. You may want to download...

xInterop C++ .NET Bridge 3.1 is available for free download now

xInterop C++ .NET Bridge 3.1 is available for free download We are pleased to announce the release of xInterop C++ .NET Bridge 3.1, a Code Generator for Creating Two-Ways Bridges between C++ Native World and .NET World. xInterop C++ .NET Bridge 3.1 is available to the public for evaluation. To anyone who is interested in using xInterop C++ .NET Bridge to Generating C# .NET Wrapper/Bridge for native C++ DLLs so that you can call native C++ DLL from .NET. Generating C++ Native DLL Bridge for .NET assemblies so that you can call .NET assemblies from native C++. You may want...

xInterop C++ .NET Bridge 3.0 is available now

xInterop C++ .NET Bridge 3.0 is available now We are pleased to announce the release of xInterop C++ .NET Bridge 3.0, a Code Generator for Creating Two-Ways Bridges between C++ Native World and .NET World. xInterop C++ .NET Bridge 3.0 is available to the public for evaluation. To anyone who is interested in using xInterop C++ .NET Bridge to Generating C# .NET Wrapper/Bridge for native C++ DLLs so that you can call native C++ DLL from .NET. Generating C++ Native DLL Bridge for .NET assemblies so that you can call .NET assemblies from native C++. You may want to download...

xInterop .NET Bridge: Calling .NET assembly by using reflection from native C++

Native C++ application calls into C# .NET classes, methods using .NET reflection With xInterop .NET Bridge technology, it is quite easy to access the C# .NET classes, properties, instance methods and static methods from native C++ application using .NET reflection. The C++ bridge DLL generated by xInterop .NET bridge is strong-typed, which means all the C++ bridge class is mapped to a specific .NET class. By design, the methods of any class created in the C++ are the public methods of the .NET class. If you simply want to create a native C++ DLL wrapping around an existing .NET assembly...

xInterop .NET Bridge: Creating a C++ native DLL bridging to C# managed assembly

Creating a C++ native bridge DLL calling into C# classes and methods in a managed assembly using xInterop .NET Bridge Terminology Before we start talking about the features of xInterop .NET Bridge can offer, we would like to explain the terminology of such a Bridge. There are different words which may be used to describe such a technology for accessing and calling the C# method from a native C++ application. C++ wrapper, C++ binding, C++ Bridge, you name it. Our bridge technology provides 2 way communication between C++ native world and the .NET managed world. A “Bridge” may better represent...

Introduction to the xInterop .NET bridge

Introduction With the .NET open source movement, there will be more and more .NET libraries available to the managed world, there will be also a trend of using .NET libraries from all other languages, not every one is willing to re-invent the wheels in their favorite languages. The best language to bridge to the .NET world is C/C++. There are existing technologies which can be used to call into C# libraries. 1. C++/CLI C++/CLI is a bridging language which can be used to integrate .NET libraries by creating C++/CLI bridging/wrapper classes being exposed to the native world. The effort of...

Supporting C style DLL exporting functions

The current version of xInterop NGen++ only supports generating C# wrapper for native C++ DLL exporting C++ class. Developers have been asking for supporting C style DLL and we have started working on supporting this feature. Since the xInterop NGen++ has been able to generate C# wrapper assembly wrapping C++ classes quite well, we will not try to change anything to the existing code base, instead, we will take a approach by creating a new C++ DLL with a wrapper C++ class to wrap the existing export functions in the C style DLL as static methods and then it will...

xInterop NGen++ 2.0 is released

We have just released xInterop C++ .NET Bridge 3.0 on 08/24/2015. We are pleased to announce the release of xInterop NGen++ 2.0, a C# wrapper generator for native C++ DLLs. xInterop NGen++ 2.0 is available to the public for evaluation. To anyone who is interested in using xInterop NGen++ to generate C# .NET Wrapper for native C++ DLLs, you may want to download it from the link below and start evaluating it and experience how powerful xInterop NGen++ is. Once you start using xInterop NGen++, you will find that it is so easy to bridge the C++ native world to...

Advanced technology to wrap native C++ template class in C# automatically

XInterop NGen++‘s amazing abilities of wrapping C++ class in C# .NET automatically The bridge between C++ and C# .NET world is getting much more advanced than ever. Templates are a feature of the C++ programming language that allow functions and classes to operate with generic types. This allows a function or class to work on many different data types without being rewritten for each one. This is effectively a Turing-complete language. Templates are of great utility to programmers in C++, especially when combined with multiple inheritance and operator overloading. The C++ Standard Library provides many useful functions within a framework...
1 2 3 4
Translate »