jasontektips
Programmer
Hi,
I am new to this VB and COM+ environment, but have to take over a project that uses something like this. So, firstly I would like to have a better understanding of the "story" about VB and COM+. I've a simple sample scenario here, and appreciate it if anyone could help to rectify if my understanding is wrong, or suggest better way of handling it ...
My objective is to create a simple client-server application, where the "brains" (I suppose its the DLLs)will be stored in a Server, and the "application skeleton" (I suppose its the standard EXE)in the Client.
I proceed to create the following VB projects (VB6.0) in a development PC:
1. JASON.vbp (type:ActiveX DLL)
-addition.cls (accepts 2 nums, compute and return result)
-subtraction.cls (accepts 2 nums, compute and return result)
2. CHRIS.vbp (type:ActiveX DLL)
-multiplication.cls(accepts 2 nums, compute and return result)
-division.cls(accepts 2 nums, compute and return result)
3. MathsApp (type:standard EXE, ref to JASON.dll and CHRIS.dll)
-2 text fields namely txtNum1 and txtNum2 (for input)
-4 buttons namely btnADD, btnSUBTRACT, btnMULTIPLY and btnDIVIDE (will call the functions in JASON.dll and CHRIS.dll respectively)
-1 text field name txtResult (for result)
The application works fine in my development PC, which has the "brains" and the "skeleton" together. Now, I would like to deploy this application to a client-server environment.
For Server, I guess I just need to copy the JASON.dll and CHRIS.dll and then create COM+ application in a new PC.
For Client, I guess I have to use the Visual Studio Tools to create the necessary setup files and folders(excluding the 2 dlls).
Server:
I have 1 new PC installed with Win2k Pro with SP3, and I would like to create 2 COM+ applications(the "brains"
(I copied JASON.dll and CHRIS.dll from the development PC)
-JASONCOM (with components JASON.addition and JASON.subtraction)
-CHRISCOM (with components CHRIS.multiplication and CHRIS.division
Then, I proceed to export the 2 COM+ applications as Application Proxy, and I get 2 sets of .MSI and .CAB files
Client:
I have another new PC installed with Win2k Pro with SP3, and I would like to install the "skeleton". I copy the setup files from the development PC and run setup.exe.
I then copy the .MSI and .CAB files from the Server, and run the 2 .MSI files. I can then see 2 COM+ applications created, pointing to my Server (seeing it from the Activation tab of properties)
MY QUESTION IS .... IS THIS THE CORRECT UNDERSTANDING AND WAY OF DEPLOYING A CLIENT_SERVER APPLICATION?
Appreciate deeply if someone can guide and help me in this. Many many thanks in advance.
Jason
I am new to this VB and COM+ environment, but have to take over a project that uses something like this. So, firstly I would like to have a better understanding of the "story" about VB and COM+. I've a simple sample scenario here, and appreciate it if anyone could help to rectify if my understanding is wrong, or suggest better way of handling it ...
My objective is to create a simple client-server application, where the "brains" (I suppose its the DLLs)will be stored in a Server, and the "application skeleton" (I suppose its the standard EXE)in the Client.
I proceed to create the following VB projects (VB6.0) in a development PC:
1. JASON.vbp (type:ActiveX DLL)
-addition.cls (accepts 2 nums, compute and return result)
-subtraction.cls (accepts 2 nums, compute and return result)
2. CHRIS.vbp (type:ActiveX DLL)
-multiplication.cls(accepts 2 nums, compute and return result)
-division.cls(accepts 2 nums, compute and return result)
3. MathsApp (type:standard EXE, ref to JASON.dll and CHRIS.dll)
-2 text fields namely txtNum1 and txtNum2 (for input)
-4 buttons namely btnADD, btnSUBTRACT, btnMULTIPLY and btnDIVIDE (will call the functions in JASON.dll and CHRIS.dll respectively)
-1 text field name txtResult (for result)
The application works fine in my development PC, which has the "brains" and the "skeleton" together. Now, I would like to deploy this application to a client-server environment.
For Server, I guess I just need to copy the JASON.dll and CHRIS.dll and then create COM+ application in a new PC.
For Client, I guess I have to use the Visual Studio Tools to create the necessary setup files and folders(excluding the 2 dlls).
Server:
I have 1 new PC installed with Win2k Pro with SP3, and I would like to create 2 COM+ applications(the "brains"
-JASONCOM (with components JASON.addition and JASON.subtraction)
-CHRISCOM (with components CHRIS.multiplication and CHRIS.division
Then, I proceed to export the 2 COM+ applications as Application Proxy, and I get 2 sets of .MSI and .CAB files
Client:
I have another new PC installed with Win2k Pro with SP3, and I would like to install the "skeleton". I copy the setup files from the development PC and run setup.exe.
I then copy the .MSI and .CAB files from the Server, and run the 2 .MSI files. I can then see 2 COM+ applications created, pointing to my Server (seeing it from the Activation tab of properties)
MY QUESTION IS .... IS THIS THE CORRECT UNDERSTANDING AND WAY OF DEPLOYING A CLIENT_SERVER APPLICATION?
Appreciate deeply if someone can guide and help me in this. Many many thanks in advance.
Jason