Solved

Taction in DLL

Posted on 2000-03-10
3
167 Views
Last Modified: 2010-04-04
I think that Taction.OnUpdate event does not respond if it is defined in DLL.

Example:
  I put TTable object and couple of buttons for navigating on the form.
Each button.action is set to some of standard actions (DataSetFirst, DataSetNext, etc.)

All mentioned above is designed in DLL which is dinamically linked.

When I create Form which is in that DLL, navigation buttons does not work.

Please, HELP!!!
0
Comment
Question by:sesa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 100 total points
ID: 2606226
Try building the app and dll with runtime packages enabled (go to Project|Options, Packages and check 'Build with runtime packages')

Do this for both the DLL and the app.

Cheers,

Raymond.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2606250
How do you create the form in the DLL?
When I do it like this TAction.OnUpdate works fine for me...


library DllProject1;

uses
  SysUtils,
  Classes,
  Forms,
  DllUnit1 in 'DllUnit1.pas' {Form1};

{$R *.RES}

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
end.
0
 

Author Comment

by:sesa
ID: 2606478
Thanks!!!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question