A1VBCode Forums

DllUnregisterServer


http://a1vbcode.com/vbforums/Topic19755.aspx

By Prabu - 8/14/2006

Hi all,

I tried to unregister a particular "ocx" file i am getting "Exception occurred" Error. I unregitered the ocx by using API's.

The steps i did for Unregistering

1) Get the handle for the file using LoadLibrary(<filename>Wink

2) Get the function pointer using GetProcAddress(handle,"DllUnregisterServer")

3) calling the function pointer. But it returns the "hr" value as "-2147352567"

But it unregister the specified ocx when I looked on Registry Entries.

please help me on how to debug the vb component "DllUnregisterServer" function