星期六编程发现了borland delphi7的几个错误。
1 在win32 api中有如下一个函数:
the extracticonex function retrieves the handle of an icon from the specified executable file, dynamic-link library (dll), or icon file.
hicon extracticonex(
lpcstr lpszfile,
int niconindex,
hicon far * phiconlarge,
hicon far * phiconsmall,
uint nicons
);
parameters
lpszfile
pointer to a null-terminated string specifying the name of an executable file, dll, or icon file.
niconindex
specifies the index of the icon to retrieve. if this value is 0, the function returns the handle of the first icon in the specified file. if this value is -1 and phiconlargeand phiconsmall are both null, the function returns the total number of icons in the specified file.