Click here to Skip to main content
15,561,681 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMS Word automation Pin
Ahsan Askare7-Sep-05 1:27
Ahsan Askare7-Sep-05 1:27 
QuestionToolbar Background Color Pin
Identity Undisclosed7-Sep-05 1:27
Identity Undisclosed7-Sep-05 1:27 
QuestionDraw icon next to edit control in combo box Pin
Skute7-Sep-05 1:15
Skute7-Sep-05 1:15 
Questionctrl->alt by hooking Pin
szeszike7-Sep-05 0:25
szeszike7-Sep-05 0:25 
QuestionHow to monitor internet activities Pin
rajeevktripathi7-Sep-05 0:06
rajeevktripathi7-Sep-05 0:06 
AnswerRe: How to monitor internet activities Pin
David Crow7-Sep-05 4:14
David Crow7-Sep-05 4:14 
AnswerRe: How to monitor internet activities Pin
IndianOcean7-Sep-05 4:42
IndianOcean7-Sep-05 4:42 
Questionsimplest thread program doesn't work Pin
Spiritofamerica6-Sep-05 23:40
Spiritofamerica6-Sep-05 23:40 
<br />
DWORD WINAPI tredu (LPVOID lpParam );<br />
<br />
<br />
int APIENTRY WinMain(HINSTANCE a,HINSTANCE b,LPSTR <br />
<br />
comanda,int arata)<br />
{<br />
	<br />
	HANDLE hThread;<br />
	DWORD dwID,dwThrdParam = 1;<br />
  hThread = CreateThread (NULL, 0,tredu ,&dwThrdParam, <br />
<br />
0, &dwID);<br />
  if (hThread==NULL)<br />
	  MessageBox(0,"a","a",MB_OK);<br />
<br />
	return 0;<br />
}<br />
<br />
DWORD WINAPI tredu (LPVOID lpParam )<br />
{<br />
	Beep(1000,1000);<br />
	MessageBox(0,"a","b",MB_OK);<br />
return 0;<br />
}<br />
<br />


this does nothing?
where am I going wrong

the handle is not NULL but nothing happens
I am using VC 7.0
AnswerRe: simplest thread program doesn't work Pin
Cedric Moonen6-Sep-05 23:57
Cedric Moonen6-Sep-05 23:57 
AnswerRe: simplest thread program doesn't work Pin
Hans Ruck6-Sep-05 23:58
Hans Ruck6-Sep-05 23:58 
AnswerRe: simplest thread program doesn't work Pin
Marc Soleda7-Sep-05 0:06
Marc Soleda7-Sep-05 0:06 
AnswerRe: simplest thread program doesn't work Pin
Bob Ciora7-Sep-05 4:03
Bob Ciora7-Sep-05 4:03 
AnswerRe: simplest thread program doesn't work Pin
LighthouseJ7-Sep-05 14:58
LighthouseJ7-Sep-05 14:58 
Questionopening file by double-clicking (FileDDE) broken in VS 7.1 ?! Pin
T.T.H.6-Sep-05 23:36
T.T.H.6-Sep-05 23:36 
Questionstringsend? Pin
Member 21610046-Sep-05 23:31
Member 21610046-Sep-05 23:31 
AnswerRe: stringsend? Pin
Cedric Moonen7-Sep-05 0:13
Cedric Moonen7-Sep-05 0:13 
GeneralRe: stringsend? Pin
Member 21610047-Sep-05 0:39
Member 21610047-Sep-05 0:39 
GeneralRe: stringsend? Pin
Cedric Moonen7-Sep-05 0:45
Cedric Moonen7-Sep-05 0:45 
GeneralRe: stringsend? Pin
Member 21610047-Sep-05 18:20
Member 21610047-Sep-05 18:20 
AnswerRe: stringsend? Pin
kakan7-Sep-05 1:14
professionalkakan7-Sep-05 1:14 
QuestionAdding page number to word doc Pin
Barm6-Sep-05 22:46
Barm6-Sep-05 22:46 
QuestionChange Font of caption of dialog box ?? Pin
ana_v1236-Sep-05 21:59
ana_v1236-Sep-05 21:59 
AnswerRe: Change Font of caption of dialog box ?? Pin
Barm6-Sep-05 22:43
Barm6-Sep-05 22:43 
GeneralRe: Change Font of caption (title) of dialog box ?? Pin
Anonymous13-Sep-05 2:47
Anonymous13-Sep-05 2:47 
QuestionProper time to record Pin
LiYS6-Sep-05 21:20
LiYS6-Sep-05 21:20 

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.