Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Accessing Win32 handles in C#

Accessing Win32 handles in C#

Scheduled Pinned Locked Moved Design and Architecture
csharpc++graphicsgame-dev
3 Posts 3 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pinhigh2k
    wrote on last edited by
    #1

    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

    L S 2 Replies Last reply
    0
    • P pinhigh2k

      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

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      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.


      1 Reply Last reply
      0
      • P pinhigh2k

        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

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups