Re: Snack, play sound: script behavior in C++ program diifers from the same running under Wish.
- From: David Gravereaux <davygrvy@xxxxxxxxx>
- Date: Fri, 27 Apr 2007 13:15:59 -0700
skulinetz@xxxxxxxxxxxxxxxxxx wrote:
...
Program is very short, so i also put here all code (OS Windows):
--------------------
...
for (string input;;)
{
getline (cin, input);
if (input == "p")
{
Tcl_Eval (i, "set play_state $play_pause");
}
else if (input == "s")
{
Tcl_Eval (i, "set play_state $play_stop");
}
else if (input == "q")
{
cout << "waiting thread... " << endl;
WaitForSingleObject (thread, INFINITE);
CloseHandle (thread);
break;
}
}
Tcl_Finalize ();
}
Wait a sec here... You aren't running the event loop!? See Tk_Main and
Tk_MainLoop in the Tk source to understand why you need to.
--
Reality continues to ruin my life.
-- Calvin
Attachment:
signature.asc
Description: OpenPGP digital signature
- Follow-Ups:
- References:
- Prev by Date: Re: negative indices in Tk?
- Next by Date: Re: tk_getOpenFile segmentation fault with PDFs
- Previous by thread: Re: Snack, play sound: script behavior in C++ program diifers from the same running under Wish.
- Next by thread: Re: Snack, play sound: script behavior in C++ program diifers from the same running under Wish.
- Index(es):
Relevant Pages
|