Results 1 to 10 of 10

Thread: Need help regarding interface implementation in VB

  1. #1
    Variable Bitrate SilentAdmirer's Avatar
    Join Date
    Jul 2003
    Location
    Linz Am Rhein , DE
    Posts
    276

    Need help regarding interface implementation in VB

    Hi,
    Is it possible to implement an interface in VB6 which is not directly derived from IDispatch ?
    ie
    Can VB6 implement an interface IDerived derived from IBase which in turn is derived from IDispatch ? If yes can you tell me how.


    TIA
    Satish
    VOICES Status : Rework in Progress [||--------](20%)
    Preview Version at http://voices.techworldonline.com

  2. #2
    Maximum Bitrate deadweasel's Avatar
    Join Date
    Nov 2003
    Location
    Detroit MI
    Posts
    886
    Ok. Wait... HUH?!?

    What the heck is IDispatch, etc?

    Maybe I'm just showing some n00bness, but I've never heard of that...
    The ALEXIS Project
    MP3---VIDEO---GPS---REARVIEW---OBD---SKINNING
    Color Coding :
    DONE / MOSTLY DONE / BASE FEATURES / WORKING CONCEPT / NO CODE COMPLETED

  3. #3
    Variable Bitrate SilentAdmirer's Avatar
    Join Date
    Jul 2003
    Location
    Linz Am Rhein , DE
    Posts
    276
    Quote Originally Posted by deadweasel
    Ok. Wait... HUH?!?

    What the heck is IDispatch, etc?

    Maybe I'm just showing some n00bness, but I've never heard of that...
    IDispatch: Also know as dispinterface or dual interface is required to be implemented by C++ COM objects so that the non virtual table aware lanugage like VBscript can access COM component.
    VOICES Status : Rework in Progress [||--------](20%)
    Preview Version at http://voices.techworldonline.com

  4. #4
    Maximum Bitrate deadweasel's Avatar
    Join Date
    Nov 2003
    Location
    Detroit MI
    Posts
    886
    Quote Originally Posted by SilentAdmirer
    IDispatch: Also know as dispinterface or dual interface is required to be implemented by C++ COM objects so that the non virtual table aware lanugage like VBscript can access COM component.
    Ok. Well damn, that puts me out of the range of being able to help. Crap. You just made my eyes glaze over, and that's not always easy!
    The ALEXIS Project
    MP3---VIDEO---GPS---REARVIEW---OBD---SKINNING
    Color Coding :
    DONE / MOSTLY DONE / BASE FEATURES / WORKING CONCEPT / NO CODE COMPLETED

  5. #5
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by deadweasel
    You just made my eyes glaze over, and that's not always easy!
    Look up Fast Fourier Transform
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  6. #6
    Maximum Bitrate deadweasel's Avatar
    Join Date
    Nov 2003
    Location
    Detroit MI
    Posts
    886
    Quote Originally Posted by frodobaggins
    Look up Fast Fourier Transform
    Oh. My. GOD!!!

    Geez, thanks! I was about to attribute the brain damage to the beer, but nope. Now I feel stupid. Crap.
    The ALEXIS Project
    MP3---VIDEO---GPS---REARVIEW---OBD---SKINNING
    Color Coding :
    DONE / MOSTLY DONE / BASE FEATURES / WORKING CONCEPT / NO CODE COMPLETED

  7. #7
    Variable Bitrate Ashlawn Kemling's Avatar
    Join Date
    Feb 2001
    Location
    Williamsport, PA
    Posts
    353
    So... um... I say you just layout something or use DirectX. What the hell?

    Tried looking some of it up... looks like more Microsoft crap... uh... DAMN.

    Me brain no workies now.

  8. #8
    Variable Bitrate NoPistonPC's Avatar
    Join Date
    Apr 2004
    Location
    Boston
    Posts
    360
    Quote Originally Posted by SilentAdmirer
    Hi,
    Is it possible to implement an interface in VB6 which is not directly derived from IDispatch ?
    ie
    Can VB6 implement an interface IDerived derived from IBase which in turn is derived from IDispatch ? If yes can you tell me how.


    TIA
    Satish
    Satish, when I used to work with Visual Basic, I remember that it only allowed for one level of interface inheritance (i.e. VB-compatible interfaces must directly derive from IUnknown or IDispatch). This might have changed in VB6, but I highly doubt it.

    Now is a good time to switch to C++.
    1994 RX-7, EPIA P4-ITX w/ Celeron 2.4 Ghz, Arise PSU, Xenarc 700TSV (new model)

  9. #9
    Variable Bitrate SilentAdmirer's Avatar
    Join Date
    Jul 2003
    Location
    Linz Am Rhein , DE
    Posts
    276
    The only second app I have ever made in VB was the GPS test app as a lot of user in the forum are VB programmers.

    Been a C++ programmer ever since I started programming No plans to switch to any other language in the near feature...

    Just wanted to know as I was designing a Plugin based system for VOICES and supporting VB is very necessary . I had a special requirement in which I would have mutliple outgoing or source interface which would be derived from a single Base interface which in turn would be derived from IDispatch. This would allow much easy use, as I would be holding the list of base interface and querying for the Derived interface only for special reason rather than holding a list of IDispatch and quering it every time.

    Now the IEnumXXXX Interface makes sense, I used to always thing why MS didnot have IEnumerator as the base class for the IEnumXXXX interface when all the IEnumXXXX had the same method calls.
    VOICES Status : Rework in Progress [||--------](20%)
    Preview Version at http://voices.techworldonline.com

  10. #10
    Jesus Freak antimatter's Avatar
    Join Date
    Jan 2004
    Location
    California
    Posts
    4,545
    Glad to hear you still working on VOICES
    -Jesus- King of Kings Lord of Lords

Similar Threads

  1. Pioneer Aux interface.... wiring up ... how?
    By Kenny in forum General Hardware Discussion
    Replies: 6
    Last Post: 06-27-2009, 05:56 PM
  2. ultra tiny interface
    By skullman in forum Input Devices
    Replies: 12
    Last Post: 03-22-2004, 02:53 PM
  3. VB interface from europe
    By PTCruiser in forum Software & Software Development
    Replies: 0
    Last Post: 11-27-2002, 10:15 AM
  4. A few questions about an interface
    By naevity in forum Software & Software Development
    Replies: 1
    Last Post: 10-03-2002, 09:31 PM
  5. Logitech Quickcam VB interface?
    By Bj in forum Software & Software Development
    Replies: 2
    Last Post: 03-25-2001, 08:12 PM

Bookmarks

Posting Permissions

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