shahsaurabhu
asked on
DCOM implementation in Visual Basic 6.0
How can i implement DCOM using VB 6.0 ?
i.e. I want to register .dll component on server and
access that componenet from different client machines
connected in LAN. So how can i achieve this? Please
tell any method/code for implementing this.
i.e. I want to register .dll component on server and
access that componenet from different client machines
connected in LAN. So how can i achieve this? Please
tell any method/code for implementing this.
Simple DCOM App - How to:
http://support.microsoft.com/support/kb/articles/q266/7/17.asp
DCOM App with Events - How to:
http://support.microsoft.com/support/kb/articles/q267/8/36.asp
Chandu
You need to create an ActiveX EXE project. When you use the Package and Deployment Wizard on it, it will prompt you, asking whether you want to include remote automation support files. A DCOM object must be in an EXE, not a DLL.
On the client, you'll need to use the second parameter of the CreateObject(obj,server) call.
CJ suggested MTS. I just want to clarify. You can use MTS or COM+ if you have it installed on the server, and it will be more efficient than DCOM. If you do, however, your project needs to be ActiveX DLL. You can not install an out of process ActiveX (ActiveX EXE) under MTS.
On the client, you'll need to use the second parameter of the CreateObject(obj,server) call.
CJ suggested MTS. I just want to clarify. You can use MTS or COM+ if you have it installed on the server, and it will be more efficient than DCOM. If you do, however, your project needs to be ActiveX DLL. You can not install an out of process ActiveX (ActiveX EXE) under MTS.
Also see my similar question at https://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=visualbasic&qid=20135519
ASKER
To CJ
as mentioned by u, i have run exe files on client machines.
but how to instantiate the object of the component registered on MTS server.
I have used CreateObject(object,server name) method.
here what will be the value of these two parameter.
will this method work?
as mentioned by u, i have run exe files on client machines.
but how to instantiate the object of the component registered on MTS server.
I have used CreateObject(object,server
here what will be the value of these two parameter.
will this method work?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
comment removed by Moderator
What is your purpose in posting this as the proposed answer, numulap? I will reject your proposed answer, and delete the comment. Please read the Member Agreement here that you agreed to as well as the information here on Answers versus Comments:
https://www.experts-exchange.com/jsp/infoMemberAgreement.jsp
https://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp
Moondancer
Community Support Moderator @ Experts Exchange
https://www.experts-exchange.com/jsp/infoMemberAgreement.jsp
https://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp
Moondancer
Community Support Moderator @ Experts Exchange
Deleting proposed answer comment "jkljlk"
Moondancer
Community Support Moderator @ Experts Exchange
Moondancer
Community Support Moderator @ Experts Exchange
Apologize to every body, I thought the question was locked and it would not let me propose another answer.
You shouldn't propose answers anyway. Post comments unless you think your oppinion is way more valuable than all those comments already posted before you.
Why did you do a COMPLETE removale of that comment, and not only rejecting it?????? Looks a bit weird in this question...
Regards,
CJ
Regards,
CJ
The comment was gibberish. "jhjhjh" or something like that.
aight :-)
Only function available for that line item was what I used, reject and edit; delete not an option to maintain activity trail for locked/rejected answers.
Moondancer
Community Support Moderator @ Experts Exchange
Moondancer
Community Support Moderator @ Experts Exchange
gbaren is correct, that was what I overwrote.
Moondancer
Community Support Moderator @ Experts Exchange
Moondancer
Community Support Moderator @ Experts Exchange
hi shahsaurabhu,
hi everybody else,
i dont want to intrude but...
shahsaurabhu, please follow up your open q's.
U have asked 9 questions, and have not graded 1.
cheers
Ricky
hi everybody else,
i dont want to intrude but...
shahsaurabhu, please follow up your open q's.
U have asked 9 questions, and have not graded 1.
cheers
Ricky
I have finalized this today. If there are questions about this decision, please comment here.
Moondancer
Community Support Moderator @ Experts Exchange
Moondancer
Community Support Moderator @ Experts Exchange
regards,
CJ