Solved

DLL Conflict

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

20 Experts available now in Live!

Get 1:1 Help Now