473,385 Members | 1,712 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.

CoCreateInstance Equiv in VB.NET

I post a long ol' message about something I was doing... after reading my
post it seemed really long (sorry).

So I can shorten the question:
What's the "proper" VB .NET method for achiving the equivlent of the
CoCreateInstance API? I am specifying the GUID for the object and the
IDisPatch interface.

Thanks,
cw
Nov 20 '05 #1
2 7619
Chris,
What's the "proper" VB .NET method for achiving the equivlent of the
CoCreateInstance API? I am specifying the GUID for the object and the
IDisPatch interface.


Activator.CreateInstance(Type.GetTypeFromCLSID(<cl sid>))

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Nov 20 '05 #2
Mattias Sjögren <ma********************@mvps.org> wrote in
news:e0**************@TK2MSFTNGP11.phx.gbl:
Chris,
What's the "proper" VB .NET method for achiving the equivlent of the
CoCreateInstance API? I am specifying the GUID for the object and the
IDisPatch interface.


Activator.CreateInstance(Type.GetTypeFromCLSID(<cl sid>))

Mattias


Thanks, I'll give it a go! ;)

cw
Nov 20 '05 #3

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

Similar topics

2
by: Lady_A | last post by:
I have created a basic COM in-proc server and a client. The registration of my server succeeds according to regsvr32. I can see it in the registry, having the ProgID and the InProcServer32...
15
by: Brian Rogers | last post by:
Hello everyone, I apologize for the cross and re-post, but I am still searching for an answer. Why can C++ can create this object, but C# can't? I am trying to create an instance of the...
0
by: Tim Kiely | last post by:
I have a managed C++ class that exposes a COM object to ASP.NET. This COM object creates several other COM objects internally. A VS.NET 2002 build of the dll works fine on .NET 1.0 and 1.1. A...
0
by: Naveen | last post by:
Hi I have a component writtten in vc++ registered in MTS. I use MFC DLL which initializes and creates an instance and uninitialize of this MTS component. I use COInitialize ,COCreateInstance and...
0
by: alvin | last post by:
Dear friends, I am new to vc++ .net programing. Please anyone help me to solve my issue Following is my code:...
1
by: steveo.uts | last post by:
I've created a web app in C # that creates a self-extracting installation file, and then attempts to digitally sign that file using MS signtool. I'm using the Process class to invoke signtool...
5
by: igd | last post by:
Hello! I would like to code a wrapper for the C/C++-ASIO API. In one of the functions exported by an unmanaged ASIO driver DLL (loadAsioDriver) CoCreateInstance is called. When I call...
0
by: =?Utf-8?B?RGVib3JhaA==?= | last post by:
I keep getting the following error. CoCreateInstance (CLSID_DomDocument40) failed I don't have any idea how to solve this problem
6
by: ranin02 | last post by:
Hi, I have a COM method that is called from VBA. This COM method in turn calls CoCreateInstance on a class that is a .NET class with a COM wrapper around it. This all works fine. However,...
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: 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...
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...
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,...
0
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...

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.