Wrox Programmer Forums
|
VB Components Issues specific to components in VB.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 23rd, 2005, 07:26 AM
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB6 how to use a COM+

Hello,

I have created a component (dll) in VB6.
I registered the component as COM+ on a server.
How can I use it from a client ?
I tryied the sintax:
set objX = createobject("aaa.classxxx","serverip")
but it says:
"class it not registered on the local machine"

Can you please help me explaining how to use rempte components ?

Thanks a lot

Pevl

 
Old November 23rd, 2005, 07:46 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Did you put the dll in a COM+ package on the server? If yes, then you just need to export the package from the server as an application proxy (this creates a .msi file), then run that proxy .msi on the client.
 
Old November 26th, 2005, 06:06 AM
Registered User
 
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a lot.
I do the .msi and I run it on the client. It works.
I thought the the client doens't need to register anything.

I have just a few questions if you have time.

1. The msi it contains the whole class ?
2. It is the same if I register the class on ther client (with regsvr32) or it is different ?
3. Do I need to be the Administrator on the client machine ?
4. What are exactly the permission I have to give on the server related to the com+ and to the folder where the dll is saved ?
5. Do I have to give special permission about com+ on the client machine ?

Thanks a lot !

Pevl


Quote:
quote:Originally posted by pgtips
 Did you put the dll in a COM+ package on the server? If yes, then you just need to export the package from the server as an application proxy (this creates a .msi file), then run that proxy .msi on the client.
 
Old November 26th, 2005, 09:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

1. yes
2. no its different because it puts it in a COM+ package on the client, but its marked as activated on the server so when you do CreateObject you don't need to add the "serverip" argument
3. yes
4. depends how the package is set up on the server, there are many options.
5. no





Similar Threads
Thread Thread Starter Forum Replies Last Post
SUB NAME IN VB6 Nadalik VB How-To 2 June 21st, 2006 03:30 AM
COM Implementation using VB6 haianoop Pro VB 6 0 December 28th, 2005 04:01 PM
VB6 How to minhtri VB How-To 2 September 30th, 2004 06:08 AM
Where to get VB6 HaXXeD Beginning VB 6 2 December 5th, 2003 04:21 PM
VB6 ?? wickman Wrox Book Feedback 1 June 5th, 2003 08:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.