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

VB ActiveX to VC 2005

I have a Visual Basic 6.0 ActiveX Control.

It seems there is no way with VS 2005 to create a similar control for
containers that host ActiverX controls, is this correct ?

I'm thinking of converting the VB 6 project to VC in VS 2005.

This seems to be a very different process.

Where is a good place to start?

How do I go about the basic for creating the 'form' to hold the various
controls that will form the main ActiveX?

Thanks
Mar 26 '07 #1
15 1968
Michael,

Most probably here,

http://groups.google.com/group/micro...rch+this+group

Cor

"Michael Tissington" <mt*********@newsgroup.nospamschreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I have a Visual Basic 6.0 ActiveX Control.

It seems there is no way with VS 2005 to create a similar control for
containers that host ActiverX controls, is this correct ?

I'm thinking of converting the VB 6 project to VC in VS 2005.

This seems to be a very different process.

Where is a good place to start?

How do I go about the basic for creating the 'form' to hold the various
controls that will form the main ActiveX?

Thanks

Mar 26 '07 #2

"Michael Tissington" <mt*********@newsgroup.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I have a Visual Basic 6.0 ActiveX Control.

It seems there is no way with VS 2005 to create a similar control for
containers that host ActiverX controls, is this correct ?
Absolutely untrue. Anything that can be done in VB6 can be implemented in
VC8
>
I'm thinking of converting the VB 6 project to VC in VS 2005.

This seems to be a very different process.

Where is a good place to start?
Well, I would say, answer the question "why?". If it isn't broken.... why
waste the energy?

If you are serious about plunging ahead, you may want to consider using ATL
as the framework for accomplishing this. The main obstacle ahead of you is
the learning curve, which is not insignificant. Investment in a book such as
"ATL Internals" is probably the best course of action.
>
How do I go about the basic for creating the 'form' to hold the various
controls that will form the main ActiveX?
In the ATL world, you would be building on an ATL Composite Control.
HTH

Brian
Mar 26 '07 #3
Absolutely untrue. Anything that can be done in VB6 can be implemented in
VC8
>>

:-)

Well then the TS just found you are wrong cause there is no true Activex
equivalant in .Net

for instance VS 6 has the ActiveX executable where on instance can serve
manny clients while still providing 1 Gui to all of these clients, Rick
Strahl ( [MVP] ) wrote once a nice article regarding this he could only get
it to work with manny hacks and flaws while VB6 provides this out of the
box in a stable mather

And believe me as i am a progger who has lots of pre .Net experience MS has
still some catching up to do , before the Dev environment is as good and
stable as VS 6 was ( VS .Net 2003 was stable but missed a lot of features
, VS.net 2005 has a lot of features some were reintroduced from VS 6 but is
as a dev environment pretty unstable ) .

I am a Big fan of .Net but we must also note that it has some different
aproaches and Activex has no true substitute because of a different strategy
of MS for this technology ( obsolete )

just my opinion

michel

"Brian Muth" <bm***@mvps.orgschreef in bericht
news:Of**************@TK2MSFTNGP03.phx.gbl...
>
"Michael Tissington" <mt*********@newsgroup.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>I have a Visual Basic 6.0 ActiveX Control.

It seems there is no way with VS 2005 to create a similar control for
containers that host ActiverX controls, is this correct ?

Absolutely untrue. Anything that can be done in VB6 can be implemented in
VC8
>>
I'm thinking of converting the VB 6 project to VC in VS 2005.

This seems to be a very different process.

Where is a good place to start?

Well, I would say, answer the question "why?". If it isn't broken.... why
waste the energy?

If you are serious about plunging ahead, you may want to consider using
ATL as the framework for accomplishing this. The main obstacle ahead of
you is the learning curve, which is not insignificant. Investment in a
book such as "ATL Internals" is probably the best course of action.
>>
How do I go about the basic for creating the 'form' to hold the various
controls that will form the main ActiveX?

In the ATL world, you would be building on an ATL Composite Control.
HTH

Brian


Mar 26 '07 #4
"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>Absolutely untrue. Anything that can be done in VB6 can be implemented in VC8
>>>


:-)

Well then the TS just found you are wrong cause there is no true Activex equivalant in
.Net
Not sure who's talking about .NET. Anyway, Brian is right when he says "Anything that can
be done in VB6 can be implemented in VC8".

Willy.

Mar 26 '07 #5
Yeah, this is the big problem with this post. The OP make a mention of VC
under VS2005 but this could be C++ (or VC8) as well as C#. You can read the
original post in ten different ways and as such, comes with ten different
answers; all good (or all wrong) in one way or another.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"Willy Denoyette [MVP]" <wi*************@telenet.bewrote in message
news:en**************@TK2MSFTNGP03.phx.gbl...
"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>Absolutely untrue. Anything that can be done in VB6 can be implemented
in VC8


:-)

Well then the TS just found you are wrong cause there is no true Activex
equivalant in .Net

Not sure who's talking about .NET. Anyway, Brian is right when he says
"Anything that can be done in VB6 can be implemented in VC8".

Willy.

Mar 26 '07 #6
Well, I think I would have said C# if I had meant C#.

OK, to be clear I am talking about C++ (VC8)
Mar 26 '07 #7
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)wrote in message
news:O3**************@TK2MSFTNGP03.phx.gbl...
Yeah, this is the big problem with this post. The OP make a mention of VC under VS2005
but this could be C++ (or VC8) as well as C#. You can read the original post in ten
different ways and as such, comes with ten different answers; all good (or all wrong) in
one way or another.
Hmm.... the version of VC included with VS2005 is VC8, so if he mentions VS2005 and VC then
he's talking about VC8 and certainly not about C#.
Anyway, Brians's point is...
"Anything that can be done in VB6 can be implemented in VC8"
and noone ever talked about .NET AFAIKS.

Willy.

Mar 26 '07 #8
When you speak with a newbie (without beeing rude at all) that have never
worked before with VS2005, you cannot be sure that by VC he means VC8 or C++
and not C# at all.

And second and most important, if you take a look at the newsgroup for which
he crossposted this message, you can see a lot of dotnet.languages:

microsoft.public.dotnet.languages.vb,
microsoft.public.dotnet.languages.vb.controls,
microsoft.public.dotnet.languages.vc, microsoft.public.msdn.general,
microsoft.public.vc.mfc

and none of them are part of the microsoft.public.vc.* subtree; which would
have be the natural place to look for in the first place. For someone who
don't want to speak about C# or VB.NET, that's a lot of possible confusion
here.

However, if the OP really want to convert a VB ActiveX control to a VC8
ActiveX control, then the best place to ask this question would be:

microsoft.public.vc.atl
microsoft.public.vc.mfc

and possibly other newsgroups under the microsoft.public.vc.* subtree.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"Willy Denoyette [MVP]" <wi*************@telenet.bewrote in message
news:eB**************@TK2MSFTNGP04.phx.gbl...
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
wrote in message news:O3**************@TK2MSFTNGP03.phx.gbl...
>Yeah, this is the big problem with this post. The OP make a mention of
VC under VS2005 but this could be C++ (or VC8) as well as C#. You can
read the original post in ten different ways and as such, comes with ten
different answers; all good (or all wrong) in one way or another.

Hmm.... the version of VC included with VS2005 is VC8, so if he mentions
VS2005 and VC then he's talking about VC8 and certainly not about C#.
Anyway, Brians's point is...
"Anything that can be done in VB6 can be implemented in VC8"
and noone ever talked about .NET AFAIKS.

Willy.

Mar 26 '07 #9
Actually I did post in public.vc.mfc group :)

And I posted to a broad section hoping that some of the VB people might be
hanging around.
Mar 26 '07 #10
This is your real problem here: VB is no longer supported by MS and even if
most VB programs will run under Vista, there is no real future in VB
anymore.

So, what do you have to do to give some future to an ActiveX control written
in VB? Three solutions here:

1- Do nothing and keep it this way until it dies.

2- Convert it to an C++ ActiveX control using either pure C++ (very, hard),
MFC (hard) or ATL (hard too but probably the easiest way of all three).

3- Forget about ActiveX and convert/recode the whole thing using the .NET
Framework.

I don't know what this control is and what it's doing but if I were you,
chances are high that I would chose the third solution because if you never
worked before with C++, MFC or ATL, then the second solution is probably
much, much harder than you might think at first.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"Michael Tissington" <mt*********@newsgroup.nospamwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Actually I did post in public.vc.mfc group :)

And I posted to a broad section hoping that some of the VB people might be
hanging around.

Mar 26 '07 #11
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
When you speak with a newbie (without beeing rude at all) that have never worked before
with VS2005, you cannot be sure that by VC he means VC8 or C++ and not C# at all.
Seems like *you* were sure he was talking about C#, this while he speaks about *VC* in
VS2005 and only cross-posted to VC and VB related NG's, not (cross)posting to the csharp NG.

Willy.

Mar 26 '07 #12
No, I wasn't sure at all and in fact, I was totally perplexed. This is why
I didn't answered anything to its original post and waited for other posts
in the same thread.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"Willy Denoyette [MVP]" <wi*************@telenet.bewrote in message
news:OF**************@TK2MSFTNGP02.phx.gbl...
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
wrote in message news:%2****************@TK2MSFTNGP03.phx.gbl...
>When you speak with a newbie (without beeing rude at all) that have never
worked before with VS2005, you cannot be sure that by VC he means VC8 or
C++ and not C# at all.

Seems like *you* were sure he was talking about C#, this while he speaks
about *VC* in VS2005 and only cross-posted to VC and VB related NG's, not
(cross)posting to the csharp NG.

Willy.

Mar 26 '07 #13
I've worked a lot with both C++ and MFC but not ATL just not ActiveX in C++

I need to stick with ActiveX because the Application (a current Microsoft
Application) only supports designing forms with ActiveX.
Mar 26 '07 #14
For an ActiveX control running under another application, my first choice
would be ATL instead of MFC. The situation is a little less clear in your
case because you have already a good knowledge of MFC but even then, if you
know nothing about COM interfaces under C++, ATL might still be a better
choice than MFC.

Many years ago, when I was working with ActiveX, I don't remember anyone
from those working around me at that time who would have chosen MFC instead
of ATL for writing an ActiveX control.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"Michael Tissington" <mt*********@newsgroup.nospamwrote in message
news:Ox**************@TK2MSFTNGP03.phx.gbl...
I've worked a lot with both C++ and MFC but not ATL just not ActiveX in
C++

I need to stick with ActiveX because the Application (a current Microsoft
Application) only supports designing forms with ActiveX.


Mar 26 '07 #15
I forgot to mention that maybe you can use .NET to write your ActiveX;
however, I don't know how far you can go this way. See for example:

http://www.c-sharpcorner.com/UploadF...iveXInNet.aspx

http://builder.com.com/5100-6387_14-1045146.html?tag=sc
http://builder.com.com/5100-6387_14-1045393.html?tag=sc

http://msdn.microsoft.com/msdnmag/issues/01/08/interop/

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
wrote in message news:Om******************@TK2MSFTNGP06.phx.gbl...
For an ActiveX control running under another application, my first choice
would be ATL instead of MFC. The situation is a little less clear in your
case because you have already a good knowledge of MFC but even then, if
you know nothing about COM interfaces under C++, ATL might still be a
better choice than MFC.

Many years ago, when I was working with ActiveX, I don't remember anyone
from those working around me at that time who would have chosen MFC
instead of ATL for writing an ActiveX control.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"Michael Tissington" <mt*********@newsgroup.nospamwrote in message
news:Ox**************@TK2MSFTNGP03.phx.gbl...
>I've worked a lot with both C++ and MFC but not ATL just not ActiveX in
C++

I need to stick with ActiveX because the Application (a current Microsoft
Application) only supports designing forms with ActiveX.



Mar 26 '07 #16

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

Similar topics

18
by: DartmanX | last post by:
Is there a simple way to determine if someone using Internet Explorer has completely disabled ActiveX controls? Jason
2
by: Wael_Bakr | last post by:
I have a dll written in visual basic.net, I need to run this dll on client's machine, so if i need to wrap it as an activex control to be downloaded on client's machine how can i do this using...
2
by: jpuopolo | last post by:
All: I have developed an ActiveX control using unmanaged C++ (MFC). I have also developed a C# application to server as a test harness. Both ActiveX and test harness application are built in...
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
5
by: Yeti | last post by:
Hey everyone, I am modifying code upgraded from VB 6 to 2005. I need to run the 2005 code in the MTA mode so I set a sub main procedure in my module which runs first when the program starts: ...
15
by: Michael Tissington | last post by:
I have a Visual Basic 6.0 ActiveX Control. It seems there is no way with VS 2005 to create a similar control for containers that host ActiverX controls, is this correct ? I'm thinking of...
3
by: =?Utf-8?B?R3JlZyBN?= | last post by:
Hello, I'm running an asp.net, intranet web application using .net framework 1.1 on IIS5.1 / 6.0. Through the web application, I would like to press a button on the web page, have another window...
4
by: mmedved | last post by:
I ran into a problem using a custom ActiveX I wrote in VB 2005. It has a property that is "indexed" - that is, it has a parameter and needs to be addressed as (Index) - kinda like this: ...
2
by: deccio | last post by:
I have create an activex Control with Visual studio 2005 and framework 2.0 in c# to add drag & drop functionality to upload multi file. When I use it in a windows form it work fine. Infact if I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.