DllCanUnloadNow

R

Ralf Hoelzemer

hi list,

the sdk of a program i am writing a plugin for says:

" The dll project implementing the COM object must implement and export the
DllCanUnloadNow function in order to be freed by UnloadCOMLibs. See your
compiler documentation for more details about DllCanUnloadNow. "

is it possible to export "DllCanUnloadNow" from a vb.net class library and
if yes - how would i do this ?

thank you

Ralf Hoelzemer
 
J

Jay B. Harlow [MVP - Outlook]

Ralf,
is it possible to export "DllCanUnloadNow" from a vb.net class library and
if yes - how would i do this ?
No it is not possible.

I would expect that one of the Framework DLLs already do this for you, as
when you are exposing COM types from .NET the framework is doing most of the
work converting the .NET types into COM types.

Hope this helps
Jay
 
R

Ralf Hoelzemer

ok,
thank you for your reply, Jay.
After a while of testing it seems true that the framework is handling this
command
internally, but after calling the command "UnloadAllCOMLibs" from within the
program all of my COM-References are gone and if i try to re-reference them
VS.NET tells me that it cannot do this because another program is accessing
these
files ath the moment.
Any suggestions ?

Ralf
 
J

Jay B. Harlow [MVP - Outlook]

Ralf,
You may want to ask this "down the hall" in the
microsoft.public.dotnet.framework.interop newsgroups as that is where the
COM interop experts tend to hang out.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top