Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: display 256 color bitmap image [modified] Pin
Adam Roderick J31-Jul-09 1:03
Adam Roderick J31-Jul-09 1:03 
GeneralRe: display 256 color bitmap image Pin
adichavan31-Jul-09 1:21
adichavan31-Jul-09 1:21 
GeneralRe: display 256 color bitmap image Pin
Adam Roderick J31-Jul-09 1:45
Adam Roderick J31-Jul-09 1:45 
GeneralRe: display 256 color bitmap image Pin
adichavan31-Jul-09 19:40
adichavan31-Jul-09 19:40 
QuestionThread Event Objects Pin
susanne131-Jul-09 0:25
susanne131-Jul-09 0:25 
AnswerRe: Thread Event Objects Pin
«_Superman_»31-Jul-09 0:56
professional«_Superman_»31-Jul-09 0:56 
AnswerRe: Thread Event Objects Pin
Garth J Lancaster31-Jul-09 1:02
professionalGarth J Lancaster31-Jul-09 1:02 
GeneralRe: Thread Event Objects Pin
susanne131-Jul-09 2:22
susanne131-Jul-09 2:22 
Thanks for your help.

Can you tell me please how can call or access a global variable or a function defined in th Doc.cpp or anyaother class from inside UINT ThreadProc (LPVOID param)?

UINT ThreadProc(LPVOID param)
{
CTestDoc* pDoc = GetDocument(); // error: GetDocument() is not defined???
ASSERT_VALID(pDoc);

::WaitForSingleObject(m_Thread_Sel_Start.m_hObject , INFINITE);

::MessageBox((HWND)param, strThread_Start, strThread_Caption, MB_OK);

CSQLCommand::FindSQLCmd(pDoc,m_strSelect);// error :m_strSelect is defined in the CTestView.h but he can not find it , pDoc is already unkown

bool bKeepRunning = true;

while(bKeepRunning)
{
int nResult = ::WaitForSingleObject (m_Thread_Sel_End.m_hObject ,0);

if(nResult == WAIT_OBJECT_0)
bKeepRunning = false;
}

::PostMessage((HWND)param, WM_THREADENDED, 0, 0);

return 0;
}

Can i define the UINT ThreadProc(LPVOID param) in the CTestDoc.cpp?
And why when i declare UINT ThreadProc(LPVOID param) in the CTestView.h i get this error:
error C3867: "CTestView::ThreadProc": use "&CTestView::ThreadProc".

and when i use &CTestView::ThreadProc i get a csting problem that can not be solved through an explict cast.
Questionmatch the character of a string Pin
vikas choudhry31-Jul-09 0:04
vikas choudhry31-Jul-09 0:04 
AnswerRe: match the character of a string Pin
_AnsHUMAN_ 31-Jul-09 0:20
_AnsHUMAN_ 31-Jul-09 0:20 
GeneralRe: match the character of a string Pin
vikas choudhry31-Jul-09 0:26
vikas choudhry31-Jul-09 0:26 
GeneralRe: match the character of a string Pin
Chandrasekharan P31-Jul-09 0:30
Chandrasekharan P31-Jul-09 0:30 
QuestionRe: match the character of a string Pin
CPallini31-Jul-09 0:23
mveCPallini31-Jul-09 0:23 
QuestionRe: match the character of a string Pin
Chandrasekharan P31-Jul-09 0:25
Chandrasekharan P31-Jul-09 0:25 
AnswerRe: match the character of a string Pin
Rajesh R Subramanian31-Jul-09 0:29
professionalRajesh R Subramanian31-Jul-09 0:29 
AnswerRe: match the character of a string [modified] Pin
Adam Roderick J31-Jul-09 0:40
Adam Roderick J31-Jul-09 0:40 
GeneralRe: match the character of a string Pin
vikas choudhry31-Jul-09 2:48
vikas choudhry31-Jul-09 2:48 
GeneralRe: match the character of a string Pin
Sauce!31-Jul-09 3:57
Sauce!31-Jul-09 3:57 
QuestionConversion of CBitmap into Array of BYTE and Vice Versa Pin
Madhu_Rani30-Jul-09 23:56
Madhu_Rani30-Jul-09 23:56 
AnswerRe: Conversion of CBitmap into Array of BYTE and Vice Versa Pin
Adam Roderick J31-Jul-09 0:12
Adam Roderick J31-Jul-09 0:12 
GeneralRe: Conversion of CBitmap into Array of BYTE and Vice Versa Pin
Madhu_Rani31-Jul-09 0:50
Madhu_Rani31-Jul-09 0:50 
GeneralRe: Conversion of CBitmap into Array of BYTE and Vice Versa Pin
Adam Roderick J31-Jul-09 1:43
Adam Roderick J31-Jul-09 1:43 
GeneralRe: Conversion of CBitmap into Array of BYTE and Vice Versa Pin
Madhu_Rani31-Jul-09 2:11
Madhu_Rani31-Jul-09 2:11 
QuestionMatlab to C language Pin
Dhinakum30-Jul-09 23:18
Dhinakum30-Jul-09 23:18 
Questionhow to convert power point (.ppt ) to image file such as jpg or bmp fles? Pin
rambojanggoon30-Jul-09 21:41
rambojanggoon30-Jul-09 21:41 

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.