O/H coco έγραψε:
> hi,
> 
> how to read dataset in mainform from dll file
> 
> examples :
> ----------
> 
> dll file
> library pgsmlib;
> uses
>   SysUtils,
>   Classes,
>   form1 in 'unit.pas' {fSavegsm};
> 
> {$R *.res}
> 
> procedure ShowGSMForm;stdcall;
> begin
>   fSavegsm := TfSavegsm.Create(Nil);
>   fSavegsm.Show;
> end;
> procedure showdb;
> 
> begin
>    form1.datasource := ......................{dataset from mainform}
> end;
> 
> Exports
>     ShowGSMForm;
> begin
> 
> end.


Coco

you can not pass objects from a dll to an exe
unless you have them both compiled with
runtime packages.

Delphi's online help describes the process.
Just search the help index and you'll find
the information.

BTW, a dll and an exe are two _disctinct_ executables.
The type information of the one is way different from the other
even when you have a type with the same name, say TButton,
in both executables.
Runtime packages is a solution to this problem.


-- 
Regards
Theo

------------------------
Theo Bebekis
Thessaloniki, Greece
------------------------
Greek_Delphi_Prog : a Delphi Programming mailing list in Greek at
    http://groups.yahoo.com/group/Greek_Delphi_Prog

CSharpDotNetGreek : A C# and .Net mailing list in Greek language at
    http://groups.yahoo.com/group/CSharpDotNetGreek

atla_custom : a Unisoft Atlantis Customization mailing list at
    http://groups.yahoo.com/group/atla_custom
------------------------


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/delphi-en/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to