I have gotten forgetful, or I've been hacking in UNIX to much.
I suppose it could be that I've been coding for about 27 straight hours.

I have written a specialized port scanner (It looks for a pattern of services that look like they may be Windows 5.x Servers.). The program is nearly finished. It works, but I don't know how well yet.

The program has been coded in raw C/Windows API. I was uncertain of the layout of the controls, so I used a dialog box as the main window.

The problem is I've forgotten how to assign an icon to a dialog:

* No Window Class to define it in.

* I've tried various combinations of Window Styles.

* I've called LoadIcon() from WinMain() and the Dialog Procedure.


No matter what I try, I get the default icon. I've browsed my books and the web and can't find the answer. I know it possible, I've done it many times before.

I believe this memory loss is what happens when one writes all their Windows applications in a RAD environment (Delphi) for to long.

(Only 27kb file size & Under 1mb RAM, so far...)