A: The container (MSIE) takes care of (de)activation for you, so you'll never see these messages. Therefore you shouldn't do anything in your OnActivate/OnDeactivate events.
Q: OnDestroy event: Why doesn't the OnDestroy fire for my ActiveForm?
A: MSIE kills the OCX (ActiveForm) without letting it getting a chance of cleaning up properly. Therefore you shouldn't do anything in OnDestroy.
Q: Missing ProviderName in TClientDataSet: I don't see entries in the TClientDataSet ProviderName property. What's wrong?
A: On your server application, in the remote data module, right click your dataset (TTable, Tquery, etc) and select "Export [MyDataset] from data module". Rebuild the server application. You should now see the provider supplied in the list of the TClientDataset.
"Exporting from data module" adds a "Get_MyDataset" function to the protected section of the remote datamodule's CoClass that returns an IProvider interface.
Q: Propigating constraints from middle-tier to client: How do I propagate constraints from Middle-tier to Client?
A: This example uses the demos found in \Delphi 3\Demos\DB\CLIENTDS\Empedit.dpr
and \server.dpr. Empedit.dpr represents the client tier, server.dpr runs on
the middle tier, and the database, DBDEMOS, is located also on the middle tier,
but in a real world scenario would be an SQL database running on yet a third
machine. This example uses the Employee.db table. In order to use the following,
you will need to set up DCOM and have the two examples running before
adding the complication of constraints to the mix.
The general steps are
Q: "DAX Error: Unexpected failure." error: How do I resolve this error?
A: This usually happens when the application server has raised an exception during initialization. Add exception handling to your server.
Q: Client launching: What do I need to do to make my client launch and access my server through DCOM?
A: One setup that usually work is if you install Service Pack 3 on all NT 4.0 machines. If you are going to use any Win95 clients then you'll have to install DCOM for Win95 on those machines. You'll also need Microsoft Internet Explorer 3.02 on the client machines. On the machine were the application server is going to run (an NT 4.0 machine) you'll do each of the following:
Q: "DAX Error: Server execution failed" error: What am I doing wrong and how do I resolve this error?
A: Make sure you followed the instructions in "What do I need to do to make my client launch and access my server through DCOM?". If you did and it still doesn't work, try running the server once manually.
Q: "DAX Error: Access is denied" error: What am I doing wrong and how do I resolve this error?
A: Make sure you followed the instructions in "What do I need to do to make my client launch and access my server through DCOM?". If you did and it still doesn't work, try running the server once manually.
Q: Old ActiveForm information displayed when updates have been made: I updated my ActiveForm and I hit my web page in Internet Explorer, but I get the old ActiveForm. What am I doing wrong?
A: Even if you use version info, you'll see this happening in some cases. Usually it goes away if you unregister the OCX (in C:\WINDOWS\OCCACHE\ or C:\WINNT\OCCACHE) using REGSVR32.EXE. The recommended way of doing this is:
Q: What directory is the ActiveForm in: I need to know the exact directory that my ActiveForm is located in; How do I get that information?
A: GetModuleFilename(HInstance, ModuleName, SizeOf(ModuleName)). ModuleName can be declared as an array [0..255] of Char for instance. For your information:
If one of the above topics need to be elaborated on, or you do not see a simple question about Delphi 3 that is not answered above, send a short message to the BDE Administrator
US developer support questions should be handled through any of the Borland Assist options. Non-US developer support should be handled through an international Borland office in your area. The administrator of this page reserves the right to reply only to questions pertaining to the current page. All other types of inquiries will be ignored! Back To Top
Delphi Q and A Trademarks & Copyright © 1997 Borland International, Inc.