IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Parker on February 07, 2006, 07:46:20 PM

Title: Temporary structures
Post by: Parker on February 07, 2006, 07:46:20 PM
I really like being able to do this
InitCommonControlsEx(@type(sizeof(INITCOMMONCONTROLSEX), &hFFFF))
which makes a temporary INITCOMMONCONTROLSEX, sets the members, and passes it to the function. I believe C++ has them also, since I've seen CRect(0, 0, 20, 20) or something like that before.

Anyways, I can't imagine it would be too hard, the compiler just has to allocate it and set members before calling, then do a delete call afterward, am I right?
Title: Re: Temporary structures
Post by: Ionic Wind Support Team on February 07, 2006, 08:45:48 PM
CRect is an MFC lass which uses the class constructor to set it up like that.   It's a very thin class mind you ;)  Only a few member funcitons for calculating width, height, etc.

You should post requests such as this one in the developers center.