3 ms·
you have a declaration without initialization there. Variables should always be initialized - this removes another large potential source of bugs. UINT uFlags
by robotresearcher 16y ago
you have a declaration without initialization there. Variables should always be initialized - this removes another large potential source of bugs.
UINT uFlags = DST_ICON | DSS_NORMAL;
or in C++
UINT uFlags( DST_ICON | DSS_NORMAL );
Also, declare variables const whenever possible.