🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
1 messages
1 total messages Started by oscarlu Fri, 03 Dec 1999 00:00
Midas in WebModule problem
#1356
Author: oscarlu
Date: Fri, 03 Dec 1999 00:00
37 lines
1875 bytes
Hi
I need your hepl about this.
I use TDCOMServer and TClientDataSet in Web Server Application.

(1) When the Midas component put on normal Form, I never call CoInitialize()
function then it can work.
      When I run three applications on the same time, the Application server
create one DCOM server only.

    DCOMConnection1->ComputerName = "AppServer";
    DCOMConnection1->ServerName = "QueryServer.Query";
    DCOMConnection1->ServerGUID = "{1F41A5B3-7612-11D3-9299-00105A75C09B}";
    DCOMConnection1->Connected = true;

(2) When the Midas component put on WebModule, it must call CoInitialize()
function then it can work.
      When I run three applications on the same time, the Aapplication
server create three DCOM servers.

    if ( CoInitialize(NULL) == S_OK )
    {
    DCOMConnection1->ComputerName = "AppServer";
    DCOMConnection1->ServerName = "QueryServer.Query";
    DCOMConnection1->ServerGUID = "{1F41A5B3-7612-11D3-9299-00105A75C09B}";
    DCOMConnection1->Connected = true;
    ....
    CoUninitialize();
    }


The problems are :
(1) Why I must call CoInitialize() function in WebModule ?
(2) Why WebModule cann't raise the same DCOM server ?
(3) Why TClinetDataSet get 10 records only ?

Is any way can let WebModule raise the same DCOM server ?
Is Midas component cann't use in WebModule ?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads