Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: Subclassing Dart ActiveX's in Visual FoxPro (VFP)
awaresoft
mgreene@bdurham.com

From: annandale, NJ USA
Posts: 16
Member Since: 09/27/02
posted September 27, 2002 3:49 PM

Dear Support,

Is there a way to subclass Dart controls in Visual Foxpro? (I'm using Visual Foxpro 7)

I can use the createobject() function to create Dart objects without subclassing. And I can add Dart objects to VFP forms and add custom code to the events that the Dart control exposes. But I can't seem to create a subclass using the standard VFP subclassing techniques.

Here's what I've tried:

loSmtp = createobject( "clsSmtp" )

define class clsSmtp as OleControl
 oleclass = "Dart.Smtp"
enddef

When I run this snippet I get the following error:

Error 1435: object class is invalid for this container.

Any suggestions?

Thanks!
Malcolm Greene
Brooks-Durham
awaresoft
mgreene@bdurham.com

From: annandale, NJ USA
Posts: 16
Member Since: 09/27/02
posted September 28, 2002 9:49 AM

If there are any VFP developers monitoring these posts and you want to share information about using Dart ActiveX products with VFP, please give me a shout.

Malcolm Greene
mgreene@bdurham.com
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted September 28, 2002 10:44 AM

Hi Malcolm,
Unfortunately, we do not have VFP users experienced enough to offer suggestions on this.
But please let us know if you receive responses to this inquiry, so that we can make this info available to other VFP developers.
Thanks,
-ken
awaresoft
mgreene@bdurham.com

From: annandale, NJ USA
Posts: 16
Member Since: 09/27/02
posted September 28, 2002 12:55 PM

Ken: Thanks for your follow-up - on a weekend no less! Apparently it is not possible to subclass your controls directly in VFP. That's disappointing because that is one of VFP's great strengths.

The GOOD NEWS is that I have managed to accomplish pseudo subclassing by putting your controls on a hidden form and then placing functions in the control's events that call out to generic hook functions that can be overridden to provide full subclassing functionality. There's a bunch of code to do this - but the result is lots of flexibility. I would be happy to share my code with any interested VFP users.

I am still in the process of evaluating your Mail Tools and so far have been very impressed. Thanks again for your follow-up!

Malcolm Greene
mgreene@bdurham.com
Alex Gladshtein



From: Rome, NY USA
Posts: 131
Member Since: 12/27/00
posted September 28, 2002 1:43 PM

Malcolm,

We would be more than happy to share any code you have and place it in our knowledge base. I have always believed that our user community is one of our great strengths, especially when moving beyond the VB, ASP crowd.

Thanks,

Alex
awaresoft
mgreene@bdurham.com

From: annandale, NJ USA
Posts: 16
Member Since: 09/27/02
posted September 28, 2002 4:52 PM

Alex: I will be glad to share my framework once I've worked on the kinks. I think it will save future VFP users a lot of time. Perhaps we can generate some friendly competition among your other customers - who's posting the best examples?

I appreciate your team's support - especially on a Saturday!
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted September 28, 2002 6:11 PM

If you type 'foxpro vfp' in the search box, you'll get a lot of topics concerning foxpro. Bill Oppenheimer (Username wwopp) is our biggest FoxPro user.

Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX