Results 1 to 7 of 7

Thread: Need Help

  1. #1

    Thread Starter
    Hyperactive Member buddu's Avatar
    Join Date
    Jul 2001
    Location
    India
    Posts
    446

    Need Help

    hi to all
    I have created Dll file in VB 6. Now i need to make it as COM objct So for that what i have to do and How to Use that COM object in VBA programming / VB Project ?

    help me
    prasad

  2. #2
    New Member
    Join Date
    Jan 2003
    Location
    Chennai - India
    Posts
    7
    Hi,

    Well, your .dll file is the COM. No probs, open run window and put the commad as 'regsvr32 <nameofCOM>', means your COM is registered in that system.

    just open your vb6.0 project and goto references under project menu. u can see your COM is present in the list available files. Mark that check box and give ok.

    After that u can use into your coding like,

    dim obj as new <yourCOMname>


    With Regards,

    bala

  3. #3

    Thread Starter
    Hyperactive Member buddu's Avatar
    Join Date
    Jul 2001
    Location
    India
    Posts
    446
    hi bala
    Thanks for information But creating dll and registering dll in server is not a COM. It has some rules and also with out using MTS How we should call it as com Object?

    can you explain clearly?


    for your kind info i am also from chenai.
    prasad

  4. #4
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    when u create ActiveX DLL project in VB, and compiling it to dll file it become COM object.
    VB take care to wrap your piece of code with all required interfaces to become COM object (IUnknown, Idispatch etc.), and also to register it properly.

  5. #5
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    india
    Posts
    418
    hi,

    there are no rules in making or using dlls.when u create dlls in windows 98 environment register using regsvr32 "dllname" and include in project and use it.

    if u r using win2000 u can create component using component services and place .tlb and .vbr on client system and register them using clireg32 "filename" and run u r application.

  6. #6
    Fanatic Member BillBoeBaggins's Avatar
    Join Date
    Jan 2003
    Location
    in your database, dropping your tables.
    Posts
    628
    *Cough*
    Ahemm......

    Note:
    COM=ActiveX DLL,ActiveX EXE
    ActiveX DLL, ActiveX EXE = COM

    COM is just another name for DLL's and ActiveX servers (EXE's)

  7. #7

    Thread Starter
    Hyperactive Member buddu's Avatar
    Join Date
    Jul 2001
    Location
    India
    Posts
    446
    Thanks
    prasad

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