1. Free Sci Calculator/Server now available

Hi there,

I promised some people i'd post this, and i think it's a good idea
anyway.

I've recently written a scientific calculator (which now appears in the
archives) that evaluates functions and expressions and stuff like that.
You can enter in directly, pass between two open calculators, or
send/retrieve functions and values from your own app using it as
a server to your application.

In Place Evaluation allows you to evaluate expressions right in
your own text document (it's a text editor also), so you can write
a report or something where you have a lot of math to do in it and
dont have to use a separate calculator.  It integrates with Wordpad
so you can drag between Wordpad and it's built in text editor, functions
or just plain text, or any other ole enabled program, maintaining
the color of the text objects.

For a really simple example...
say you want to enter the function
y(x)=x^2+x-1
You just type it in the text window, highlight it, then click 
(or use the quick menu Alt-v-v) and the function is entered.
If you type something to be evaluated right away, you might type:
2+3
then you highlight it, click "In Place Eval", and it turns into:
2+3=5

Extra long calculations dont hold up the normal window processing either.

Oh yeah, you can save all your data and load again later.

Included are some EE formulas and a very short table of indefinite
integrals, two help files, the Euphoria include file (for using it
as a server) along with a demo Euphoria program that sends and
retrieves functions and data to and from the calculator from a separate
process.

Of course it does algebra, trig, and calculus.

I'd hope some Euphoria programmers could try it also.  Any ideas or
whatever will be appreciated.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » topic index » view message » categorize

2. Re: Free Sci Calculator/Server now available

Hi Al,

I looked at your fc_connect.ew
May I suggest that you change the value
of WM_CD constant to a value that comply with Microsoft win32 api
some value in between #8000 and #FFFF

here an excerpt from  microsoft reference:

The WM_APP constant is used by applications to help define private messages, 
usually of the form WM_APP+X, where X is an integer value.



#define WM_APP       0x8000
#define WM_USER      0x400 

    The WM_APP constant is used to distinguish between message values that 
    are reserved for use by the system and values that can be used by an 
    application to send messages within a private window class. 
    The following are the ranges of message numbers available.

    Range	Meaning
    0 through WM_USER-­1 	Messages reserved for use by the system.
    WM_USER through 0x7FFF	Integer messages for use by private window classes.
    WM_APP through 0xBFFF	Messages available for use by applications.
    0xC000 through 0xFFFF	String messages for use by applications.
    Greater than 0xFFFF	        Reserved by the system.

    Message numbers in the first range (0 through WM_USER­1) are defined by
    the system. Values in this range that are not explicitly defined are 
    reserved by the system.

    Message numbers in the second range (WM_USER through 0x7FFF) can be 
    defined and used by an application to send messages within a private 
    window class. These values cannot be used to define messages that are 
    meaningful throughout an application, because some predefined window 
    classes already define values in this range. For example, predefined 
    control classes such as BUTTON, EDIT, LISTBOX, and COMBOBOX may use 
    these values. Messages in this range should not be sent to other 
    applications unless the applications have been designed to exchange 
    messages and to attach the same meaning to the message numbers.

    Message numbers in the third range (0x8000 through 0xBFFF) are available 
    for application to use as private messages. Message in this range do not 
    conflict with system messages.

    Message numbers in the fourth range (0xC000 through 0xFFFF) are defined 
    at run time when an application calls the RegisterWindowMessage function 
    to retrieve a message number for a string. All applications that register 
    the same string can use the associated message number for exchanging 
    messages. The actual message number, however, is not a constant and 
    cannot be assumed to be the same between different sessions.

    Message numbers in the fifth range (greater than 0xFFFF) are reserved by 
    the system. 

Regards,
Jacques d.

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

3. Re: Free Sci Calculator/Server now available

Hi there Jacques,


Thanks for the great info.  My mistake i guess, in that i didnt
write the whole name of the message out, ie
  WM_CD
is short for
  WM_COPYDATA
which is a system defined message used to pass data between programs.

Make more sense now?

Sorry about that.
Hope you liked the calculator anyway smile

Take care,
Al


jacques deschênes wrote:
> 
> 
> Hi Al,
> 
> I looked at your fc_connect.ew
> May I suggest that you change the value
> of WM_CD constant to a value that comply with Microsoft win32 api
> some value in between #8000 and #FFFF
> 
> here an excerpt from  microsoft reference:
> 
> The WM_APP constant is used by applications to help define private messages, 
> usually of the form WM_APP+X, where X is an integer value.
> 
> 
> #define WM_APP       0x8000
> #define WM_USER      0x400 
> 
>     The WM_APP constant is used to distinguish between message values that 
>     are reserved for use by the system and values that can be used by an 
>     application to send messages within a private window class. 
>     The following are the ranges of message numbers available.
> 
>     Range	Meaning
>     0 through WM_USER-­1 	Messages reserved for use by the system.
>     WM_USER through 0x7FFF	Integer messages for use by private window classes.
>     WM_APP through 0xBFFF	Messages available for use by applications.
>     0xC000 through 0xFFFF	String messages for use by applications.
>     Greater than 0xFFFF	        Reserved by the system.
> 
>     Message numbers in the first range (0 through WM_USER­1) are defined by
>     the system. Values in this range that are not explicitly defined are 
>     reserved by the system.
> 
>     Message numbers in the second range (WM_USER through 0x7FFF) can be 
>     defined and used by an application to send messages within a private 
>     window class. These values cannot be used to define messages that are 
>     meaningful throughout an application, because some predefined window 
>     classes already define values in this range. For example, predefined 
>     control classes such as BUTTON, EDIT, LISTBOX, and COMBOBOX may use 
>     these values. Messages in this range should not be sent to other 
>     applications unless the applications have been designed to exchange 
>     messages and to attach the same meaning to the message numbers.
> 
>     Message numbers in the third range (0x8000 through 0xBFFF) are available 
>     for application to use as private messages. Message in this range do not 
>     conflict with system messages.
> 
>     Message numbers in the fourth range (0xC000 through 0xFFFF) are defined 
>     at run time when an application calls the RegisterWindowMessage function 
>     to retrieve a message number for a string. All applications that register 
>     the same string can use the associated message number for exchanging 
>     messages. The actual message number, however, is not a constant and 
>     cannot be assumed to be the same between different sessions.
> 
>     Message numbers in the fifth range (greater than 0xFFFF) are reserved by 
>     the system. 
> 
> Regards,
> Jacques d.
> 

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

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

Search



Quick Links

User menu

Not signed in.

Misc Menu