Click here to Skip to main content
16,011,680 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Determint String Language Pin
Alexander M.,4-Apr-04 1:06
Alexander M.,4-Apr-04 1:06 
GeneralHIDE FIRST DIALOG Pin
andresfecas3-Apr-04 3:34
andresfecas3-Apr-04 3:34 
GeneralRe: HIDE FIRST DIALOG Pin
Prakash Nadar3-Apr-04 3:51
Prakash Nadar3-Apr-04 3:51 
GeneralUrgent: Having problem with while loop Pin
dreamerzz3-Apr-04 2:16
dreamerzz3-Apr-04 2:16 
GeneralRe: Urgent: Having problem with while loop Pin
avenger_sb255-Apr-04 7:46
avenger_sb255-Apr-04 7:46 
GeneralRe: Urgent: Having problem with while loop Pin
dreamerzz5-Apr-04 21:56
dreamerzz5-Apr-04 21:56 
GeneralRe: Urgent: Having problem with while loop Pin
avenger_sb256-Apr-04 5:30
avenger_sb256-Apr-04 5:30 
GeneralRe: Urgent: Having problem with while loop Pin
dreamerzz9-Apr-04 6:04
dreamerzz9-Apr-04 6:04 
Hi,
For this thread function, i have some doubts which i have stated below. Can kindly explain to me? Thanks

For this function that you have stated:
DWORD WINAPI UpdateThread(LPVOID lpParameter)

I just need to copy down or do i have to state any values to the lpParameter?

Here, i have also attached part of the codings that i have done, but i have tried the methods that you have given but it dun seems to work the way as you state. The coding stated below, the while loop is working and the database will be updated on click the UpdateDB. however, once i click on the update button, the whole program seems to hang.

<br />
//global variables<br />
int check_exit=0;<br />
<br />
//Update button function<br />
void CUpdateView::OnUpdatedb() <br />
{<br />
	// TODO: Add your control notification handler code here<br />
<br />
	//get a pointer to the recordset<br />
		CUpdateDoc* pDoc = GetDocument();<br />
		UseRecordset* pUseRecordset	= &pDoc->m_UseRecordset;<br />
	int x = 5;<br />
	do<br />
	{<br />
		pUseRecordset->Edit();<br />
<br />
		//UpdateData(true);	<br />
		pUseRecordset->m_propatime = m_propagation*x;<br />
	<br />
		pUseRecordset->Update();<br />
<br />
		if (check_exit = 0)<br />
			check_exit=1;	<br />
	}while(check_exit!=1);<br />
<br />
	//::MessageBox(0, "Updated!", "Information",0);<br />
}<br />
<br />
//Exit button function<br />
void CUpdateView::OnExit() <br />
{<br />
	check_exit = 0;<br />
}


Thanks a million,
dreamerzz
GeneralRe: Urgent: Having problem with while loop Pin
avenger_sb259-Apr-04 7:57
avenger_sb259-Apr-04 7:57 
GeneralRe: Urgent: Having problem with while loop Pin
dreamerzz20-Apr-04 2:20
dreamerzz20-Apr-04 2:20 
Questionplease help me have a look at below &quot;onInitDialog()&quot;,why return true at the end? Pin
vividtang3-Apr-04 2:16
vividtang3-Apr-04 2:16 
AnswerRe: please help me have a look at below &quot;onInitDialog()&quot;,why return true at the end? Pin
Gary R. Wheeler3-Apr-04 2:49
Gary R. Wheeler3-Apr-04 2:49 
GeneralGetNetworkParams &amp; GetAdaptersInfo Pin
Anonymous3-Apr-04 2:06
Anonymous3-Apr-04 2:06 
GeneralScolling of BIG document Pin
Still learning how to code3-Apr-04 1:08
Still learning how to code3-Apr-04 1:08 
GeneralRe: Scolling of BIG document Pin
Gary R. Wheeler3-Apr-04 2:12
Gary R. Wheeler3-Apr-04 2:12 
GeneralRe: Scolling of BIG document Pin
Still learning how to code3-Apr-04 7:47
Still learning how to code3-Apr-04 7:47 
Generalmap container Pin
MatthewP3-Apr-04 0:57
MatthewP3-Apr-04 0:57 
GeneralRe: map container Pin
MatthewP3-Apr-04 4:06
MatthewP3-Apr-04 4:06 
Questionhow to make button control colorful . Pin
vividtang2-Apr-04 23:08
vividtang2-Apr-04 23:08 
AnswerRe: how to make button control colorful . Pin
gUrM33T3-Apr-04 0:31
gUrM33T3-Apr-04 0:31 
AnswerRe: how to make button control colorful . Pin
Monty23-Apr-04 0:38
Monty23-Apr-04 0:38 
GeneralHWND TO string and string to HWND conversion Pin
Atif Mushtaq2-Apr-04 21:46
Atif Mushtaq2-Apr-04 21:46 
GeneralRe: HWND TO string and string to HWND conversion Pin
Maxwell Chen2-Apr-04 22:09
Maxwell Chen2-Apr-04 22:09 
GeneralRe: HWND TO string and string to HWND conversion Pin
Atif Mushtaq2-Apr-04 22:57
Atif Mushtaq2-Apr-04 22:57 
QuestionDisplay a MessageBox right after a dialog is drawn on the screen? Pin
usfesco2-Apr-04 21:29
usfesco2-Apr-04 21:29 

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.