How to host vc+ control (.lib) in c# winform
-
Hello all, I have typical problem as following. I have user control (grid contorl)developed in vc++ and compiled version is in .lib file. Same control i want to use in c#. As we cant call .lib file or have reference of .lib in .net project, we have to write some intermediate code /wrapper class. Do i need to convert first .lib file into dll in vc++? If yes the control is a class not just a group of function.Is it possible? so how to write it.I am not a vc guy. Is there any approch hwo to go about it?Can you step by step information. it will be great if i get reply soon..i m really stuck here... thanks and regards, Urvish
-
Hello all, I have typical problem as following. I have user control (grid contorl)developed in vc++ and compiled version is in .lib file. Same control i want to use in c#. As we cant call .lib file or have reference of .lib in .net project, we have to write some intermediate code /wrapper class. Do i need to convert first .lib file into dll in vc++? If yes the control is a class not just a group of function.Is it possible? so how to write it.I am not a vc guy. Is there any approch hwo to go about it?Can you step by step information. it will be great if i get reply soon..i m really stuck here... thanks and regards, Urvish
The only way i know is to create an ActiveX wrapper class in C++. You could then use this control via COMInterop. But since you said you are no C++ guy i would suggest you look for some GridControl implemented in .NET. Search CodeProject for GridControl, there are some on this site. /cadi 24 hours is not enough