win32 wrapper (not off topic imho)

C

Cornelius

Hi all,

First of all; the reason I hope/think that this post is not considered
offtopic is that what I'm looking for is better/more pure C++.

Is anybody aware of a library that wraps the win32 API so that the all of
the following benefits are achieved:
-no need to include any of the windows headers so that your code will stay
pure C++? (no access to windows macro's, datatypes and other fancy stuff).
-usage of C++ capabilities of robust memory/resource management (concepts
like RAII)
-usage of C++ capabilities of throwing errors
-transparent declaration of functions so that one does not have to gues what
errorconditions are relevant per function. (a 'design by contract' style of
declarations).

and still be as close to win32 as possible?

greetings,

Cornelius
 
G

Gianni Mariani

Cornelius said:
Hi all,

First of all; the reason I hope/think that this post is not considered
offtopic is that what I'm looking for is better/more pure C++.

Is anybody aware of a library that wraps the win32 API so that the all of
the following benefits are achieved:
-no need to include any of the windows headers so that your code will stay
pure C++? (no access to windows macro's, datatypes and other fancy stuff).
YES

-usage of C++ capabilities of robust memory/resource management (concepts
like RAII)
YES

-usage of C++ capabilities of throwing errors
YES

-transparent declaration of functions so that one does not have to gues what
errorconditions are relevant per function. (a 'design by contract' style of
declarations).
KINDA


and still be as close to win32 as possible?

NO

Austria C++ (shameless plug) - see the alpha at
http://netcabletv.org/public_releases/ - a little dated but it shows how
it could be done.
 
B

BobR

Cornelius wrote in message...
Hi all,
First of all; the reason I hope/think that this post is not considered
offtopic is that what I'm looking for is better/more pure C++.

Is anybody aware of a library that wraps the win32 API so that the all of
the following benefits are achieved:
-no need to include any of the windows headers so that your code will stay
pure C++? (no access to windows macro's, datatypes and other fancy stuff).
-usage of C++ capabilities of robust memory/resource management (concepts
like RAII)
-usage of C++ capabilities of throwing errors
-transparent declaration of functions so that one does not have to gues what
errorconditions are relevant per function. (a 'design by contract' style of
declarations).
and still be as close to win32 as possible?
greetings,
Cornelius

Throw out all your specs, bite the bullet, and just use wxWidgets.

wxWidgets URL: http://www.wxwidgets.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top