Accessing Win32 handles in C#
-
All, I am new to the C# world and I am having some difficulty in finding information on the following. Is it possible to gain access to a Win32 window handle or CWnd pointer from within a C# application/form. Basically, I would like to use a C# form (or other construct) to simply house an already existing OpenGL window class written in C++. I would like to maintain all functionality already built into the C++ derived, 3D/OpenGL Window object. Any information and/or direction to other sources would be greatly appreciated Thanks in advance, Michael
-
All, I am new to the C# world and I am having some difficulty in finding information on the following. Is it possible to gain access to a Win32 window handle or CWnd pointer from within a C# application/form. Basically, I would like to use a C# form (or other construct) to simply house an already existing OpenGL window class written in C++. I would like to maintain all functionality already built into the C++ derived, 3D/OpenGL Window object. Any information and/or direction to other sources would be greatly appreciated Thanks in advance, Michael
Don't cross-post: choose one forum and ask your question there, don't put it in multiple forums. CPians don't appreciate this. :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.
-
All, I am new to the C# world and I am having some difficulty in finding information on the following. Is it possible to gain access to a Win32 window handle or CWnd pointer from within a C# application/form. Basically, I would like to use a C# form (or other construct) to simply house an already existing OpenGL window class written in C++. I would like to maintain all functionality already built into the C++ derived, 3D/OpenGL Window object. Any information and/or direction to other sources would be greatly appreciated Thanks in advance, Michael
pinhigh2k wrote:
Basically, I would like to use a C# form (or other construct) to simply house an already existing OpenGL window class written in C++.
Is it an ActiveX control? If it is it can be done easily.
Steve