|
-
Feb 3rd, 2003, 04:15 AM
#1
Thread Starter
Hyperactive Member
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
-
Feb 3rd, 2003, 06:05 AM
#2
New Member
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
-
Feb 3rd, 2003, 06:50 AM
#3
Thread Starter
Hyperactive Member
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.
-
Feb 3rd, 2003, 07:30 AM
#4
Lively Member
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.
-
Feb 7th, 2003, 10:06 AM
#5
Hyperactive Member
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.
-
Feb 19th, 2003, 06:04 PM
#6
Fanatic Member
*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)
-
Feb 20th, 2003, 04:03 AM
#7
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|