|
From: Al Reid on 16 Jul 2008 11:23 Perhaps someone knows the answer to these. 1) If I create an ActiveX control using VB6, can I use it in a VC6 project? 2) If the answer to 1 is 'Yes', are there any special precautions I need to be aware of? I have a VC6 program that I wrote back in 2003 that is an embeddable OLE program that I need to rewrite and there are also some standalone VB apps that would need to share the same controls. I'm hoping I don't have to develop the controls in VC6 because I've never had to do that before and the time constraints on the project are fairly tight. -- Al Reid My photo galleries can be found at: http://www.pentaxphotogallery.com/albertreid http://photoweb.reid-home.com
From: Jeff Johnson on 16 Jul 2008 12:55 "Al Reid" <areidjr(a)reidDASHhome.com> wrote in message news:e3UELe15IHA.4988(a)TK2MSFTNGP04.phx.gbl... > Perhaps someone knows the answer to these. > > 1) If I create an ActiveX control using VB6, can I use it in a VC6 > project? Yes. ActiveX is ActiveX; it is not tied to VB. > 2) If the answer to 1 is 'Yes', are there any special precautions I need > to be aware of? Dunno, but I strongly suspect the answer is No.
From: Al Reid on 16 Jul 2008 13:53 "Jeff Johnson" <i.get(a)enough.spam> wrote in message news:%23%23eWRT25IHA.4560(a)TK2MSFTNGP04.phx.gbl... > "Al Reid" <areidjr(a)reidDASHhome.com> wrote in message > news:e3UELe15IHA.4988(a)TK2MSFTNGP04.phx.gbl... > > > Perhaps someone knows the answer to these. > > > > 1) If I create an ActiveX control using VB6, can I use it in a VC6 > > project? > > Yes. ActiveX is ActiveX; it is not tied to VB. > I haven't been able to find many references on using an ActiveX control developed in VB in VC6. One article I read said something to the effect that "an AxtiveX control can be used in any application that supports ActiveX, although there are implementation differences." No additional explanation. > > 2) If the answer to 1 is 'Yes', are there any special precautions I need > > to be aware of? > > Dunno, but I strongly suspect the answer is No. > I guess I was hoping somebody might have done this before and could offer some insight. For example, do you have to provide property pages in order to configure the control within VC6? Since I don't seem to be finding a lot of info via Google, I thought someone here might have some first hand knowledge and experience. Thanks, Jeff. -- Al Reid
From: MikeD on 16 Jul 2008 14:28 "Al Reid" <areidjr(a)reidDASHhome.com> wrote in message news:u6Plsx25IHA.616(a)TK2MSFTNGP02.phx.gbl... > > I haven't been able to find many references on using an ActiveX control developed in VB in VC6. One article I read said something > to the effect that "an AxtiveX control can be used in any application that supports ActiveX, although there are implementation > differences." No additional explanation. > I would guess it's not a very common thing to do. For one, I would suspect that very few C++ developers are going to want to make the VB6 runtime (and any other dependencies the ActiveX component might have) a requirement for their C++ program. But other than the runtime requirement, as Jeff said, it's irrelevant what language was used to develop the ActiveX control. You'd use it in VC++6 just the same as if the ActiveX control were written using VC++6 instead of VB6. So, maybe your search is too limited if you're including in your search that it's a VB6-authored control. -- Mike Microsoft Visual Basic MVP
From: Al Reid on 16 Jul 2008 14:55 "MikeD" <nobody(a)nowhere.edu> wrote in message news:%23WuCIH35IHA.1196(a)TK2MSFTNGP05.phx.gbl... > > "Al Reid" <areidjr(a)reidDASHhome.com> wrote in message news:u6Plsx25IHA.616(a)TK2MSFTNGP02.phx.gbl... > > > > > I haven't been able to find many references on using an ActiveX control developed in VB in VC6. One article I read said something > > to the effect that "an AxtiveX control can be used in any application that supports ActiveX, although there are implementation > > differences." No additional explanation. > > > > I would guess it's not a very common thing to do. For one, I would suspect that very few C++ developers are going to want to make > the VB6 runtime (and any other dependencies the ActiveX component might have) a requirement for their C++ program. > > But other than the runtime requirement, as Jeff said, it's irrelevant what language was used to develop the ActiveX control. You'd > use it in VC++6 just the same as if the ActiveX control were written using VC++6 instead of VB6. So, maybe your search is too > limited if you're including in your search that it's a VB6-authored control. > > -- > Mike > Microsoft Visual Basic MVP > Thanks, Mike. Maybe I'm worrying about something without cause. I just wanted to make sure that I don't get into a situation late in the project where I say "Jee, I wish I had know that before I started down this path." -- Al Reid
|
Next
|
Last
Pages: 1 2 Prev: Return Code Next: "Runtime Error:3273 Method not Applicable for This object" |