Results 1 to 3 of 3

Thread: Com

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2002
    Posts
    20

    Com

    Hi,

    I created one dll named test.dll using visual basic and registered using regsvr32.exe.
    I used this dll in asp file as followed

    set cls = server.createobject("test.class1")
    and iam calling the methods using cls.methodname.

    it is working fine. This is nothing COM

    my doubt is what are queryInterface, AddRef and Release HOw do i use these in my applications.

    If i were correct These methods will be automatically called by iis when create instance using server.createobject.
    Is it possible to work directly with Queryinterface.

    Thanks in advance.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    VB does a good job of handling the COM interop for you so why would you want to do it yourself? There is no way to make direct calls to QueryInterface in native VB.

  3. #3
    Hyperactive Member ashay's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai,India
    Posts
    278
    hi,

    as long as u use VB u dun need to worry bout QueryInterface,AddRef,Release methods.The VB compilier tkaes care of all thez things.But in case u r the curious types u can take a look at thez intersting articles about IUnknown interface and the methods exposed by it and also the underlying concepts behind COM.

    http://kandkconsulting.tripod.com/VB...g_tutorial.htm

    http://www.geocities.com/branco_mede...ng/VB00002.htm

    regds,
    ashay
    "If you should die before me, ask if you could bring a friend."
    - Stone Temple Pilots

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