473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

DllCanUnloadNow

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
4 2426
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Max Metral | last post by:
So many details, so little knowledge of what's important. We have a site that we are subjecting to load tests. It makes heavy use of ADO, a VB COM object, some scriptlets, and some HTTP services....
2
by: Som | last post by:
A clients website is a combination of ASP pages and COM/COM+ objects - The following errors are being reported. Once this happens on the server the entire script engine fails... we have to...
0
by: SueDong | last post by:
I have a VC6 application and would like to convert it to .Net. The application have a few ATL projects that have a standard global CComModule _Module in header file and following code in cpp...
3
by: Tony Johansson | last post by:
Hello! Is there a big difference between COM DLL and DLL with it's exported functions? //Tony
3
by: Saurabh Aggrawal | last post by:
Hi, I am porting an application for 64-bit AMD processor and while linking the application i am getting the following errors: Processing directory uidll... Linking DLL...
2
by: Graham | last post by:
Hi everyone I'm having a couple of problems with the Internet Explorer browser control. I'm using VS.NET 2003 on Win2k SP4 with IE6. First, let me briefly describe how it's used in my project....
2
by: Prophet | last post by:
Can someone help me troubleshoot this IISSTATE log ? I have tried to make sense out of it but with no luck I am currently running IIS5 on a Win 2k box. Hosting 3 web sites and runnning asp...
5
by: NPotnis | last post by:
Hi , I am trying to host .Net UserControls in a MFC Application. The MFC Application is an ActiveX DLL. I inserted required managed code inside the MFC application, making it a mixed mode DLL....
1
by: Vishu7 | last post by:
Hi, I am porting my code which is written in VC2005( c++) to WinCE 5.0. When i build my project i get this error AACDec.def : error LNK2001: unresolved external symbol DllCanUnloadNow ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.