Wrapped for unamanged code.
-
Hello, I want to invoke methods from the unmanaged code(COM component.). I want some suggestion for that, should i go for managed C++ wrapper or will be it OK if i go for C#. Basically main problem with the com is that, it has exposed one method named Init((Inknown *) *pSYNInfo). But they don't have exposed the SYNinfo class, which needs to be passed to Init function. So what approach should i do so that i can invoke the Init() function after setting the proper values to the SYNInfo Class. Can i access the SYNInfo file by adding the header file in the managed C++. Please help me out. Thanks in advance.
-
Hello, I want to invoke methods from the unmanaged code(COM component.). I want some suggestion for that, should i go for managed C++ wrapper or will be it OK if i go for C#. Basically main problem with the com is that, it has exposed one method named Init((Inknown *) *pSYNInfo). But they don't have exposed the SYNinfo class, which needs to be passed to Init function. So what approach should i do so that i can invoke the Init() function after setting the proper values to the SYNInfo Class. Can i access the SYNInfo file by adding the header file in the managed C++. Please help me out. Thanks in advance.
Rahul.RK wrote:
Can i access the SYNInfo file by adding the header file in the managed C++.
Sort of. Technically you will have what is called "mixed-mode" C++. That means it is comprised of both native code and managed code. If you did a "pure managed" project you could not be able to include the native C++ header file. Go to the Articles section of CodeProject and read the C++/CLI beginners articles, they have been rated very high.
led mike