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

How Do I Reference a COM DLL?

TC
I posted this question earlier, but didn't receive a reply, so I'm
going to rephrase it and try again.

I have a VB.NET application which requires a COM DLL. When I add a
reference to the DLL, Visual Studio creates an Interop DLL. That seems
okay. I can compile the application and run it on my development
computer.

When I copy the executable and all the DLLs over to the production
computer, however, the system does not use the COM DLL I put in the
application folder. It uses a different DLL which has a bug and causes
my application to fail.

Why is the system using the wrong DLL? How do I force it to use the
right one?
-TC
Feb 11 '08 #1
5 1147
On Feb 11, 9:24*pm, TC <golemdan...@yahoo.comwrote:
I posted this question earlier, but didn't receive a reply, so I'm
going to rephrase it and try again.

I have a VB.NET application which requires a COM DLL. When I add a
reference to the DLL, Visual Studio creates an Interop DLL. That seems
okay. I can compile the application and run it on my development
computer.

When I copy the executable and all the DLLs over to the production
computer, however, the system does not use the COM DLL I put in the
application folder. It uses a different DLL which has a bug and causes
my application to fail.

Why is the system using the wrong DLL? How do I force it to use the
right one?

-TC
Was that DLL located and referenced from windows\system32 folder?
Feb 11 '08 #2
Did you register (regsvr32) the com dll? Is this a 3rd party dll? If so,
which version is the later version?

"TC" wrote:
I posted this question earlier, but didn't receive a reply, so I'm
going to rephrase it and try again.

I have a VB.NET application which requires a COM DLL. When I add a
reference to the DLL, Visual Studio creates an Interop DLL. That seems
okay. I can compile the application and run it on my development
computer.

When I copy the executable and all the DLLs over to the production
computer, however, the system does not use the COM DLL I put in the
application folder. It uses a different DLL which has a bug and causes
my application to fail.

Why is the system using the wrong DLL? How do I force it to use the
right one?
-TC
Feb 11 '08 #3
TC
On Feb 11, 12:04*pm, Family Tree Mike
<FamilyTreeM...@discussions.microsoft.comwrote:
Did you register (regsvr32) the com dll? *Is this a 3rd party dll? *Ifso,
which version is the later version?

"TC" wrote:
I posted this question earlier, but didn't receive a reply, so I'm
going to rephrase it and try again.
I have a VB.NET application which requires a COM DLL. When I add a
reference to the DLL, Visual Studio creates an Interop DLL. That seems
okay. I can compile the application and run it on my development
computer.
When I copy the executable and all the DLLs over to the production
computer, however, the system does not use the COM DLL I put in the
application folder. It uses a different DLL which has a bug and causes
my application to fail.
Why is the system using the wrong DLL? How do I force it to use the
right one?
-TC- Hide quoted text -

- Show quoted text -
Kimiraikkonen and Mike,

Thank you for responding to my post. Here are details:

- Neither DLL is located in windows\system32.

- It is a 3rd party DLL. The buggy version is newer (1.3.4.333) than
the good version (1.3.1.247).

- The buggy version is registered. The good version is not. I'm afraid
to register the good version because I don't know what that will do to
the buggy version. This is the production computer, and other software
may rely on the buggy version.
-TC
Feb 12 '08 #4


"TC" wrote:
On Feb 11, 12:04 pm, Family Tree Mike
<FamilyTreeM...@discussions.microsoft.comwrote:
Did you register (regsvr32) the com dll? Is this a 3rd party dll? If so,
which version is the later version?

"TC" wrote:
I posted this question earlier, but didn't receive a reply, so I'm
going to rephrase it and try again.
I have a VB.NET application which requires a COM DLL. When I add a
reference to the DLL, Visual Studio creates an Interop DLL. That seems
okay. I can compile the application and run it on my development
computer.
When I copy the executable and all the DLLs over to the production
computer, however, the system does not use the COM DLL I put in the
application folder. It uses a different DLL which has a bug and causes
my application to fail.
Why is the system using the wrong DLL? How do I force it to use the
right one?
-TC- Hide quoted text -
- Show quoted text -

Kimiraikkonen and Mike,

Thank you for responding to my post. Here are details:

- Neither DLL is located in windows\system32.

- It is a 3rd party DLL. The buggy version is newer (1.3.4.333) than
the good version (1.3.1.247).

- The buggy version is registered. The good version is not. I'm afraid
to register the good version because I don't know what that will do to
the buggy version. This is the production computer, and other software
may rely on the buggy version.
-TC
I think you have a few options. You might try debugging on a development
version with the newer dll. This may be futile as you seem to indicate that
the newer dll is buggy. Another choice is looking up examples of reg-free
com. There are numerous blogs on how to do this. This could help in this
situation.
Feb 12 '08 #5
On Feb 12, 2:12 am, TC <golemdan...@yahoo.comwrote:
On Feb 11, 12:04 pm, Family Tree Mike

<FamilyTreeM...@discussions.microsoft.comwrote:
Did you register (regsvr32) the com dll? Is this a 3rd party dll? If so,
which version is the later version?
"TC" wrote:
I posted this question earlier, but didn't receive a reply, so I'm
going to rephrase it and try again.
I have a VB.NET application which requires a COM DLL. When I add a
reference to the DLL, Visual Studio creates an Interop DLL. That seems
okay. I can compile the application and run it on my development
computer.
When I copy the executable and all the DLLs over to the production
computer, however, the system does not use the COM DLL I put in the
application folder. It uses a different DLL which has a bug and causes
my application to fail.
Why is the system using the wrong DLL? How do I force it to use the
right one?
-TC- Hide quoted text -
- Show quoted text -

Kimiraikkonen and Mike,

Thank you for responding to my post. Here are details:

- Neither DLL is located in windows\system32.

- It is a 3rd party DLL. The buggy version is newer (1.3.4.333) than
the good version (1.3.1.247).

- The buggy version is registered. The good version is not. I'm afraid
to register the good version because I don't know what that will do to
the buggy version. This is the production computer, and other software
may rely on the buggy version.

-TC
Another option: If your dll has no dependecy except your app, you can
rename buggy version to something before the installation to force not
to register a unwanted dll. Then leave the correct version and let
your app app is installed the bug-free dll must have registered and
must be in use.
Feb 12 '08 #6

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

Similar topics

2
by: RU | last post by:
Hi, I am working on a porting project to port C/C++ application from unixware C++, AT&T Standard components to g++ with STL on Linux. This application has been working properly on...
110
by: Mr A | last post by:
Hi! I've been thinking about passing parameteras using references instead of pointers in order to emphasize that the parameter must be an object. Exemple: void func(Objec& object); //object...
11
by: Doug | last post by:
Is there any harm in passing an object into a method with the 'ref' keyword if the object is already a reference variable? If not, is there any benefit?
13
by: Abe Frohnman | last post by:
Hello all, I'm passing a reference to a class into the constructor of a form, like so: public MyForm(int count, ref Area myArea) {...} How can I use myArea outside the constructor? Should I...
4
by: z_learning_tester | last post by:
I'm reading the MS press C# book and there seems to be a contradiction. Please tell me which one is correct, 1 or 2. Thanks! Jeff 1. First it gives the code below saying that it prints 0 then...
13
by: al.cpwn | last post by:
I get that these two are different int* get() { static int m; return &m; } int& get() {
51
by: Kuku | last post by:
What is the difference between a reference and a pointer?
27
by: David W | last post by:
I'm almost tearing my hair out. A colleague claimed that a null reference can exist, like this: void f( int& p ) { printf( "%d\n", p ); } int main (int argc, char *argv) {
41
by: Summercool | last post by:
Can we confirm the following? also someone said, Java also has "reference" like in C++, which is an "implicit pointer": Pointer and Reference --------------------- I am starting to see what...
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
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
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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.