ErikM
July 22nd, 2003, 12:15 AM
Hi all,
I was wondering if it would be possible to encapsulate the Win32 API in its own namespace, and how one might go about doing this. I think it would be a lot cleaner, and somewhat closer to object oriented than the way it's currently set up. I'm not an expert at this stuff, and am not sure if it could be done with the current form of the Win32 API.
To make this a little clearer, instead of calling
hWnd = CreateWindowEx(...)
I'd call
hWnd = win32::CreateWindowEx(...)
or I could do something like
using namespace win32;
hWnd = CreateWindowEx(...);
Thoughts?
Erik
I was wondering if it would be possible to encapsulate the Win32 API in its own namespace, and how one might go about doing this. I think it would be a lot cleaner, and somewhat closer to object oriented than the way it's currently set up. I'm not an expert at this stuff, and am not sure if it could be done with the current form of the Win32 API.
To make this a little clearer, instead of calling
hWnd = CreateWindowEx(...)
I'd call
hWnd = win32::CreateWindowEx(...)
or I could do something like
using namespace win32;
hWnd = CreateWindowEx(...);
Thoughts?
Erik