Click here to Skip to main content
15,884,472 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: generate the .H file from COM Pin
MrKBA14-May-12 2:02
MrKBA14-May-12 2:02 
AnswerRe: generate the .H file from COM Pin
Pete O'Hanlon14-May-12 2:08
mvePete O'Hanlon14-May-12 2:08 
GeneralRe: generate the .H file from COM Pin
MrKBA14-May-12 2:51
MrKBA14-May-12 2:51 
GeneralRe: generate the .H file from COM Pin
Pete O'Hanlon14-May-12 2:55
mvePete O'Hanlon14-May-12 2:55 
Questioncreating a dialog in non mfc application Pin
Rajeev.Goutham9-May-12 20:42
Rajeev.Goutham9-May-12 20:42 
AnswerRe: creating a dialog in non mfc application Pin
Richard MacCutchan9-May-12 22:12
mveRichard MacCutchan9-May-12 22:12 
AnswerRe: creating a dialog in non mfc application Pin
yu-jian15-May-12 6:17
yu-jian15-May-12 6:17 
QuestionHow to realize multi progress bar show at the same time ? Pin
redleafzzh2-May-12 4:02
redleafzzh2-May-12 4:02 
Hello,
Please have a look at the code ,I can't realise the funcation.Thank you very much !


----------------------------------------------
BOOL CMultiProgressDlg::OnInitDialog()
{
.......................
hDownLoaderDlgWnd = this->m_hWnd;
...........................
}


void ShowProgress(LPVOID lpProgress)
{
CProgressCtrl *bpm_COMM= (CProgressCtrl*) GetDlgItem(hFlashDownLoaderDlgWnd,* (int*)lpProgress);

for(int i = 0; i< 100; i++)
{

bpm_COMM->SetPos(i);
Sleep(100);
}
}


void CMultiProgressDlg::OnOK()
{
// TODO: Add extra validation here



HANDLE hThrds[3];
DWORD dwThreadId[3] ;

UINT ProgressnID[3] = { IDC_PROGRESS1,IDC_PROGRESS2,IDC_PROGRESS3 } ;


for(int i = 0; i < 3; i++)
{




hThrds[i] =CreateThread(
NULL,//LPSECURITY_ATTRIBUTES lpThreadAttributes, // pointer to security attributes
0, //DWORD dwStackSize, // initial thread stack size
(LPTHREAD_START_ROUTINE)ShowProgress,// LPTHREAD_START_ROUTINE lpStartAddress,
&ProgressnID[i],
0, //DWORD dwCreationFlags,
&dwThreadId[i]);//LPDWORD lpThreadId



}

}
AnswerRe: How to realize multi progress bar show at the same time ? Pin
Richard MacCutchan2-May-12 6:28
mveRichard MacCutchan2-May-12 6:28 
AnswerRe: How to realize multi progress bar show at the same time ? Pin
Albert Holguin4-May-12 10:02
professionalAlbert Holguin4-May-12 10:02 
QuestionAsyncIO C++ Pin
TalSt29-Apr-12 0:55
TalSt29-Apr-12 0:55 
AnswerRe: AsyncIO C++ Pin
Richard MacCutchan2-May-12 6:26
mveRichard MacCutchan2-May-12 6:26 
AnswerRe: AsyncIO C++ Pin
Ashish Tyagi 4022-May-12 7:29
Ashish Tyagi 4022-May-12 7:29 
QuestionCUDA and MPI combination Pin
Ron120223-Apr-12 18:48
Ron120223-Apr-12 18:48 
Questionerror while loading shared libraries: libcudart.so.4: cannot open shared object file: No such file or directory Pin
Ron120220-Apr-12 18:48
Ron120220-Apr-12 18:48 
QuestionRe: error while loading shared libraries: libcudart.so.4: cannot open shared object file: No such file or directory Pin
Richard MacCutchan20-Apr-12 22:08
mveRichard MacCutchan20-Apr-12 22:08 
GeneralRe: error while loading shared libraries: libcudart.so.4: cannot open shared object file: No such file or directory Pin
Ron120220-Apr-12 22:16
Ron120220-Apr-12 22:16 
GeneralRe: error while loading shared libraries: libcudart.so.4: cannot open shared object file: No such file or directory Pin
Richard MacCutchan20-Apr-12 22:39
mveRichard MacCutchan20-Apr-12 22:39 
Questionhow to access the history list of CHtmlView? Pin
amwwcwujqw_18-Apr-12 23:03
amwwcwujqw_18-Apr-12 23:03 
AnswerRe: how to access the history list of CHtmlView? Pin
«_Superman_»22-Apr-12 17:38
professional«_Superman_»22-Apr-12 17:38 
QuestionTrying to take ownership of a Directory but it fails... Pin
varunpandeyengg12-Apr-12 23:32
varunpandeyengg12-Apr-12 23:32 
Questionswprintf_s procedure not find in xp Pin
vishalgpt1-Apr-12 6:09
vishalgpt1-Apr-12 6:09 
AnswerRe: swprintf_s procedure not find in xp Pin
Richard MacCutchan1-Apr-12 22:25
mveRichard MacCutchan1-Apr-12 22:25 
Questionwindow hooks and control ID Pin
daemonna28-Mar-12 5:43
daemonna28-Mar-12 5:43 
AnswerRe: window hooks and control ID Pin
«_Superman_»28-Mar-12 21:58
professional«_Superman_»28-Mar-12 21:58 

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.