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
Printable View
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
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
:)
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.
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.
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.
*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)
Thanks