|
-
Apr 24th, 2001, 07:45 PM
#1
Thread Starter
New Member
COM+ Questions
Hello, first let me tell you what I'm trying to do.
I need to setup a client/server system, the client is basically just a nice GUI. The server does all the database interaction and calculations I need it to do. Because of security I can't do these on the client.
Basically from the looking around I've done it looks like COM+ is the way to go about connecting these two. I set up some test stuff in the Component Services program and started it. That wasn't a problem.
My problem is, how do I code this in VB to connect to the remote server and use the class's I've created?
Yes I'm new to this so any info/sites (example would be best :-)) you can provide would be appreciated, though most of the sites I've found have plenty of info about COM+ but no examples of how to use it. :P
Thanks!
-
Apr 25th, 2001, 09:40 AM
#2
Thread Starter
New Member
Alex, thanks but I've read that and I already know how to write classes. :-)
Andre, not sure if I understand 100% here. This exe file that goes with the client, does that allow me to just create the object like usual?
Can you give me a little code that would go in the client to create an instance of my class?
Normally I would just do something like this:
Dim objSomething As CClass
Set objSomething = New CClass
Does the same apply here?
-
Apr 25th, 2001, 10:08 AM
#3
Addicted Member
No problem. You will not need a reference since you cannot use early binding. This leaves you with Late binding.
You should instantiate your objects as follows:
Dim objSomething as Object
Set objSomething=CreateObject("YourDll.YourClass")
And thereafter just as usual.
André
-
Apr 25th, 2001, 10:48 AM
#4
André, linked to this one (after reading this I tried some experimenting) 
Could you take a look at this please :
http://forums.vb-world.net/editpost....&postid=326195
-
Apr 25th, 2001, 12:54 PM
#5
Thread Starter
New Member
Alright, thanks!
So when I include the file that is made in component services I just have to use late binding and it should work from any client? The file made already knows where the server is and all that?
If so, sounds good to me. :-)
-
Apr 25th, 2001, 08:07 PM
#6
Thread Starter
New Member
Another quicky.
COM+ makes a windows installer file ( .MSI I think) not an exe. When you say this needs to be run on each client, do you mean they have to actually run it or does it happen automatically?
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
|