Solved

Taction in DLL

Posted on 2000-03-10
3
158 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 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now