How to receive a real number input from a text box?

Started by etow, March 03, 2008, 02:39:06 AM

Previous topic - Next topic

Ramon Sala

Egan,

1 - In the printQuadraticFormat procedure there is no return sentence (Ret), so the program does not return and continues execution in the next procedure. That makes the program to crash.

2 - The String method requires the numerical value to be converted as the first parameter, not the address to a buffer as it is being passed (several times) inside the printQuadraticFormat procedure.


BTW: When attaching a project, please include the Res folder too.
Greetings from Catalonia

etow

I corrected the ret and value for String.

I still can not get the output to work.

[attachment deleted by admin]

etow

Hi found the problem for output.

The error is that I forgot to use the following two lines of instructions which are:

    ;Get the handle to Results Static control in Eax
    Invoke GetWindowItem, hWnd, IDC_QUADRATICSOLUTIONS_RESULTS
    Invoke SetWindowText, Eax, Addr szBuffer

My modified program with the wrong number results is in the attachment.

[attachment deleted by admin]

etow

I can not figure out why it does not output real numbers correctly.

Please help me.  My program is in the attachment above.

Thanks

etow

Hi

I tried making the quadratic program work but I can't seem to get it.

I have enclosed my project in attachment.

I need help.

Thanks

[attachment deleted by admin]

etow

Hi Ramon,

How do you output a real or floating point number from a Visual project in Easy Code?

Thanks

Ramon Sala

Hi,

I've never worked with real or floating point numbers, but I think there is some good source code in MASM32. The FPULib maybe?

Ramon
Greetings from Catalonia

etow

Hi

I need help with my program.

Here is my complete program with code and executable in zip file below.

[attachment deleted by admin]

etow

Hi

Here is my modified code in below link.  I still can not get the floating point results to display correctly.



[attachment deleted by admin]

dawidekz

Hi!
If someone continued the work over this program? I such needs to the school and I have with this big problem..
Please help me..

P.S I Apologize for my English....