Solved

DLL Conflict

Posted on 2002-07-23
5
229 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
[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
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month6 days, 15 hours left to enroll

623 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