those functions are hell, but i realized today if some gives them to use
for people they simply should be named after Alloc, for example if
uunction uses malloc to alloc the bitmap or font etc (or other alloc may
be platform specyfic) the name of this function should be AllocBitmap AllocFont
Am 08.05.2026 um 20:16 schrieb fir:
those functions are hell, but i realized today if some gives them to
use for people they simply should be named after Alloc, for example if
uunction uses malloc to alloc the bitmap or font etc (or other alloc
may be platform specyfic) the name of this function should be
AllocBitmap AllocFont
For me CreateFont() and AllocFont() doesn't make a difference. But
people dealing with Win32 rather use MFC, which has RAII-wrappers
around all "allocating" functions (I guess almost no one uses C
for Win32 programming).
it makes a lot of difference becouse you can create things imo without allocating it - allocating is a special sinful event in a world of programming
Am 12.06.2026 um 14:39 schrieb fir:
it makes a lot of difference becouse you can create things imo without
allocating it - allocating is a special sinful event in a world of
programming
If you have a resource handle as with all Create*() functions with
Win32 this includes a memory allocation, mostly on the kernel side.
Tell me which resources you could create / allocate without allo-
cating memory.
For me CreateFont() and AllocFont() doesn't make a difference. But
people dealing with Win32 rather use MFC, which has RAII-wrappers
around all "allocating" functions (I guess almost no one uses C
for Win32 programming).
Bonita Montero pisze:
For me CreateFont() and AllocFont() doesn't make a difference. But
people dealing with Win32 rather use MFC, which has RAII-wrappers
around all "allocating" functions (I guess almost no one uses C
for Win32 programming).
world of programmers is quite big so your almost noone may
mean like 50 k people (i dont know but i would be surprised
if that would be something like few thousands only)
(by c i mean also this that can be compiled in c++ mode as i mysalf
often do, but it has no c++ oop trash, i generally use nothing form c++
mode except const int tab_max = 10000; though i think about usung references)
besides you think it is good not to do things than not many people do
???? its good to do what many sheeps do??
Am 08.05.2026 um 20:16 schrieb fir:
those functions are hell, but i realized today if some gives them to
use for people they simply should be named after Alloc, for example if
uunction uses malloc to alloc the bitmap or font etc (or other alloc
may be platform specyfic) the name of this function should be
AllocBitmap AllocFont
For me CreateFont() and AllocFont() doesn't make a difference. But
people dealing with Win32 rather use MFC, which has RAII-wrappers
around all "allocating" functions (I guess almost no one uses C
for Win32 programming).
Fwiw... MFC is basically total garbage. ATL, kind of crappy...
Am 14.06.2026 um 21:03 schrieb Chris M. Thomasson:
Fwiw... MFC is basically total garbage. ATL, kind of crappy...
It's not good C++. But if you're fixed to Windows it's as effective as Qt.
On 6/14/2026 10:58 PM, Bonita Montero wrote:
It's not good C++. But if you're fixed to Windows it's as effective as
Qt.
Fwiw, remember the message cracker macros from MS? ;^o
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 4 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 494928:18:58 |
| Calls: | 162 |
| Files: | 568 |
| D/L today: |
14 files (349K bytes) |
| Messages: | 74,957 |