Click here to Skip to main content
15,923,087 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionlimitation of edit box Pin
SANJAY7612-Sep-05 7:12
SANJAY7612-Sep-05 7:12 
AnswerRe: limitation of edit box Pin
David Crow12-Sep-05 7:22
David Crow12-Sep-05 7:22 
AnswerRe: limitation of edit box Pin
Chris Losinger12-Sep-05 9:22
professionalChris Losinger12-Sep-05 9:22 
QuestionThreads Pin
Eytukan12-Sep-05 4:50
Eytukan12-Sep-05 4:50 
AnswerRe: Threads Pin
John M. Drescher12-Sep-05 5:52
John M. Drescher12-Sep-05 5:52 
GeneralRe: Threads Pin
Eytukan12-Sep-05 7:59
Eytukan12-Sep-05 7:59 
GeneralRe: Threads Pin
John M. Drescher12-Sep-05 8:03
John M. Drescher12-Sep-05 8:03 
Generalcode Pin
Eytukan12-Sep-05 8:15
Eytukan12-Sep-05 8:15 
if there is no context switch , it should print the same value right?.. sorry if i misunderstand, anyway plz view the code here.. plz try to help me . everytime i'm struggling with the threads Frown | :( .

char[4] agIndv;

UINT CQACDDlg::DevMonitoring(LPVOID p)
{
CQACDDlg * me = (CQACDDlg *)p;
me->DevMonitoring(agIndv);
return 0;

}


void CQACDDlg::DevMonitoring(char[] ageID)
{
while(1)
{
AfxMessageBox(ageID);
//Sleep here for a while
}

}



void CQACDDlg::OnSetSplit() // onclick for new Threads
{
m_SplitID.GetWindowText(agIndv,5); //agIndv is global taken from a CEdit box
AfxBeginThread(DevMonitoring,this);

}



in the header file,
i declare
static UINT DevMonitoring(LPVOID lp);



V
AnswerRe: Threads Pin
David Crow12-Sep-05 6:25
David Crow12-Sep-05 6:25 
GeneralRe: Threads Pin
Eytukan12-Sep-05 8:10
Eytukan12-Sep-05 8:10 
GeneralRe: Threads Pin
Bob Stanneveld12-Sep-05 8:44
Bob Stanneveld12-Sep-05 8:44 
GeneralRe: Threads Pin
Eytukan12-Sep-05 22:20
Eytukan12-Sep-05 22:20 
GeneralRe: Threads Pin
Bob Stanneveld13-Sep-05 1:25
Bob Stanneveld13-Sep-05 1:25 
GeneralRe: Threads Pin
David Crow12-Sep-05 8:55
David Crow12-Sep-05 8:55 
GeneralRe: Threads Pin
Eytukan12-Sep-05 22:27
Eytukan12-Sep-05 22:27 
Questiondelete always goes with set NULL? Pin
valerie9912-Sep-05 3:49
valerie9912-Sep-05 3:49 
AnswerRe: delete always goes with set NULL? Pin
toxcct12-Sep-05 4:00
toxcct12-Sep-05 4:00 
AnswerRe: delete always goes with set NULL? Pin
David Crow12-Sep-05 4:28
David Crow12-Sep-05 4:28 
AnswerRe: delete always goes with set NULL? Pin
Nemanja Trifunovic12-Sep-05 4:28
Nemanja Trifunovic12-Sep-05 4:28 
AnswerRe: delete always goes with set NULL? Pin
S. Senthil Kumar12-Sep-05 4:42
S. Senthil Kumar12-Sep-05 4:42 
QuestionCOleDateTime question Pin
eli1502197912-Sep-05 3:47
eli1502197912-Sep-05 3:47 
AnswerRe: COleDateTime question Pin
David Crow12-Sep-05 4:28
David Crow12-Sep-05 4:28 
GeneralRe: COleDateTime question Pin
eli1502197912-Sep-05 4:34
eli1502197912-Sep-05 4:34 
GeneralRe: COleDateTime question Pin
David Crow12-Sep-05 4:45
David Crow12-Sep-05 4:45 
GeneralRe: COleDateTime question Pin
eli1502197912-Sep-05 20:34
eli1502197912-Sep-05 20:34 

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.