Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WMA To WAV Pin
toxcct25-Jul-06 2:40
toxcct25-Jul-06 2:40 
QuestionBlocking Pin
tanarnelinistit24-Jul-06 23:30
tanarnelinistit24-Jul-06 23:30 
AnswerRe: Blocking Pin
_AnsHUMAN_ 24-Jul-06 23:32
_AnsHUMAN_ 24-Jul-06 23:32 
GeneralRe: Blocking Pin
tanarnelinistit24-Jul-06 23:34
tanarnelinistit24-Jul-06 23:34 
GeneralRe: Blocking Pin
_AnsHUMAN_ 25-Jul-06 0:05
_AnsHUMAN_ 25-Jul-06 0:05 
AnswerRe: Blocking Pin
Eytukan25-Jul-06 0:30
Eytukan25-Jul-06 0:30 
GeneralRe: Blocking Pin
tanarnelinistit25-Jul-06 0:36
tanarnelinistit25-Jul-06 0:36 
GeneralRe: Blocking Pin
Eytukan25-Jul-06 1:05
Eytukan25-Jul-06 1:05 
simple... Follow these steps :
you have a function. ReadCOM(). You dont want this to block your application.

declare these in your header may be COMPROG.h

<br />
//COMPROG.h<br />
static UINT MyThread(LPVOID lp);<br />
void ReadCOM();<br />


in the implementation,
COMPROG.cpp<br />
AfxBeginThread(MyThread,this);// Your call to start the thread.<br />


Your Thread:
<br />
UINT MyThread(LPVOID lp)<br />
{<br />
 CCOMPROG* obj = (CCOMPROG*)lp; //To access the  ReadCOM function, or you can pass any function, with using the void pointer.<br />
 obj->ReadCOM(); <br />
}<br />


Your Fcuntion:
<br />
void ReadCom()<br />
{<br />
 do<br />
  {<br />
   //Your Code to read COM<br />
  }while(x==true);//your condition<br />
}<br />

QuestionRe: Blocking Pin
tanarnelinistit25-Jul-06 1:23
tanarnelinistit25-Jul-06 1:23 
AnswerRe: Blocking Pin
Eytukan25-Jul-06 1:28
Eytukan25-Jul-06 1:28 
QuestionRe: Blocking Pin
tanarnelinistit25-Jul-06 1:44
tanarnelinistit25-Jul-06 1:44 
AnswerRe: Blocking Pin
Eytukan25-Jul-06 3:44
Eytukan25-Jul-06 3:44 
GeneralRe: Blocking Pin
ThatsAlok25-Jul-06 1:26
ThatsAlok25-Jul-06 1:26 
AnswerRe: Blocking Pin
David Crow25-Jul-06 3:06
David Crow25-Jul-06 3:06 
AnswerRe: Blocking Pin
earl25-Jul-06 4:24
earl25-Jul-06 4:24 
QuestionImage Processing using visual c++ Pin
Cassiopeiaxy24-Jul-06 23:25
Cassiopeiaxy24-Jul-06 23:25 
AnswerRe: Image Processing using visual c++ Pin
ashwath200524-Jul-06 23:48
ashwath200524-Jul-06 23:48 
AnswerRe: Image Processing using visual c++ Pin
normanS25-Jul-06 0:50
normanS25-Jul-06 0:50 
AnswerRe: Image Processing using visual c++ Pin
Farhat Aisha25-Jul-06 3:33
Farhat Aisha25-Jul-06 3:33 
QuestionProperty Sheet Wizard Pin
ashwath200524-Jul-06 23:20
ashwath200524-Jul-06 23:20 
AnswerRe: Property Sheet Wizard Pin
Naveen24-Jul-06 23:45
Naveen24-Jul-06 23:45 
GeneralRe: Property Sheet Wizard Pin
ashwath200525-Jul-06 0:08
ashwath200525-Jul-06 0:08 
GeneralRe: Property Sheet Wizard Pin
Naveen25-Jul-06 0:14
Naveen25-Jul-06 0:14 
GeneralRe: Property Sheet Wizard Pin
ashwath200525-Jul-06 0:26
ashwath200525-Jul-06 0:26 
Questionlibmysql.lib Error Pin
Y_Kaushik24-Jul-06 23:14
Y_Kaushik24-Jul-06 23:14 

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.