May 04, 2024, 04:05:46 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Temporary structures

Started by Parker, February 07, 2006, 07:46:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Parker

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?

Ionic Wind Support Team

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.

Ionic Wind Support Team