Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dirk B - 18 Oct 2007 09:58 GMT
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.
Ben Voigt [C++ MVP] - 18 Oct 2007 15:34 GMT
>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.
Dirk B - 18 Oct 2007 16:00 GMT
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.

>>I would like to know if the following is possible:
>>
[quoted text clipped - 10 lines]
> The first such component loaded into the process will determine the .NET
> runtime version used for all subsequent components.
Ben Voigt [C++ MVP] - 18 Oct 2007 16:25 GMT
> 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.
>
[quoted text clipped - 12 lines]
>> The first such component loaded into the process will determine the .NET
>> runtime version used for all subsequent components.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.