Click here to Skip to main content
14,773,938 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: generate the .H file from COM Pin
MrKBA14-May-12 3:02
MemberMrKBA14-May-12 3:02 
AnswerRe: generate the .H file from COM Pin
Pete O'Hanlon14-May-12 3:08
mvePete O'Hanlon14-May-12 3:08 
GeneralRe: generate the .H file from COM Pin
MrKBA14-May-12 3:51
MemberMrKBA14-May-12 3:51 
GeneralRe: generate the .H file from COM Pin
Pete O'Hanlon14-May-12 3:55
mvePete O'Hanlon14-May-12 3:55 
Questioncreating a dialog in non mfc application Pin
Rajeev.Goutham9-May-12 21:42
MemberRajeev.Goutham9-May-12 21:42 
AnswerRe: creating a dialog in non mfc application Pin
Richard MacCutchan9-May-12 23:12
mveRichard MacCutchan9-May-12 23:12 
AnswerRe: creating a dialog in non mfc application Pin
yu-jian15-May-12 7:17
Memberyu-jian15-May-12 7:17 
QuestionHow to realize multi progress bar show at the same time ? Pin
redleafzzh2-May-12 5:02
Memberredleafzzh2-May-12 5: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 7:28
mveRichard MacCutchan2-May-12 7:28 
AnswerRe: How to realize multi progress bar show at the same time ? Pin
Albert Holguin4-May-12 11:02
professionalAlbert Holguin4-May-12 11:02 
QuestionAsyncIO C++ Pin
TalSt29-Apr-12 1:55
MemberTalSt29-Apr-12 1:55 
AnswerRe: AsyncIO C++ Pin
Richard MacCutchan2-May-12 7:26
mveRichard MacCutchan2-May-12 7:26 
AnswerRe: AsyncIO C++ Pin
Ashish Tyagi 4022-May-12 8:29
MemberAshish Tyagi 4022-May-12 8:29 
QuestionCUDA and MPI combination Pin
Ron120223-Apr-12 19:48
MemberRon120223-Apr-12 19:48 
Questionerror while loading shared libraries: libcudart.so.4: cannot open shared object file: No such file or directory Pin
Ron120220-Apr-12 19:48
MemberRon120220-Apr-12 19: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 23:08
mveRichard MacCutchan20-Apr-12 23:08 
GeneralRe: error while loading shared libraries: libcudart.so.4: cannot open shared object file: No such file or directory Pin
Ron120220-Apr-12 23:16
MemberRon120220-Apr-12 23: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 23:39
mveRichard MacCutchan20-Apr-12 23:39 
Questionhow to access the history list of CHtmlView? Pin
amwwcwujqw_19-Apr-12 0:03
Memberamwwcwujqw_19-Apr-12 0:03 
AnswerRe: how to access the history list of CHtmlView? Pin
«_Superman_»22-Apr-12 18:38
professional«_Superman_»22-Apr-12 18:38 
QuestionTrying to take ownership of a Directory but it fails... Pin
varunpandeyengg13-Apr-12 0:32
Membervarunpandeyengg13-Apr-12 0:32 
Questionswprintf_s procedure not find in xp Pin
vishalgpt1-Apr-12 7:09
Membervishalgpt1-Apr-12 7:09 
AnswerRe: swprintf_s procedure not find in xp Pin
Richard MacCutchan1-Apr-12 23:25
mveRichard MacCutchan1-Apr-12 23:25 
Questionwindow hooks and control ID Pin
daemonna28-Mar-12 6:43
Memberdaemonna28-Mar-12 6:43 
AnswerRe: window hooks and control ID Pin
«_Superman_»28-Mar-12 22:58
professional«_Superman_»28-Mar-12 22: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.