473,383 Members | 1,868 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,383 software developers and data experts.

Reference an Assembly

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.

--

Cheers,

elziko
Nov 20 '05 #1
3 796
> 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
Nov 20 '05 #2
* "elziko" <el****@NOTSPAMMINGyahoo.co.uk> scripsit:
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...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
> 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.

--

Cheers,

elziko
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Vera | last post by:
I have two assemblies that each consist of several classes. Each object instantiated from those classes can have one or more child- and/or parentobjects that are also instantiated from those...
4
by: Edward Diener | last post by:
I have a class Y in assembly B which is derived from a class Z in assembly C. So I correctly add a reference to assembly C in assembly B, build assembly B and everything builds fine. Now I create...
4
by: dhnriverside | last post by:
HI guys I've just written my first independent namespace for my library (yay me!). However, on trying to add it to my website project, it causes an error when I look at the website. It compiles...
2
by: Vera | last post by:
I have two assemblies that each consist of several classes. Each object instantiated from those classes can have one or more child- and/or parentobjects that are also instantiated from those...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.