Re: FromHandle not supported

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Alex Feinman [MVP] (public_news_at_alexfeinman.com)
Date: 03/23/04


Date: Tue, 23 Mar 2004 10:25:52 -0800

Yes, and yes. Thank you.

-- 
Alex Feinman
---
Coming to MDC? make sure to stop by the session CLI345
on Thursday for OpenNETCF talk
"hfr" <anonymous@discussions.microsoft.com> wrote in message
news:3377A784-5747-4CB8-ADA1-C7AE37A117AF@microsoft.com...
> Creat article!!
>
> Two questions:
>
> 1. from your source code
>   //ICONDIRENTRY
>   wrt.Write((byte)32); // width
>   wrt.Write((byte)32); // height
>
> Should be(?):
>   wrt.Write((byte)nWidth); // width
>   wrt.Write((byte)nHeight); // height
> nWidth and nHeight are set to 16 or 32 above in your code
>
>
> 2. Should use try/catch (or finally?) to free unmanaged resources
(HANDLES) if something happends?
>
> Best Regards,
> hfr
>
>