What is a framework and a wrapper??

This is a discussion on What is a framework and a wrapper?? within the C++ Programming forums, part of the General Programming Boards category; Se topic...

  1. #1
    Veni Vidi Vice
    Join Date
    Aug 2001
    Posts
    343

    What is a framework and a wrapper??

    Se topic

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    A framework is usually a skeleton application that sets everything up for you but doesn't do anything. Like in Visual Studio you can get it to make a Win32 project that creates a window and a menu for you. This is a framework. Nothing important is really happening. Usually teachers give students framework so they can concentrate on the actual implementation of an assignment rather then getting bogged down with the setup.

    A wrapper is usually a class or set of classes that "wrap" the functionality of something. Like if you have a Direct3D wrapper, instead of having to call every setup call and create the device and setup the projection matrix you could call a class, lets say CGraphics initialize member function. This function would then call all of the Direct3D calls. Basically it makes it easier for people who don't know Direct3D to use your class and get graphics on the screen. Its a big level of abstraction.

    Hope that clears it up a little bit.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21