in reply to Re: Show a msgbox and do not wait (Win32)
in thread Show a msgbox and do not wait (Win32)

Thanks for the ideas. I forgot about rundll32, thanks. It wount work though anyway. Rundll32 supports only functions with prototype

void CALLBACK EntryPoint(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdSh +ow);
and MessageBoxA is too different.

I've tried the VB way, with Sub Main and MsgBox function, but the resulting EXE wasted about 4MB of memory when run.

Jenda

Replies are listed 'Best First'.
Re: Re: Re: Show a msgbox and do not wait (Win32)
by Cabrion (Friar) on Feb 21, 2003 at 02:13 UTC
    Code it in Delphi to avoid the large overhead. It's way better than VB anyway.

    However, you might also consider exploring windows scripting host.

      I'd have to stea^B^B^B^Bbuy it first ;-) I plan to look into Delphi for five years already. I always liked the Pascal style syntax better than C style. Though maybe now that I've got used to curlies .... I don't think I'll ever have the time/need to though :-( Besides, my employer want's us to use C# :-{

      I don't think the result would be smaller (not the EXE, the memory footprint!) than BrowserUk's popup.exe anyway.

      Thanks, Jenda

      P.S.: Another languages I'd like to play a little with are Dylan and Erlang. I think especialy Erlang could be a good tool to have in ones toolset.