473,320 Members | 2,004 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,320 software developers and data experts.

Using a C# component from within VB6 (none .net)

I would like to know if the following is possible:

create a component using C# or VB.NET -component will use the
..netframework v2
create a VB (NONE .net) COM object that uses the above created component

And if this is possible are their any pitfalls that we should be aware off?

Dirk.
Oct 18 '07 #1
3 1067

"Dirk B" <di**@woodstone.nuwrote in message
news:OF**************@TK2MSFTNGP04.phx.gbl...
>I would like to know if the following is possible:

create a component using C# or VB.NET -component will use the
.netframework v2
create a VB (NONE .net) COM object that uses the above created
component
It is possible, .NET objects can be used from COM.
>
And if this is possible are their any pitfalls that we should be aware
off?
The first such component loaded into the process will determine the .NET
runtime version used for all subsequent components.
Oct 18 '07 #2
Thanks for the answer.
Can this .NET component also be used from within a VB6 application/service
(instead of from a COM written in VB6)?

dirk.

"Ben Voigt [C++ MVP]" <rb*@nospam.nospamwrote in message
news:Oy**************@TK2MSFTNGP03.phx.gbl...
>
"Dirk B" <di**@woodstone.nuwrote in message
news:OF**************@TK2MSFTNGP04.phx.gbl...
>>I would like to know if the following is possible:

create a component using C# or VB.NET -component will use the
.netframework v2
create a VB (NONE .net) COM object that uses the above created
component

It is possible, .NET objects can be used from COM.
>>
And if this is possible are their any pitfalls that we should be aware
off?

The first such component loaded into the process will determine the .NET
runtime version used for all subsequent components.


Oct 18 '07 #3

"Dirk B" <di**@woodstone.nuwrote in message
news:ub**************@TK2MSFTNGP03.phx.gbl...
Thanks for the answer.
Can this .NET component also be used from within a VB6 application/service
(instead of from a COM written in VB6)?
Should work, same concern if mixing components from different versions of
..NET

VB6 uses COM natively, not just for COM servers.
>
dirk.

"Ben Voigt [C++ MVP]" <rb*@nospam.nospamwrote in message
news:Oy**************@TK2MSFTNGP03.phx.gbl...
>>
"Dirk B" <di**@woodstone.nuwrote in message
news:OF**************@TK2MSFTNGP04.phx.gbl...
>>>I would like to know if the following is possible:

create a component using C# or VB.NET -component will use the
.netframework v2
create a VB (NONE .net) COM object that uses the above created
component

It is possible, .NET objects can be used from COM.
>>>
And if this is possible are their any pitfalls that we should be aware
off?

The first such component loaded into the process will determine the .NET
runtime version used for all subsequent components.



Oct 18 '07 #4

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

Similar topics

3
by: Michael Sparks | last post by:
Hi, I'm posting a link to this since I hope it's of interest to people here :) I've written up the talk I gave at ACCU Python UK on the Kamaelia Framework, and it's been published as a BBC...
3
by: none | last post by:
Hi. I'm implementing a web deployment using 9i. I have a table for STOCK, which has one or more PURCHASES, which have one or more PURCHASE_ITEMS. When a purchase item is INSERTED, I'd like the...
3
by: Ken Kolda | last post by:
I have a .NET assembly which utilizes the System.Management classes to retrieve information about the computer. When run under ASP.NET, I can use this assembly with no problems. But now I'm trying...
2
by: Lauchlan M | last post by:
Hi. Following the example at http://www.codeproject.com/useritems/ooaspnet.asp?print=true, I have a datagrid descendant class that shows a JavaScript confirm dialog before deleting a row from...
0
by: MicroMoth | last post by:
hi, I'm new to ASP.Net and I'm trying to separate my application into a design layer, a business layer (which I am using my code behind pages for) and a data access layer. I was told that I'd...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
6
by: ransoma22 | last post by:
I developing an application that receive SMS from a connected GSM handphone, e.g Siemens M55, Nokia 6230,etc through the data cable. The application(VB.NET) will receive the SMS automatically,...
122
by: Edward Diener No Spam | last post by:
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection...
0
by: screenbert | last post by:
Managing DHCP Servers using C# They said it was impossible. It couldn't be done. But you can in fact manage DHCP servers using C#. This includes creating and deleting Scopes, SuperScopes,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.