Solved

DLL Conflict

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

773 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