DllImport a class?
C#
2
Posts
2
Posters
0
Views
1
Watching
-
I declare a export class in dll project in vc6 project. How can i import it into c#? I know we can use DllImport to make use of dll such as win32 api. But have no idea of importing a class. Any suggestion?
I don’t believe you can Interop with a class defined this way directly. You will either have to COM’ify the class, or build a managed wrapper around it in MC++, or rebuild it under VS.NET as a managed class. Regards