Re: Active X Library problem



J French a écrit :
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
That's true ShowMessage is in Dialogs, but the problem is that also I need to load a standard dll inside the active x library, for that I need LoadLibrary (within Windows unit) and my library also crash!!
I don't know if what I say is clear, but to be simple:
uses windows inside my active library ---> crash at initialization
uses dialogs inside my active library ---> crash at initialization


Michel
.



Relevant Pages

  • Re: Active X Library problem
    ... >so I have added Windows in the uses part. ... >crash, and in fact if I cancel the showmessage line, I only keep the ... >uses windows, the library also crash. ... It sounds like a conflict between procedures in the Windows unit and ...
    (alt.comp.lang.borland-delphi)
  • Re: D7 program crashes on Win 2003
    ... Hi Leif, ... > Use WriteLn's or showmessage to see how far into your program you reach ... > before the crash. ... > Eddy Fontaine wrote: ...
    (comp.lang.pascal.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)
  • 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: TForm.Create( nil ) inside DLL works ? Why ?
    ... Application variable does seems to be initialized even for a DLL. ... ShowMessage(Application.ExeName); ... Does show the correct project name... ...
    (alt.comp.lang.borland-delphi)