CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: VB Object

  1. #1
    Join Date
    May 2001
    Posts
    4

    VB Object

    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



  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: VB Object

    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
    [email protected]

    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
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    May 2001
    Posts
    4

    Re: VB Object

    Ok, great. Let say I want to use dll, how would I fire an event form the VB object to my app?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured