473,503 Members | 9,887 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COM obj Registered?

I need a way (in a VB.Net app) to determine if a COM obj is registered on a
user's PC. I can determine if the dll exists (where it was copied to by the
installl app). If not I can simply call regsvr32.

MSDN has tons of info on late binding, but assumes you have the COM obj as a
reference in your project. Any thoughts?

--Billg_sd
Jul 21 '05 #1
2 1342
I think you can try to create an object and if it works, it's registered.
Don't know of a better way, but I haven't had to do it. Look at this
article. Listing 3.4 shows how to use VB version of CreateObject the VB.NET
way.

http://www.informit.com/articles/art...=25857&redir=1

Hope it helps.
Chris
"Billg_sd" <Bi*****@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
I need a way (in a VB.Net app) to determine if a COM obj is registered on a
user's PC. I can determine if the dll exists (where it was copied to by
the
installl app). If not I can simply call regsvr32.

MSDN has tons of info on late binding, but assumes you have the COM obj as
a
reference in your project. Any thoughts?

--Billg_sd

Jul 21 '05 #2
Try to instantiate it using late binding or read the registry ?

Patrice

--

"Billg_sd" <Bi*****@discussions.microsoft.com> a écrit dans le message de
news:9D**********************************@microsof t.com...
I need a way (in a VB.Net app) to determine if a COM obj is registered on a user's PC. I can determine if the dll exists (where it was copied to by the installl app). If not I can simply call regsvr32.

MSDN has tons of info on late binding, but assumes you have the COM obj as a reference in your project. Any thoughts?

--Billg_sd

Jul 21 '05 #3

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

Similar topics

1
11014
by: Alejandra Parra | last post by:
The application used to work fine, but today, in this code: CType(Me.AxSSTab1, System.ComponentModel.ISupportInitialize).EndInit() ..Net shows the next error: An unhandled exception of type...
4
4170
by: Scott Dillard | last post by:
I have recently been provided with a new laptop. The old one ran Win 2000 with Access 2000 and the new one runs Win XP with Access 2000. When I try to run some of my modules in my old databases on...
1
4075
by: Cristina Malavasi | last post by:
Hi a have a COM dll made in C++ (I don't have the source code) I used tlbimp to create a managed .NET assembly dll... I reference this dll and import it with "using myDll" then I make an object...
3
8368
by: rua17 | last post by:
I add tow Com libraries to my project, I can see their content with intellisense, but when I instantiate a class contained in the library: PDDirectLib.PDDatabaseQuery pDbQuery = new...
1
1291
by: Phre2d | last post by:
We are attempting to move a large development project into the .NET age over time. We have a large number of ATL-based COM objects in this project. Following the "Journal Poster" example provided...
1
7077
by: Jim | last post by:
Have fully operational software package developed on VB.NET that worked until Jan 1 2003, with early stage deployments on Oct 10, Oct 23, Nov 11, Dec 12 and Dec 30. When attempted final...
0
4216
by: Nonee | last post by:
Anyone, anyone? : ) Hello- I have a form with the mediaplayer referenced to play mp3's and avi's and I believe that is what is causing the problem. I am not sure, but I am hoping. ...
13
15734
by: brianbasquille | last post by:
Hello all, Am trying to modify / update the existing open-source OpenHTPC. I've renamed most of the namespaces and some forms (as well as added my own with modifications) and everything works...
9
17518
by: DKn | last post by:
Hi , I am having a .Net Activex control. I have done coding for COMRegistering and Unregistereing in C#.Net. The code is follows.. static void ComRegister(Type t) { ...
0
2014
by: DKn | last post by:
Hi , I am having a .Net Activex control. I have done coding for COMRegistering and Unregistereing in C#.Net. The code is follows.. static void ComRegister(Type t) { ...
0
7294
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
7361
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...
1
7015
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
5602
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,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.