Click here to Skip to main content
16,014,748 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionproblem with dll Pin
prithaa28-Jul-08 18:30
prithaa28-Jul-08 18:30 
AnswerRe: problem with dll Pin
Cedric Moonen28-Jul-08 20:23
Cedric Moonen28-Jul-08 20:23 
GeneralRe: problem with dll Pin
prithaa28-Jul-08 20:52
prithaa28-Jul-08 20:52 
GeneralRe: problem with dll Pin
Cedric Moonen28-Jul-08 20:55
Cedric Moonen28-Jul-08 20:55 
QuestionUSB Monitor Pin
mirtu28-Jul-08 18:21
mirtu28-Jul-08 18:21 
AnswerRe: USB Monitor Pin
mirtu28-Jul-08 23:32
mirtu28-Jul-08 23:32 
AnswerRe: USB Monitor Pin
mirtu30-Jul-08 17:58
mirtu30-Jul-08 17:58 
QuestionI am calling void SearchDialog::OnSearchBtn() from a thread. Pin
ptr_Electron28-Jul-08 18:09
ptr_Electron28-Jul-08 18:09 
error C2352: 'CWnd::UpdateData' : illegal call of non-static member function


I am calling void SearchDialog::OnSearchBtn() from a thread.Please advice

class SeachDialog
{
....
....

protected:
// Generated message map functions
//{{AFX_MSG(AssetSearchDialog)
static afx_msg void OnSearchBtn();
....

static UINT StartWorkingThread (LPVOID param);

....
typedef struct THREADSTRUCT //structure for passing to the controlling function
{
SearchDialog* _this;
} THREADSTRUCT;

.....
....
}

UINT SearchDialog::StartWorkingThread (LPVOID param)
{

THREADSTRUCT* ts = (THREADSTRUCT*)param;
ts->_this->OnSearchBtn();

...
...
}


void SearchDialog::OnSearchBtn()
{


UpdateData(TRUE); // updates selection attributes

...
..
}
Questiondll problem Pin
prithaa28-Jul-08 17:27
prithaa28-Jul-08 17:27 
AnswerRe: dll problem Pin
ramana.g28-Jul-08 18:33
ramana.g28-Jul-08 18:33 
GeneralRe: dll problem Pin
prithaa28-Jul-08 18:47
prithaa28-Jul-08 18:47 
GeneralRe: dll problem Pin
Nibu babu thomas28-Jul-08 21:48
Nibu babu thomas28-Jul-08 21:48 
AnswerRe: dll problem Pin
sashoalm28-Jul-08 20:54
sashoalm28-Jul-08 20:54 
GeneralRe: dll problem Pin
prithaa28-Jul-08 21:11
prithaa28-Jul-08 21:11 
GeneralRe: dll problem Pin
sashoalm28-Jul-08 22:46
sashoalm28-Jul-08 22:46 
AnswerRe: dll problem Pin
Mark Salsbery29-Jul-08 7:00
Mark Salsbery29-Jul-08 7:00 
QuestionOnDraw() & Timer animation problem Pin
ccaprani28-Jul-08 15:25
ccaprani28-Jul-08 15:25 
AnswerRe: OnDraw() & Timer animation problem Pin
Luc Pattyn28-Jul-08 16:23
sitebuilderLuc Pattyn28-Jul-08 16:23 
GeneralRe: OnDraw() & Timer animation problem Pin
ccaprani28-Jul-08 16:43
ccaprani28-Jul-08 16:43 
GeneralRe: OnDraw() & Timer animation problem Pin
Luc Pattyn28-Jul-08 17:08
sitebuilderLuc Pattyn28-Jul-08 17:08 
GeneralRe: OnDraw() & Timer animation problem Pin
ccaprani28-Jul-08 17:31
ccaprani28-Jul-08 17:31 
GeneralRe: OnDraw() & Timer animation problem Pin
Luc Pattyn28-Jul-08 17:38
sitebuilderLuc Pattyn28-Jul-08 17:38 
GeneralRe: OnDraw() & Timer animation problem Pin
ccaprani28-Jul-08 17:40
ccaprani28-Jul-08 17:40 
AnswerRe: OnDraw() & Timer animation problem Pin
ccaprani28-Jul-08 18:50
ccaprani28-Jul-08 18:50 
QuestionHow to pass a wstring value to a string pointer [modified] Pin
monsieur_jj28-Jul-08 15:06
monsieur_jj28-Jul-08 15:06 

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.