>
> Thanks, Frank. Your new version works fine for me and I don't have to change my code.
> Also is it OK to remove version6 from the IconBuddy.vcx? I did so in my version.
>
Yes. IconBuddy6 is for VFP6-users. Some of the api-calls do not work the same way there. an external dll is needed to make that work. this is what version6 is for. So if You're using 7+ You're fine without it. 6 is inherited from IconBuddy. So nothing can happen.
Good it works now - thanks for the tip
>
> One more question: if I use thisform.oIconBuddy = newobject(...) I have to
> do thisform.oIconBuddy = null in form's destroy, right?
>
I am not using any OLE-Controls in it, so it should be ok to leave it out, it will be destroyed automatically. But I prefer to do a proper cleanup and garbage collection. In IconBuddy's destroy, dll's get released and temporary icons erased from disk. So, I would give it the time it needs to do its cleanup by issuing a deliberate this.oIconBuddy = null.