What is a wrapper class ?
-
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
-
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
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.
-
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
-
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
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