Main Menu

Using An ActiveX OCX Control

Started by TinyFrogWare, December 22, 2008, 06:34:49 AM

Previous topic - Next topic

TinyFrogWare

I wasn't sure where to post this question, but if need be, please move it to the right board. :)

I've been experimenting with using ActiveX DLL's and love the flexibility that PB offers. I found a free ActiveX OCX designed for VB that displays and implements a trialware system. It let's you setup a dialog that is displayed when your program starts and can be setup to run for x amount of days or x amount of times. I want to use this in my own shareware programs. I've managed to get the dialog to display using the ActiveX routines for PB, but it doesn't quite work right. I've attached a zip containing my test project and here is the link where you can download the full ActiveX control:

http://www.tenmilesoftware.com/Trialware%20Dialog/trialwaredialog.html

The main problem is accessing the events when the user clicks on either the buy, continue or cancel button. Could someone take a look at it and my sample code and tell me if it's possible to get it fully working or should I look into something else. I like this simple method for creating trials of my games, since they can be fully functional, yet set to expire after so many runs or days.

Also, I just want to say I am continually impressed with PB and it's power, yet ease of use. I've used many compilers through the years, including big name ones and even worked for a few of the big name ones, but PB is without a doubt the one I've had the most fun working with and am looking forward to producing all my future games/projects exclusively with it.
Thanks,

  Tony.

kevin


    No idea how to catch such events, not even sure how/where they're triggered. 

TinyFrogWare

I've looked and researched myself, but no luck so far. I'm sure it can be done, I just don't know how....at least not yet. :) In any case, I can implement something similar on my own, I just wanted to see if I could use this before I re-invented the wheel.