Article View: borland.public.cppbuilder.database.multi-tier
Article #813learning MIDAS
From: Gaetano Piazza
Date: Tue, 24 Oct 2000 00:00
Date: Tue, 24 Oct 2000 00:00
34 lines
2262 bytes
2262 bytes
Now I am learning how to use multi tier in c++Builder and I have some difficulties, so I need your help, thank you! I have done the following steps: 1. I have created a new application project, and save it as "ProjectServer"; 2. In this project I have created a new remote data module by choosing it from Menu File-New-Multitier-Remote Data Module, and save it as "ServerDataModule" 3. I have added a DataSetProvider and a Table components (named DataSetProvider1 and Table1) in this remote data module; 4. I have done the following assignments: Table1->DatabaseName = DefaultDD; Table1->TableName = bdesdd.db; DataSetProvider1->DataSet = Table1; 5. I have compiled and executed the project; 6. In addition I have registered the server with the following line command from Start-Execute: C:\Programmi\Borland\CBuilder5\Projects\ProjectServer.exe /regserver 7. I have created another application project named ProjectClient; 8. I have added in that project a ClientDataSet and a DCOMConnection components (named ClientDataSet1 and a DCOMConnection1) 9. I have done the following assignments: DCOMConnection1->ServerName = ProjectServer.ServerDataModule (I have chosen the unique name appeared in the combobox list); DCOMConnection1->ComputerName = <the same computer name where I was working>; ClientDataSet1->RemoteServer = DCOMConnection1; 10. Thus when I tried to assign ClientDataSet1->ProviderName, or when I tried to assign DCOMConnection1->Connected = true, has appeared the following operating system error message: "Server execution failed". This message could be a bit different in English operating system version because I translated it from Italian "Esecuzione del server non riuscita". Thank you for your help. Tano Piazza (from Italy)
Technical Details
Message-ID:
<39f540f8$1_2@dnews>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,796a2b22f882d62f,start X-Google-Attributes: gidfcd2b,public From: "Gaetano Piazza" <gapsoft@tin.it> Subject: learning MIDAS Date: 2000/10/24 Message-ID: <39f540f8$1_2@dnews> X-Deja-AN: 685145683 X-Trace: 24 Oct 2000 00:57:44 -0800, 62.10.155.57 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.cppbuilder.database.multi-tier X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200