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++ / July 2006

Tip: Looking for answers? Try searching our database.

Converting a VS 6.0 project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sugan - 11 Jul 2006 08:15 GMT
Hi all,

A VC 6.0 project( output is a Activex DLL) is converted to VC 2005
project and the output here is again a DLL.

When i try to include this DLL as a refernce is another VB 2005
project, i see this DLL as a COM DLL and it is creating a interop DLL
for interoperability. Why is it still seen as a COM DLL. When compiled
through Visual Studio 2005, does it not change it to a .Net DLL.

Can some one figure out what is goin wrong in this conversion.

Thanks,
Sugan.
Bruno van Dooren - 11 Jul 2006 09:12 GMT
> A VC 6.0 project( output is a Activex DLL) is converted to VC 2005
> project and the output here is again a DLL.
[quoted text clipped - 3 lines]
> for interoperability. Why is it still seen as a COM DLL. When compiled
> through Visual Studio 2005, does it not change it to a .Net DLL.

ActiveX == COM sort of. the terminology is mixed so often that the
difference between the 2 depends on when the question was asked at a
specific point in time.

If you add a COM/ActiveX reference to a .NET project, a wrapper will
automatically be created by VS *
so that you can use ActiveX objects like .NET objects.
(*) if there is a type library.

> Can some one figure out what is goin wrong in this conversion.

Nothing. Your activeX project is still an activeX project.
It will still create an ActiveX component.

Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"

Sugan - 11 Jul 2006 09:35 GMT
Does it mean that even if i convert a ActiveX project from VC 6.0 to VC
2005, it is not a .Net DLL. Still i have to use it by selecting it from
the COM Dll category. So it would again create a InterOp Dll when i use
it .Net Framework.

Now, what is the difference between the Dll compiled in VC 6.0 and VC
2005, as both results in producing a Interop DLL when included in a
.Net project.

Thanks,
Sugan.

> Nothing. Your activeX project is still an activeX project.
> It will still create an ActiveX component.
Bruno van Dooren - 11 Jul 2006 10:37 GMT
> Does it mean that even if i convert a ActiveX project from VC 6.0 to VC
> 2005, it is not a .Net DLL. Still i have to use it by selecting it from
[quoted text clipped - 4 lines]
> 2005, as both results in producing a Interop DLL when included in a
> .Net project.

For practical purposes there is no difference between the 2.
They are both ActiveX libraries.
Of course, VC2005 has a better compiler etc, so the code may be faster /
more efficient.

Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"

David Wilkinson - 11 Jul 2006 10:50 GMT
> Does it mean that even if i convert a ActiveX project from VC 6.0 to VC
> 2005, it is not a .Net DLL. Still i have to use it by selecting it from
[quoted text clipped - 10 lines]
>>Nothing. Your activeX project is still an activeX project.
>>It will still create an ActiveX component.

Sugan:

Functionally, there is no difference, though the VC 2005 one might run
better because the optimizations are better.

The (only?) good thing about COM is that it is language-independent.
Unlike other static or dynamic libraries, you do not have to recompile
COM DLL's when you move the client application to a different compiler.

David Wilkinson
Sugan - 11 Jul 2006 15:42 GMT
Hi David,

Thanks for your explanation.

-Sugan

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.