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

C / C++ / MFC

 
GeneralRe: Find the exe name when loading dll Pin
lynchspawn11-Aug-05 3:37
lynchspawn11-Aug-05 3:37 
GeneralRe: Find the exe name when loading dll Pin
ThatsAlok11-Aug-05 4:34
ThatsAlok11-Aug-05 4:34 
GeneralRe: Find the exe name when loading dll Pin
cmk11-Aug-05 4:03
cmk11-Aug-05 4:03 
GeneralRe: Find the exe name when loading dll Pin
David Crow11-Aug-05 5:35
David Crow11-Aug-05 5:35 
GeneralVisual C++/MFC Thread Question Pin
suzie10011-Aug-05 2:37
suzie10011-Aug-05 2:37 
GeneralRe: Visual C++/MFC Thread Question Pin
Achim Klein11-Aug-05 2:47
Achim Klein11-Aug-05 2:47 
GeneralRe: Visual C++/MFC Thread Question Pin
koothkeeper11-Aug-05 3:46
professionalkoothkeeper11-Aug-05 3:46 
GeneralRe: Visual C++/MFC Thread Question Pin
Eytukan11-Aug-05 3:56
Eytukan11-Aug-05 3:56 
create a worker thread..

UINT ClassName ::Thread1(LPVOID lp)
{
ClassName *cn = (ClassName*)lp;
cn->Thread1();
}
//// define the functionality inside the thread
void ClassName::Thread1()
{
while(1)
{
AfxMessageBox("In thread");
Sleep(millisec);
}
}

in the function,
Anyfun()
{
CWinThread *cwt;
cwt=AfxBeginThread(Thread1,this);
}

you can suspend the thread by cwt->SuspendThread();
resume by cwt->ResumeThread();
ExitInstance() will delete it




Regards,
V
GeneralRe: Visual C++/MFC Thread Question Pin
Eytukan11-Aug-05 4:21
Eytukan11-Aug-05 4:21 
GeneralRe: Visual C++/MFC Thread Question Pin
ThatsAlok11-Aug-05 4:48
ThatsAlok11-Aug-05 4:48 
GeneralRe: Visual C++/MFC Thread Question Pin
Ravi Bhavnani11-Aug-05 11:08
professionalRavi Bhavnani11-Aug-05 11:08 
GeneralRe: Visual C++/MFC Thread Question Pin
suzie10011-Aug-05 13:50
suzie10011-Aug-05 13:50 
QuestionWhy doesn't CDC::StretchBlt() work properly, if both DCs are MemoryDCs ? Pin
Achim Klein11-Aug-05 2:27
Achim Klein11-Aug-05 2:27 
AnswerRe: Why doesn Pin
Chris Losinger11-Aug-05 3:15
professionalChris Losinger11-Aug-05 3:15 
GeneralRe: Why doesn Pin
Achim Klein11-Aug-05 3:30
Achim Klein11-Aug-05 3:30 
GeneralThread Problem Pin
Priyank Bolia11-Aug-05 2:11
Priyank Bolia11-Aug-05 2:11 
GeneralRe: Thread Problem Pin
SunKnight011-Aug-05 3:21
SunKnight011-Aug-05 3:21 
GeneralRe: Thread Problem Pin
HumanOsc11-Aug-05 5:39
HumanOsc11-Aug-05 5:39 
Questionstatic methods? Pin
Anonymous11-Aug-05 2:08
Anonymous11-Aug-05 2:08 
AnswerRe: static methods? Pin
Achim Klein11-Aug-05 2:14
Achim Klein11-Aug-05 2:14 
GeneralRe: static methods? Pin
Anonymous11-Aug-05 2:20
Anonymous11-Aug-05 2:20 
GeneralRe: static methods? Pin
Cedric Moonen11-Aug-05 2:32
Cedric Moonen11-Aug-05 2:32 
GeneralRe: static methods? Pin
Achim Klein11-Aug-05 2:33
Achim Klein11-Aug-05 2:33 
AnswerRe: static methods? Pin
toxcct11-Aug-05 3:30
toxcct11-Aug-05 3:30 
GeneralRe: static methods? Pin
Anonymous11-Aug-05 4:24
Anonymous11-Aug-05 4:24 

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.