Question

I have created an application which inherit the C++ Dll in .Net application with the help of the Link which used the Concept of Virtual Table.I was trying to find out the possibility for inhering C++ Dll in .Net. Above Link is very helpful for me. Now, I want to inherit my C# class from JSAPI of Firebreath framework which is the supporting framework of Native C++. I am using the Dumpbin.exe to verify which functions are exported in my .Net application. Please let me know if any solution.

Was it helpful?

Solution

To the best of my knowledge, there is no way to directly do what you want to do; however, you could possibly create something that extends JSAPI that can then wrap a managed object, though, using the reflection APIs to implement methods like HasMethod, HasProperty, GetProperty, SetProperty, and Invoke. Go look at NPObjectAPI in the firebreath source as kinda an example of what I mean. FireBreath has several such objects that make things that don't normally conform to JSAPI act like JSAPI objects.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top