PC Review


Reply
Thread Tools Rate Thread

DllCanUnloadNow

 
 
Ralf Hoelzemer
Guest
Posts: n/a
 
      10th Oct 2003
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



 
Reply With Quote
 
 
 
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      11th Oct 2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
>



 
Reply With Quote
 
Ralf Hoelzemer
Guest
Posts: n/a
 
      11th Oct 2003
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



 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      12th Oct 2003
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" <(E-Mail Removed)> wrote in message
news:%23UMIa%23$(E-Mail Removed)...
> 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

>
>



 
Reply With Quote
 
Ralf Hoelzemer
Guest
Posts: n/a
 
      12th Oct 2003
ok,
then i will give it a shot!
thank you for your answers

Ralf

"Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> schrieb im
Newsbeitrag news:%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:%23UMIa%23$(E-Mail Removed)...
> > 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

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:39 PM.