ActiveX OCX's

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

ActiveX OCX's

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:55 am

by Philip >> Tue, 4 Jul 2000 9:30:42 GMT

This post may require someone with a little knowledge of Visual Basic programming.
I have seen how you can import ActiveX OCX Controls into JADE and reconfigure them and run them etc. I was told that I would create a control in VB of VC++ (Visual C++) and then import them into JADE, I did this and it worked.
The problem is with another OCX which I want to put in -
1) How will JADE handle commands like - Genie.Show, Genie.Speak "Hi", Genie.Hide, which are used to control the Agent (see below).
2) How will JADE Handle this -

Agent1.Characters.Load "Genie", DATAPATH
Set Genie = Agent1.Characters("Genie")
Genie.LanguageID = &H409
This tells VB to tell the Agent what it needs to know to work.

3) I want to import an Agent peice of code, which uses this -

Dim Genie As IAgentCtlCharacterEx
Const DATAPATH = "genie.acs"

In the General Declarations to define the path to the Agent file (genie.acs), IAgentCtlCharacterEx is what tells VB that it is an Agent file and that is built in to the Registry (think, well somewhere).

When I try to put the code into an ActiveX control I get User-Defined control not defined. I have tried putting this in multiple places, but to now success.

PS. I have put in all of this, because I am also posting this to VB newsgroups (for the VB side of things).

Thanks
Philip Q

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: ActiveX OCX's

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:55 am

by JADE Kid - Ray Hidayat >> Tue, 4 Jul 2000 21:10:22 GMT

I can't believe you Phillip Quinn! Remember that JADE is completely object oriented??? Well, create methods! Or maybe they will already come installed with the ActiveX! But you cam do exactly what you typed! Genie.show, Genie.speak "Hi" it will work as long as the ActiveX control knows how to do that.
Anyway, remember those things called external methods??? Well, if you call them, they will run, and so you can import any function you want. If you can make a dll, but why do that when you can have a cool control that does that. Don't the functions come along with the import of the file?

--
Ray Hidayat
JADE Kid - 2000
www.jadekids.com


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 34 guests