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

COM Objects in VB.NET

I'm trying to run a COM object that I created in VB.NET
inside another VB.NET program.

I'm running into problems with I try to use "CreateObject
()" -- I get the error message, "Cannot Create ActiveX
Object". After that, I try to instantiate it with "New",
but I don't see the object anywhere in the object browser.

The COM object was registered in the registry when I built
it. I see it listed there, but I can seem to access it.

Any ideas?

Jul 21 '05 #1
2 1246
Let's see what you want:

Develop a .NET object (.DLL?) --> Make it a COM object (and register in
windows) --> try to use the COM object in .NET app, rather than the original
..NET object.

Why? You should:

Develop a .NET object --> use it in any .NET app.

"Remulac" <an*******@discussions.microsoft.com> wrote in message
news:39****************************@phx.gbl...
I'm trying to run a COM object that I created in VB.NET
inside another VB.NET program.

I'm running into problems with I try to use "CreateObject
()" -- I get the error message, "Cannot Create ActiveX
Object". After that, I try to instantiate it with "New",
but I don't see the object anywhere in the object browser.

The COM object was registered in the registry when I built
it. I see it listed there, but I can seem to access it.

Any ideas?

Jul 21 '05 #2

"Norman Yuan" <no****@nowhere.no> wrote in message
news:uY**************@TK2MSFTNGP09.phx.gbl...
Let's see what you want:

Develop a .NET object (.DLL?) --> Make it a COM object (and
register in
windows) --> try to use the COM object in .NET app, rather than
the original
.NET object.

Why? You should:

Develop a .NET object --> use it in any .NET app.


I agree with Norman. However, if you really do need to create a
COM object, the way I always use them in .NET is to just add the
object as a reference then I let the IDE generate the .NET
wrapper around the object, and I just use that. It has seemed to
be the easiest method so far.

Andrew Faust
Jul 21 '05 #3

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

Similar topics

2
by: dasod | last post by:
I would like to know if my method to remove list objects is correct in this small test program. It seems to me that there might be a simplier way, but I'm afraid I don't know enough about list...
9
by: Aguilar, James | last post by:
Hey guys. A new question: I want to use an STL libarary to hold a bunch of objects I create. Actually, it will hold references to the objects, but that's beside the point, for the most part. ...
6
by: Alfonso Morra | last post by:
I have written the following code, to test the concept of storing objects in a vector. I encounter two run time errors: 1). myClass gets destructed when pushed onto the vector 2). Prog throws a...
3
by: ytrewq | last post by:
Should dynamic ("expando") properties be restricted to native and user-defined objects? Or should host objects - such as references to the browser or a plug-in or to the document and its elements -...
8
by: Lüpher Cypher | last post by:
Hi, Suppose we have a hierarchical class structure that looks something like this: Object | +-- Main | +-- Object1
161
by: KraftDiner | last post by:
I was under the assumption that everything in python was a refrence... so if I code this: lst = for i in lst: if i==2: i = 4 print lst I though the contents of lst would be modified.....
7
by: Jo | last post by:
Hi, How can i differentiate between static and dynamic allocated objects? For example: void SomeFunction1() { CObject *objectp = new CObject; CObject object;
21
by: George Exarchakos | last post by:
Hi everyone, I'd like your help... Can we have a std::list<BASEwhere BASE be the base class of a class hierarchy? I want to add to this list objects that are inherited from BASE class but not...
27
by: SasQ | last post by:
Hello. I wonder if literal constants are objects, or they're only "naked" values not contained in any object? I have read that literal constants may not to be allocated by the compiler. If the...
14
by: Jess | last post by:
Hello, I learned that there are five kinds of static objects, namely 1. global objects 2. object defined in namespace scope 3. object declared static instead classes 4. objects declared...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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.