Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX question

Status
Not open for further replies.

elibb

Programmer
Oct 22, 2001
335
MX
hi... i have a question about ActiveX in VB6.0, id like to know if there is way to do a dynamic ActiveX lookup from my application. for example:

im making an application with some games, lets say chess, checkers and backgammon, and im doing each game as a separated ActiveX control, so people can download only the games they want, and play that game, without having to download all the controls.

but im lost, because i have no idea how to do it.. can someone help me?

i hope i made myself clear..
thank You very much


Eli
 
I would think that you would need a main app to act like a manager of the various games. Then the games can be separate activeX dll's. You can use the registry or a file to keep track of which games are installed (the installation of each game will need to write the necessary information). When the app knows which games are available it can make the calling and running of these games available to the user.

Food for thought anyway.

Thanks and Good Luck!

zemp
 
but i wont have any problems with the active x that are not installed? wont the Main app call for them?

thank you very much

Eli
 
The installed games should 'register' thenselves with the main app be creating a registry entry or writing to a file. The main app check to see which games are 'registered' and shows only those menu items (or other methos of selecting the game, Such as an image contol with am icon, etc.). Thus the user can only call the games (dll's) that exist or are installed on the computer.

Thanks and Good Luck!

zemp
 
and how can i load the dlls at running time? can You put some code??
because if i load them from design time, ill get an error on the dlls that are missing...

thank you very much

Eli
 
You need to be able to reference the dll's in project properties. I would also add them to the IDE as a new project and create a project group. Then you can reference the actual project.

See thread708-617327 for some sample code on how to call a dll from VB.

Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top