Re: And I thought it would be easy ?? Dos program to a windows program ??

new topic     » goto parent     » topic index » view thread      » older message » newer message

Without doing it for you, here is roughly what you need:

Selgor said...
include swfuncs.e 
include get.e 

remove those

Selgor said...
            	wPuts( {Win, 10, 10}, "Input a number") 
            wPuts({Win,10,50},"Input second number ") 

remove those and create two labels instead

Selgor said...
    a = prompt_number(" Type num ",{}) 
  b = prompt_number(" Type num ",{}) 

remove those and create two input fields instead

Selgor said...
     ? b 
w= wait_key() 

remove those and create an output field instead

Selgor said...
setHandler(Win, w32HActivate, routine_id("start_it")) 

Add an "OK" or "Calculate it" button and use w32HClick on that instead.

You final program should have 7 create() statements

HTH, Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu