Click here to Skip to main content
15,889,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What will be the output Pin
Rajkumar R11-Mar-08 6:59
Rajkumar R11-Mar-08 6:59 
GeneralRe: What will be the output Pin
Maxwell Chen11-Mar-08 7:15
Maxwell Chen11-Mar-08 7:15 
GeneralRe: What will be the output Pin
Rajkumar R11-Mar-08 6:43
Rajkumar R11-Mar-08 6:43 
GeneralRe: What will be the output Pin
CPallini11-Mar-08 6:53
mveCPallini11-Mar-08 6:53 
Generaltemplate argument Pin
George_George11-Mar-08 2:24
George_George11-Mar-08 2:24 
GeneralRe: template argument Pin
Rajkumar R11-Mar-08 2:35
Rajkumar R11-Mar-08 2:35 
GeneralRe: template argument Pin
George_George11-Mar-08 2:44
George_George11-Mar-08 2:44 
GeneralPlay avi on status bar via thread Pin
ptr_Electron11-Mar-08 1:40
ptr_Electron11-Mar-08 1:40 
I am to extract 1000's of records from database. since it takes quite some time I want play the avi file on the status bar of main frame, but the call will be made from the dialg. say on button click event I am extracting records form DB and need to play avi on the status bar, but ...

The instruction at "0x00402150" referenced memory at "0x00b9004c". The memory could not be "written".

void TestPb::OnButton1()
{

thpbar=AfxBeginThread(thPrgbar,THREAD_PRIORITY_NORMAL,0,0,NULL);
//Get 1000's records from DB ..verytime consumming process...
}


UINT TestPb::thPrgbar( LPVOID pParam )
{
CMainFrame* pFrame = (CMainFrame*)AfxGetMainWnd();
pFrame->StartAnimation( IDR_AVITEST ,1);
return (1);
}

void CMainFrame::StartAnimation( UINT id, int nPane /*=1*/ )
{
StopAnimation();
m_pAnimate = new CStatusbarAnimate; // FLASHING ERROR
m_pAnimate->Create(id, nPane);
}

void CMainFrame::StopAnimation()
{
delete m_pAnimate;
m_pAnimate = NULL;
}

bool CMainFrame::IsAnimationActive()
{
return (m_pAnimate != NULL);
}

// needed to ensure original text not visible
void CMainFrame::OnUpdateAnimate(CCmdUI* pCmdUI)
{
pCmdUI->SetText(_T(""));

modified on Tuesday, March 11, 2008 8:29 AM

GeneralRe: Play avi on status bar via thread Pin
Rajkumar R11-Mar-08 3:28
Rajkumar R11-Mar-08 3:28 
GeneralRe: Play avi on status bar via thread Pin
ptr_Electron11-Mar-08 4:08
ptr_Electron11-Mar-08 4:08 
QuestionRe: Play avi on status bar via thread Pin
Rajkumar R11-Mar-08 4:10
Rajkumar R11-Mar-08 4:10 
GeneralRe: Play avi on status bar via thread Pin
Rajkumar R11-Mar-08 5:57
Rajkumar R11-Mar-08 5:57 
QuestionHow to convert char** to char array Pin
Gofur Halmurat11-Mar-08 1:33
Gofur Halmurat11-Mar-08 1:33 
AnswerRe: How to convert char** to char array Pin
Maxwell Chen11-Mar-08 2:17
Maxwell Chen11-Mar-08 2:17 
GeneralRe: How to convert char** to char array Pin
Gofur Halmurat11-Mar-08 2:31
Gofur Halmurat11-Mar-08 2:31 
QuestionRe: How to convert char** to char array Pin
Rajkumar R11-Mar-08 2:45
Rajkumar R11-Mar-08 2:45 
GeneralRe: How to convert char** to char array Pin
Gofur Halmurat11-Mar-08 2:48
Gofur Halmurat11-Mar-08 2:48 
GeneralRe: How to convert char** to char array Pin
Rajkumar R11-Mar-08 5:40
Rajkumar R11-Mar-08 5:40 
GeneralRe: How to convert char** to char array Pin
David Crow11-Mar-08 5:34
David Crow11-Mar-08 5:34 
GeneralBitmaps in View Pin
Anu_Bala11-Mar-08 1:28
Anu_Bala11-Mar-08 1:28 
GeneralRe: Bitmaps in View Pin
ptr_Electron11-Mar-08 1:52
ptr_Electron11-Mar-08 1:52 
GeneralRe: Bitmaps in View [modified] Pin
Rajkumar R11-Mar-08 2:02
Rajkumar R11-Mar-08 2:02 
GeneralRe: Bitmaps in View Pin
ptr_Electron11-Mar-08 2:06
ptr_Electron11-Mar-08 2:06 
GeneralLdap Auth Pin
ika211-Mar-08 1:28
ika211-Mar-08 1:28 
QuestionWeb Programming in C++? Pin
Wamuti11-Mar-08 0:22
Wamuti11-Mar-08 0:22 

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.