Nerseus
Danner
Howdy!
Im trying to write a DLL that will interface into an existing library (more or less a plugin). The executable loads a DLL file (say "test.dll") and expects that DLL to implement a specific class. The class definition is in a C++ header file (.h) that I have.
I can easily create a test project in C++ that implements the given class and it works. Meaning, my standard C++ DLL compiles and the external executable loads it and instantiates the class and calls the method I need, doing what I want (yee haw!).
Now there are a LOT more classes and a lot more code to do and Id really prefer to NOT do it all in C++ as Im not that proficient. And I hate doing it all in VS6 (I cant use C++ .NET as the class I need to implement contains some functions with optional parameters and other issues that .NET doesnt like right now).
My idea is to create a simple C++ DLL in VC++ 6 (or maybe C++ .NET) that can then instantiate a C# DLL and passthrough all method calls.
Since I have the LIB file (and mabye even the source that created the LIB file), I was hoping theres a way to extract out the definition of the classes and get them in C# syntax. Asking too much? Ive only just begun! But thats all for now
This is all to use an existing library from a 3rd party that no longer supports the product. We know the code works because weve used it, but wed really like to port as much as possible to C# without taking the hit of converting the WHOLE C++ project to C#.
-nerseus
Im trying to write a DLL that will interface into an existing library (more or less a plugin). The executable loads a DLL file (say "test.dll") and expects that DLL to implement a specific class. The class definition is in a C++ header file (.h) that I have.
I can easily create a test project in C++ that implements the given class and it works. Meaning, my standard C++ DLL compiles and the external executable loads it and instantiates the class and calls the method I need, doing what I want (yee haw!).
Now there are a LOT more classes and a lot more code to do and Id really prefer to NOT do it all in C++ as Im not that proficient. And I hate doing it all in VS6 (I cant use C++ .NET as the class I need to implement contains some functions with optional parameters and other issues that .NET doesnt like right now).
My idea is to create a simple C++ DLL in VC++ 6 (or maybe C++ .NET) that can then instantiate a C# DLL and passthrough all method calls.
Since I have the LIB file (and mabye even the source that created the LIB file), I was hoping theres a way to extract out the definition of the classes and get them in C# syntax. Asking too much? Ive only just begun! But thats all for now
This is all to use an existing library from a 3rd party that no longer supports the product. We know the code works because weve used it, but wed really like to port as much as possible to C# without taking the hit of converting the WHOLE C++ project to C#.
-nerseus