Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Taction in DLL

Posted on 2000-03-10
3
Medium Priority
?
172 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
3 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 400 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

927 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