Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAfxBeginThread Pin
tanarnelinistit27-Jul-06 23:22
tanarnelinistit27-Jul-06 23:22 
AnswerRe: AfxBeginThread Pin
Cedric Moonen27-Jul-06 23:26
Cedric Moonen27-Jul-06 23:26 
QuestionRe: AfxBeginThread Pin
tanarnelinistit27-Jul-06 23:38
tanarnelinistit27-Jul-06 23:38 
AnswerRe: AfxBeginThread Pin
Cedric Moonen27-Jul-06 23:42
Cedric Moonen27-Jul-06 23:42 
QuestionRe: AfxBeginThread Pin
tanarnelinistit28-Jul-06 0:37
tanarnelinistit28-Jul-06 0:37 
AnswerRe: AfxBeginThread Pin
Cedric Moonen28-Jul-06 0:45
Cedric Moonen28-Jul-06 0:45 
GeneralRe: AfxBeginThread Pin
tanarnelinistit28-Jul-06 0:55
tanarnelinistit28-Jul-06 0:55 
GeneralRe: AfxBeginThread Pin
Cedric Moonen28-Jul-06 1:04
Cedric Moonen28-Jul-06 1:04 
tanarnelinistit wrote:
I can select smth a i hold that in dlg.m_sel


Confused | :confused: Please make a little effort on the spelling because I cannot understand (english is not my mother tongue).

When are you opening the dialog ? Before or after spawning the thread ? If it is after, then why don't you simply take this value (dlg.m_sel) and store it into a member variable of CMina_sView ? Then in your thread, as you call the function ascultarea, as it is inside the SAME class, you don't need to pass it to the function. The function can simply get it from the member variable.

I think the problem is that you don't know what you are doing. You probably found some snippet of code to start the thread but you don't understand the mechanics beyond that. Am I right ? Then, I cannot explain you in details because the subject is fairly too large. (And I already provided you with the solution).


Cédric Moonen
Software developer

Charting control

GeneralRe: AfxBeginThread Pin
tanarnelinistit28-Jul-06 1:30
tanarnelinistit28-Jul-06 1:30 
GeneralRe: AfxBeginThread Pin
Cedric Moonen28-Jul-06 1:35
Cedric Moonen28-Jul-06 1:35 
GeneralRe: AfxBeginThread Pin
tanarnelinistit28-Jul-06 1:53
tanarnelinistit28-Jul-06 1:53 
AnswerRe: AfxBeginThread Pin
Hamid_RT27-Jul-06 23:29
Hamid_RT27-Jul-06 23:29 
Questionfiles displayed on the CFileDialog Pin
see me27-Jul-06 23:14
see me27-Jul-06 23:14 
Questionmem allocation in console app Pin
9ine27-Jul-06 23:00
9ine27-Jul-06 23:00 
AnswerRe: mem allocation in console app Pin
Jonathan [Darka]27-Jul-06 23:02
professionalJonathan [Darka]27-Jul-06 23:02 
AnswerRe: mem allocation in console app Pin
toxcct27-Jul-06 23:02
toxcct27-Jul-06 23:02 
GeneralRe: mem allocation in console app Pin
9ine27-Jul-06 23:25
9ine27-Jul-06 23:25 
GeneralRe: mem allocation in console app Pin
toxcct27-Jul-06 23:29
toxcct27-Jul-06 23:29 
GeneralRe: mem allocation in console app Pin
9ine28-Jul-06 0:57
9ine28-Jul-06 0:57 
GeneralRe: mem allocation in console app Pin
Zac Howland28-Jul-06 9:30
Zac Howland28-Jul-06 9:30 
GeneralRe: mem allocation in console app Pin
9ine1-Aug-06 6:24
9ine1-Aug-06 6:24 
GeneralRe: mem allocation in console app Pin
Gary R. Wheeler29-Jul-06 3:31
Gary R. Wheeler29-Jul-06 3:31 
QuestionVS6 Linker looking for Include files? Pin
Storm-blade27-Jul-06 22:49
professionalStorm-blade27-Jul-06 22:49 
AnswerRe: VS6 Linker looking for Include files? Pin
toxcct27-Jul-06 22:55
toxcct27-Jul-06 22:55 
GeneralRe: VS6 Linker looking for Include files? Pin
Storm-blade27-Jul-06 23:59
professionalStorm-blade27-Jul-06 23:59 

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.