Reference an Assembly

E

elziko

I need to reference an assembly in my project. The .NET assembly I
reference, however, requires a COM DLL to be registered. This wont exist on
every machine and machines that dont have it wont start my application.

Is there anyway that I can make a reference at run-time? That way I can
check if the DLL is installed first.
 
B

Blumidoo

I need to reference an assembly in my project. The .NET assembly I
reference, however, requires a COM DLL to be registered. This wont exist on
every machine and machines that dont have it wont start my application.

Is there anyway that I can make a reference at run-time? That way I can
check if the DLL is installed first.

I think that you should distribute your application in a setup, that checks
for that DLL first and registers it when needed when user unstalls your
software.

sincerely,
--
Sebastian Zaklada
Skilled Software
http://www.skilledsoftware.com
************************************
SQL Source Control 2003 - for
SQL Server Source Safe integration
and custom databases documentation
 
H

Herfried K. Wagner [MVP]

* "elziko said:
I need to reference an assembly in my project. The .NET assembly I
reference, however, requires a COM DLL to be registered. This wont exist on
every machine and machines that dont have it wont start my application.

Is there anyway that I can make a reference at run-time? That way I can
check if the DLL is installed first.

Install the DLL in a setup...
 
E

elziko

Install the DLL in a setup...

Yeah, I thought this was the most obvious solution. However, the DLL in
question is part of MS Activesync (rapi.dll). I'm not sure if this is
redistrubutable.

In any case, the DLL in question is dependant on 14 other DLLs including,
for example, CEUTIL.dll which is also part of MS Activesync.

Is there no way to conditionally make refrences? If the user doesnt have
Activesync then I'm obviously going to stop the user from using that
functionality.
 

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