Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Leibniz (Programmer) (OP)
4 Jul 10 16:58
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, he is an example of a simple algorithm that ressembles closely enough what i am trying to do:

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.  
xwb (Programmer)
10 Jul 10 2:50
First thing is to design your form.  Say it has

CODE

prompt                       Static text
 ________________
|________________|           Edit box

[ OK ]  [Cancel]             buttons
During the form design, if you double click on the edit box, it will generate the handler for the edit box.  Modify the handler to check the response, then change the prompt to the responses specified in steps 1, 3, 6 and 8 depending on what came before.  You'll probably need some sort of state machine for this.
Leibnitz (Programmer)
5 Aug 10 9:33
thanks, i have been able to find a solution!


a.i programming website



 

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close