Click here to Skip to main content
15,913,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAbout DLL and Threads Pin
Nelek14-Oct-07 23:45
protectorNelek14-Oct-07 23:45 
AnswerRe: About DLL and Threads Pin
Matthew Faithfull14-Oct-07 23:58
Matthew Faithfull14-Oct-07 23:58 
GeneralRe: About DLL and Threads [SOLVED] Pin
Nelek15-Oct-07 4:00
protectorNelek15-Oct-07 4:00 
QuestionFolder Permissions Pin
narayanagvs14-Oct-07 23:15
narayanagvs14-Oct-07 23:15 
AnswerRe: Folder Permissions Pin
David Crow15-Oct-07 4:06
David Crow15-Oct-07 4:06 
GeneralRe: Folder Permissions Pin
narayanagvs15-Oct-07 4:19
narayanagvs15-Oct-07 4:19 
Questionhow to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
Thinn Nwe Han14-Oct-07 23:09
Thinn Nwe Han14-Oct-07 23:09 
AnswerRe: how to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
chandu00415-Oct-07 0:41
chandu00415-Oct-07 0:41 
yah, i got your problem.
but before answering it, i want you to advice that, you donot need to paste the whole code here, because, most of the readers donot prefer read such a big posts. your post should be as simple as possible, and reflecting your actual problem.
and to your question, since, you have defined all your port related code in a single function, i.e. button, your screen (dialog) will not get the focus until the function gets completed.
so the solution is, you have to define this code in a thread, start the thread in the start button and kill it in the stop button.
any more doubts,
you are welcome.

Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.

GeneralRe: how to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
Thinn Nwe Han15-Oct-07 16:02
Thinn Nwe Han15-Oct-07 16:02 
QuestionRe: how to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
David Crow15-Oct-07 4:09
David Crow15-Oct-07 4:09 
AnswerRe: how to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
Thinn Nwe Han15-Oct-07 15:58
Thinn Nwe Han15-Oct-07 15:58 
GeneralRe: how to terminate continuous running program by clicking button on MFC dialog based window in C++ Pin
David Crow15-Oct-07 16:04
David Crow15-Oct-07 16:04 
QuestionButtons Pin
mcsherry14-Oct-07 23:02
mcsherry14-Oct-07 23:02 
AnswerRe: Buttons [modified] Pin
Roger Broomfield14-Oct-07 23:17
Roger Broomfield14-Oct-07 23:17 
GeneralRe: Buttons Pin
mcsherry14-Oct-07 23:46
mcsherry14-Oct-07 23:46 
GeneralRe: Buttons Pin
Roger Broomfield14-Oct-07 23:58
Roger Broomfield14-Oct-07 23:58 
GeneralRe: Buttons Pin
mcsherry15-Oct-07 0:21
mcsherry15-Oct-07 0:21 
GeneralRe: Buttons Pin
David Crow15-Oct-07 4:12
David Crow15-Oct-07 4:12 
Questionerror : class redifinition Pin
srvsah14-Oct-07 21:55
srvsah14-Oct-07 21:55 
AnswerRe: error : class redifinition Pin
Nelek14-Oct-07 22:16
protectorNelek14-Oct-07 22:16 
AnswerRe: error : class redifinition Pin
toxcct15-Oct-07 0:17
toxcct15-Oct-07 0:17 
AnswerRe: error : class redifinition Pin
Cedric Moonen15-Oct-07 0:18
Cedric Moonen15-Oct-07 0:18 
AnswerRe: error : class redifinition Pin
ThatsAlok15-Oct-07 1:50
ThatsAlok15-Oct-07 1:50 
AnswerRe: error : class redifinition Pin
David Crow15-Oct-07 4:15
David Crow15-Oct-07 4:15 
QuestionVC++ with Flash 8 Pin
msr_codeproject14-Oct-07 21:54
msr_codeproject14-Oct-07 21:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.