Christian,

I faced the same problem a while ago and (temporarily) gave up on it. You
mention there are other methods to use configure dialogs from dll. What
methods would that be?

In my app I would like to show a dialog where the user can select some
items from a list. The items are calculated within the DLL. After the user
selected which items it wants to see the selected items are passed on to
the main app.

Darius

> why you want to make a showmessage from an dll ? thats bad.
> the only think i know where you need forms in dll´s are configure dialogs
> for plugins but this can
> also be solved with other methods.
>
> librarys should add functionality to your program ... not ui
>
> regards
> Christian
>   ----- Original Message -----
>   From: Christian Budde
>   To: [email protected]
>   Sent: Thursday, July 06, 2006 3:53 PM
>   Subject: [lazarus] compiling a DLL
>
>
>   Hello,
>
>   I've been trying to compile a DLL with no luck the code looks like this:
>
>   library DLLTest;
>
>   uses Forms,
>        LCLType,
>        LCLClasses,
>        LCLIntf,
>        interfaces,
>        Dialogs;
>
>   function Main(audioMaster: Pointer): Pointer; cdecl; export;
>   begin
>    ShowMessage('Test');
>   end;
>
>   exports Main name 'main';
>
>   end.
>
>   It works fine if I don't use the ShowMessage(). But what's wrong with
> this function. I already included several files (see above), but nothing
> seems to work. I've tried it with all the latest Lazarus versions
> (currently 0.9.17) and FPC 2.0.2 (I've heard that there was a problem
> with FPC, but not what the exact problem was.
>
>   The error is reproducable, but I hadn't been able to debug the DLL to
> see what the problem is. Please help,
>
>       Christian
>


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to