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. C / C++ / MFC
  4. What is a wrapper class ?

What is a wrapper class ?

Scheduled Pinned Locked Moved C / C++ / MFC
questioncom
4 Posts 4 Posters 0 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.
  • D Offline
    D Offline
    Deepak Samuel
    wrote on last edited by
    #1

    Hi, I am new to programing . I often come across the word "Wrapper class" in some books. What is it?. What is a type library? When I open a *.tlb, I see a whole chunk of hexadecimal display. Thanks. Deepak Samuel

    P J M 3 Replies Last reply
    0
    • D Deepak Samuel

      Hi, I am new to programing . I often come across the word "Wrapper class" in some books. What is it?. What is a type library? When I open a *.tlb, I see a whole chunk of hexadecimal display. Thanks. Deepak Samuel

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      wraper class as a short example. win32 programming

      HWND hWnd;
      hWnd = createwindow(...);
      ShowWindow(hWnd,...);

      Wrapper to window (HWND)

      class Window
      {
      HWND hWnd;
      int CreateWindow(...)
      {
      hWnd = CreateWindow(....);
      }

      int ShowWindow(...)
      {
      ShowWindow(hWnd,...);
      }
      }

      As you see i wrapped HWND with a class, hence its a wrapper class.

      1 Reply Last reply
      0
      • D Deepak Samuel

        Hi, I am new to programing . I often come across the word "Wrapper class" in some books. What is it?. What is a type library? When I open a *.tlb, I see a whole chunk of hexadecimal display. Thanks. Deepak Samuel

        J Offline
        J Offline
        jmkhael
        wrote on last edited by
        #3

        As for tlb files you can view them with the Visual C++ tool OLE/COM object viewer Papa while (TRUE) Papa.WillLove ( Bebe ) ;

        1 Reply Last reply
        0
        • D Deepak Samuel

          Hi, I am new to programing . I often come across the word "Wrapper class" in some books. What is it?. What is a type library? When I open a *.tlb, I see a whole chunk of hexadecimal display. Thanks. Deepak Samuel

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #4

          Deepak Samuel wrote: What is a type library? When I open a *.tlb, I see a whole chunk of hexadecimal display. A .tlb is used to describe the methods and properties of a COM object. You can use #import to create a C++ wrapper class for the type library or you can view the details of the type library using the OLEView too that comes with Visual Studio. Michael But you know when the truth is told, That you can get what you want or you can just get old, Your're going to kick off before you even get halfway through. When will you realise... Vienna waits for you? - "The Stranger," Billy Joel

          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