Solved

DLL Conflict

Posted on 2002-07-23
5
219 Views
Last Modified: 2010-04-04
Thanks,

I have a group of components inherited from a class bases (ATFields call) inserted on a form. If I execute the application (exe) the following function ok works. "f1.Components[i].InheritsFrom(ATField)".

function  OATTRANS.GetATFIELDByHostID(host_id: String; f1 : TForm): ATField;
var
i   : Integer;
fx   : ATField;
begin
for i := 0 to  f1.ComponentCount - 1  do
 begin
 if not f1.Components[i].InheritsFrom(ATField) then
    continue;
 fx := ATField(f1.Components[i]);
 if (fx.FIELDHOSTID = host_id) then
     begin
     result := fx;
     exit;
     end;
  end;
result := nil;
end;

Question :

I have a DLL that uses this function and it does not recognize the class ATFields father?
0
Comment
Question by:rbarzallo
5 Comments
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 7173281
I'm not sure if I understand you properly, but looking at the code, perhaps you can try

if not (f1.Components[i] is ATField) then
  Continue;



HTH
DragonSlayer
0
 

Author Comment

by:rbarzallo
ID: 7173328
Thanks for you attention, please read newly the question.

Saludos
0
 
LVL 14

Accepted Solution

by:
DragonSlayer earned 200 total points
ID: 7173371
Perhaps you need to use the RegisterClass/RegisterClasses functions?

Anyway where did you declare the ATField and its ancestor classes?
0
 

Expert Comment

by:CleanupPing
ID: 9343003
rbarzallo:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 9461512
rbarzallo,
No comment has been added lately (18 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to DragonSlayer http:#7173281

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

anAKiN
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

19 Experts available now in Live!

Get 1:1 Help Now