Click to See Complete Forum and Search --> : VB Object


Foo
May 17th, 2001, 12:46 PM
Hi All,
I’m a new VB person, and kind of confused. I’m working on this VC app that it needs a VB object. This object should have a method called ShowDlg(). When my app calls this method it’ll shows a non-modal dialogbox. When a user clicks on a button on this dialogbox it should fire an event back to the app.

Now, can this object being develop in VB?
If yes,
How would it fire an event?
Should I use an OCX, or DLL? I think an OCX is a GUI control, correct me if I’m wrong.
How should I do it?

Thanks

Cakkie
May 18th, 2001, 04:01 AM
First of all, this can be done in VB, second of all, you are absolutely correct, a OCX is a control, however, a dll can also contain controls.
The thing you need to know is how you wnat to address it, if you want it to be a (probably) invisible control, go for the ocx, if you want it to be a class, then go for the dll.

Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook

Foo
May 18th, 2001, 01:10 PM
Ok, great. Let say I want to use dll, how would I fire an event form the VB object to my app?