DllCanUnloadNow

  • Thread starter Thread starter Ralf Hoelzemer
  • Start date Start date
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
 
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
 
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
 
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
 
Back
Top