By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,684 Members | 1,338 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,684 IT Pros & Developers. It's quick & easy.

DllCanUnloadNow

P: n/a
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

Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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

"Ralf Hoelzemer" <Ra**@Step-Ani-Motion.de> wrote in message
news:Ox**************@TK2MSFTNGP11.phx.gbl... 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

Nov 20 '05 #2

P: n/a
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,
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

Nov 20 '05 #3

P: n/a
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

"Ralf Hoelzemer" <Ra**@Step-Ani-Motion.de> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
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,
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


Nov 20 '05 #4

P: n/a
ok,
then i will give it a shot!
thank you for your answers

Ralf

"Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> schrieb im
Newsbeitrag news:%2****************@tk2msftngp13.phx.gbl...
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

"Ralf Hoelzemer" <Ra**@Step-Ani-Motion.de> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
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,
> 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



Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.