make D windows-aware

Regan Heath regan at netwin.co.nz
Wed Mar 22 17:33:07 PST 2006


On Wed, 22 Mar 2006 20:27:04 -0500, Jarrett Billingsley  
<kb3ctd2 at yahoo.com> wrote:
> "Chris Miller" <chris at dprogramming.com> wrote in message
> news:op.s6uctr1mpo9bzi at moe...
>> Can just use GetModuleHandleA(null)
>
> Why thank you.  I was wondering if there was an API call to get that.
>
> Now the only problem is that exceptions are displayed on the command line
> instead of popping up.. which may be a problem for the other programmers  
> in
> my little group..

Can you catch them all in WinMain i.e.

try {
   ..main..
} catch(Object o) {
   MessageBox(...
}

Regan



More information about the Digitalmars-d mailing list