Re: Active X Library problem



On Fri, 24 Jun 2005 20:00:26 +0200, Meunier Michel
<michel.meunier10@xxxxxxxxxx> wrote:

>Hello,
>
>I am writing an active x library with automation, but I have a problem,
>I need to use showmessage in the initialization part of the library and
>so I have added Windows in the uses part. Unfortunatly the library
>crash, and in fact if I cancel the showmessage line, I only keep the
>uses windows, the library also crash. How to solve this problem?

It sounds like a conflict between procedures in the Windows unit and
those ... somewhere else ...

Add another unit, put that in the Uses clause, then put your
'showmessage' in there

BTW ShowMessage is in Dialogs so I think that you might really mean
Window.MessageBox
.



Relevant Pages

  • Re: Active X Library problem
    ... I am writing an active x library with automation, but I have a problem, I need to use showmessage in the initialization part of the library and so I have added Windows in the uses part. ... Unfortunatly the library crash, and in fact if I cancel the showmessage line, I only keep the uses windows, the library also crash. ... LoadLibrary (within Windows unit) and my library also crash!! ...
    (alt.comp.lang.borland-delphi)
  • Re: Rounding errors with the Extended type
    ... > ShowMessage is called. ... That suggests that the change in the FPU precision ... Windows is loading some DLL required by ...
    (borland.public.delphi.language.objectpascal)
  • Active X Library problem
    ... I am writing an active x library with automation, but I have a problem, I need to use showmessage in the initialization part of the library and so I have added Windows in the uses part. ... Unfortunatly the library crash, and in fact if I cancel the showmessage line, I only keep the uses windows, the library also crash. ...
    (alt.comp.lang.borland-delphi)
  • Re: Vista & OnCloseQuery
    ... wie jedes Windows und erwartet ein True oder false. ... Sterne mal einfahc das ShowMessage aus und schaue was passiert. ... Fakt ist noch immer, das Vista die Anwendung mit Gewalt schliesst, wenn man sie mittels Taskmanager beendet. ...
    (de.comp.lang.delphi.misc)
  • Active X Library problem
    ... I am writing an active x library with automation, but I have a problem, I need to use showmessage in the initialization part of the library and so I have added Windows in the uses part. ... Unfortunatly the library crash, and in fact if I cancel the showmessage line, and only keep the uses windows, the library also crash. ...
    (comp.lang.pascal.delphi.misc)