DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Please explain...COM / DLL

  1. #1
    Kent Guest

    Please explain...COM / DLL


    Hello,

    Can someone please tell me the exact differences between a DLL and a COM?

    If I wrote a DLL using, say, C++, is it possible to link to this DLL in a
    web page? If so, how?

    Thanks a lot,

    Kent

  2. #2
    John Timney (MVP) Guest

    Re: Please explain...COM / DLL

    In really simplistic terms -

    Com is a method of wrapping objects to make them com compliant, thus a C++
    dll could be access from ASP, VB, C++, JAVA etc. DLL's written in a com
    compliant language (like C++) can be accessed from any other com compliant
    language. You normally dont need to d the actual wrapping - the dev tools
    do that for you, so a VB DLL for instance is already a COM DLL.

    Regards

    John Timney (MVP)


    Kent <kentcb@hotmail.com> wrote in message news:394edf1e$1@news.devx.com...
    >
    > Hello,
    >
    > Can someone please tell me the exact differences between a DLL and a COM?
    >
    > If I wrote a DLL using, say, C++, is it possible to link to this DLL in a
    > web page? If so, how?
    >
    > Thanks a lot,
    >
    > Kent




  3. #3
    Don Guest

    Re: Please explain...COM / DLL


    To anwser the question about how to use it in a web page. You instatiate
    it just like any other dll. SET variable = Server.CreateObject("YourDllName.ClassName")

    Then to access a property, function, or method just:
    variable.YourFunction()

    Easy as making pie

    D

    "John Timney (MVP)" <timneyj@btinternet.com> wrote:
    >In really simplistic terms -
    >
    >Com is a method of wrapping objects to make them com compliant, thus a C++
    >dll could be access from ASP, VB, C++, JAVA etc. DLL's written in a com
    >compliant language (like C++) can be accessed from any other com compliant
    >language. You normally dont need to d the actual wrapping - the dev tools
    >do that for you, so a VB DLL for instance is already a COM DLL.
    >
    >Regards
    >
    >John Timney (MVP)
    >
    >
    >Kent <kentcb@hotmail.com> wrote in message news:394edf1e$1@news.devx.com...
    >>
    >> Hello,
    >>
    >> Can someone please tell me the exact differences between a DLL and a COM?
    >>
    >> If I wrote a DLL using, say, C++, is it possible to link to this DLL in

    a
    >> web page? If so, how?
    >>
    >> Thanks a lot,
    >>
    >> Kent

    >
    >



  4. #4
    John Timney (MVP) Guest

    Re: Please explain...COM / DLL

    missed that bit - thanks Don ... nice Pie

    Regards

    John Timney (MVP)

    Don <don.wolthuis@codejunkies.net> wrote in message
    news:395a205f$1@news.devx.com...
    >
    > To anwser the question about how to use it in a web page. You instatiate
    > it just like any other dll. SET variable =

    Server.CreateObject("YourDllName.ClassName")
    >
    > Then to access a property, function, or method just:
    > variable.YourFunction()
    >
    > Easy as making pie
    >
    > D
    >
    > "John Timney (MVP)" <timneyj@btinternet.com> wrote:
    > >In really simplistic terms -
    > >
    > >Com is a method of wrapping objects to make them com compliant, thus a

    C++
    > >dll could be access from ASP, VB, C++, JAVA etc. DLL's written in a com
    > >compliant language (like C++) can be accessed from any other com

    compliant
    > >language. You normally dont need to d the actual wrapping - the dev

    tools
    > >do that for you, so a VB DLL for instance is already a COM DLL.
    > >
    > >Regards
    > >
    > >John Timney (MVP)
    > >
    > >
    > >Kent <kentcb@hotmail.com> wrote in message

    news:394edf1e$1@news.devx.com...
    > >>
    > >> Hello,
    > >>
    > >> Can someone please tell me the exact differences between a DLL and a

    COM?
    > >>
    > >> If I wrote a DLL using, say, C++, is it possible to link to this DLL in

    > a
    > >> web page? If so, how?
    > >>
    > >> Thanks a lot,
    > >>
    > >> Kent

    > >
    > >

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center