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

Thread: Query

  1. #1
    Join Date
    Feb 2000
    Location
    Pune, India
    Posts
    34

    Query

    What is the difference between ActiveX Dlls and other Dlls?

    Initiative is to success what a lighted match is to a candle...

  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: Query

    The only difference i know of is the name. When you create an ActiveX dll in VB it compiles into a DLL, used the same, called the same as other dlls. Oh, VB doesnt compile multi-threaded dlls as well as C++ dlls, i think. I've heard of problems with this, but i dont have any first hand experience with this. I think there is some internal structure differences, but i dont think microsoft wants people to know this.

    Those are my thoughts on the subject,
    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  3. #3
    Join Date
    Feb 2000
    Posts
    137

    Re: Query

    An ActiveX dll is an actual dual interface COM server a regular dll is simply a library of functions that can be linked to your program at run-time then called from within your program.


  4. #4
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: Query

    Can you elaborate on what you mean by "dual interface"? Do you have references I could look up for some more information?

    Thanks,
    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  5. #5
    Join Date
    Feb 2000
    Posts
    137

    Re: Query

    If you have Visual Studio - Run the MSDN Library for Visual Studio - Select Entire Collection - click the search tab - Type COM in the words to search for - click on Rank (This will sort the list by rank - go to number 78 in the list COM Overview - You may need to know some C++ to really get the full gist of it all. Most COM objects are written in C++ using either ATL or MFC (these are two other topics worth following. They, however can be written (a lot easier IMHO) in Visual Basic (ActiveX dll's and ActiveX exe's). Just keep in mind when reading the material that an ActiveX dll is what they are refering to as an "in-process" server and an ActiveX exe is what they are refering to as a "out-of-process" server.

    Hope this helps.

    Spectre



  6. #6
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: Query

    Thanks! I knew about the IUnknown and IDispatch interfaces, but wasn't clear on their differences and when they were used.

    Thanks again,
    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

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