468,315 Members | 1,501 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,315 developers. It's quick & easy.

Converting a VS 6.0 project

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.

Jul 11 '06 #1
5 906
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.
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.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jul 11 '06 #2
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.
Jul 11 '06 #3
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.
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.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Jul 11 '06 #4
Sugan wrote:
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.

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
Jul 11 '06 #5
Hi David,

Thanks for your explanation.

-Sugan

Jul 11 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by j.a. harriman | last post: by
9 posts views Thread by Michael Tissington | last post: by
1 post views Thread by =?Utf-8?B?SG93YXJkIFBpbnNsZXk=?= | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.