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

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 1341
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
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
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
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
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.