1. Rob win32 ??

Rob:
  I have written a windows program and it displays the window OK
  when I close the window, Euphoria displays a DOSBOX error message that
  that in func WndProc() MessageBoxA returns a value and dumps out the
  ^^call-back
  etc. ...
  up to the PostQuitMessage

  The problem is that I have NO MessageBoxA() function in my WndProc
  function I am only monitoring WM_DESTORY and responding with a
  PostQuitMessage({0}) and defaulting all other messages back to default.
  If I comment out the PostQuitMessage then I get NO errors.
Bernie

new topic     » topic index » view message » categorize

2. Re: Rob win32 ??

Bernie Ryan writes:
>   I have written a windows program and it displays the
> window OK when I close the window, Euphoria displays a
> DOSBOX error message that that in func WndProc()
> MessageBoxA returns a value and dumps out the
>  ^^call-back
>  etc. ...
>  up to the PostQuitMessage
>  The problem is that I have NO MessageBoxA() function in
> my WndProc

It would help if you gave the exact error message that
you got from Euphoria. I don't know what sort of error
happened here.

Keep in mind that a C function called "MessageBoxA"
is called by the Euphoria message_box() routine in
euphoria\include\msgbox.e. Maybe the error happened
when you called message_box().

Regards,
     Rob Craig
     Rapid Deployment Software
     http://members.aol.com/FilesEu/

new topic     » goto parent     » topic index » view message » categorize

3. Re: Rob win32 ??

On Fri, 13 Aug 1999 14:22:45 -0400, Robert Craig <rds at ATTCANADA.NET> wrote:
>Keep in mind that a C function called "MessageBoxA"
>is called by the Euphoria message_box() routine in
>euphoria\include\msgbox.e. Maybe the error happened
>when you called message_box().
>
>Regards,
>     Rob Craig
>     Rapid Deployment Software
>     http://members.aol.com/FilesEu/

Rob:
  I am not using msgbox.e, the problem is not with any particular routine
  but something to do with the shutdown with my combination of code.

  The problem appears that when I execute the PostQuitMessage({0})
  Euphoria is still trying to execute code that is NOT enclosed in
  a function ... end function statment structure.

  If I execute PostQuitMessage({0}) then the DOSBOX error reports
  routine 1 returns a value.
  If I comment out routine 1 then  the DOSBOX error reports
  routine 2 returns a value.
  This being true as I comment out each routine x.
  Yet if the PostQuitMessage({0}) is comment out on a WM_DESTORY
  message if I just do return 0, I get no errors.

  function foo1
    code ...
  end function

  routine 1

  function foo2
    code ...
  end function

  routine 2

  function foo3
    code ...
  end function

  routine 3

  function winmain
    code ...
  end function


  function wndproc
    code ...
  end function

new topic     » goto parent     » topic index » view message » categorize

4. Re: Rob win32 ??

Bernie Ryan writes:

> If I execute PostQuitMessage({0}) then the DOSBOX error
> reports routine 1 returns a value.

> function foo1
>    code ...
>  end function

> routine 1

You must use the value returned by a function. You
can't call a function as if it were a procedure, or you'll
get an error message. Assign the result to a "junk"
variable if you don't care what it is.

Maybe you should post your code along with the exact
error message you are getting so myself or someone
familiar with Euphoria for WIN32 can tell you exactly
what's going on.

Regards,
     Rob Craig
     Rapid Deployment Software
     http://members.aol.com/FilesEu/

new topic     » goto parent     » topic index » view message » categorize

5. Re: Rob win32 ??

On Fri, 13 Aug 1999 20:14:33 -0400, Robert Craig <rds at ATTCANADA.NET> wrote:

>You must use the value returned by a function. You
>can't call a function as if it were a procedure, or you'll
>get an error message. Assign the result to a "junk"
>variable if you don't care what it is.
>
>Maybe you should post your code along with the exact
>error message you are getting so myself or someone
>familiar with Euphoria for WIN32 can tell you exactly
>what's going on.

Rob
  All of my functions and procedures are written correctly.
  I am not using win32lib.ew I am using all my own original code
  which I do not wish to post for public view and comment at this time.
Bernie

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu