i have converted recently a dos program to a windows program using dialog box for interface but however due to the event driven nature of win32 programming (win32 API programming) i'm geting some dfficulties converting some part of the program, here is an example of a simple algorithm that ressembles closely enough what i am trying to do:
the part i am geting problems with is how to force the application to wait for inputs in the approriate moments.
Code:
1)NO KEYWORD WAS FOUND FOR THIS INPUT, PLEASE ENTER A KEYWORD
2)SO THE KEYWORD IS: (key)
3)(if response is no)PLEASE RE-ENTER THE KEYWORD (go back to step #2)
4)NO RESPONSE WAS FOUND FOR THIS KEYWORD: (key) , PLEASE ENTER A RESPONSE
5)SO, THE RESPONSE IS: (resp)
6)(if response is no) PLEASE REENTER THE RESPONSE (go back to step #4)
7)KEYWORD AND RESPONSE LEARNED SUCCESSFULLY
8)IS THERE ANY OTHER KEYWORD THAT I SHOULD LEARN
9)(if response is yes, otherwise continue chating): PLEASE ENTER THE KEYWORD (go back to step #2)
the part i am geting problems with is how to force the application to wait for inputs in the approriate moments.