Article View: borland.public.cppbuilder.database.multi-tier
Article #1356Midas in WebModule problem
From: oscarlu
Date: Fri, 03 Dec 1999 00:00
Date: Fri, 03 Dec 1999 00:00
37 lines
1875 bytes
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 ?
Technical Details
Message-ID:
<827krp$kg012@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,44a761219119c562,start X-Google-Attributes: gidfcd2b,public From: "oscarlu" <oscarlu@ms1.url.com.tw> Subject: Midas in WebModule problem Date: 1999/12/03 Message-ID: <827krp$kg012@forums.borland.com> X-Deja-AN: 556088798 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: chips X-MSMail-Priority: Normal Reply-To: "oscarlu" <oscarlu@ms1.url.com.tw> Newsgroups: borland.public.cppbuilder.database.multi-tier