Click here to Skip to main content
16,017,954 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Calculating an angle of a line Pin
super1-Jun-05 20:47
professionalsuper1-Jun-05 20:47 
GeneralRe: Calculating an angle of a line Pin
NeverFall1-Jun-05 22:11
NeverFall1-Jun-05 22:11 
GeneralCGdiObject::CreateStockObject Pin
Stlan1-Jun-05 19:26
Stlan1-Jun-05 19:26 
GeneralRe: CGdiObject::CreateStockObject Pin
super1-Jun-05 20:50
professionalsuper1-Jun-05 20:50 
GeneralRe: CGdiObject::CreateStockObject Pin
HumanOsc1-Jun-05 21:38
HumanOsc1-Jun-05 21:38 
GeneralRe: CGdiObject::CreateStockObject Pin
super1-Jun-05 21:46
professionalsuper1-Jun-05 21:46 
GeneralRe: CGdiObject::CreateStockObject Pin
Stlan1-Jun-05 22:09
Stlan1-Jun-05 22:09 
QuestionHow Can I add Random Mode? Pin
Keitaro211-Jun-05 19:06
Keitaro211-Jun-05 19:06 
I'm making mpegPlayer.
but I cannot add random mode.
when i check random and play music.
'stack overflow' happen and go debug mode.
and No check on Repeat, Random next button clicked random mode has start
What is missing my program?

this is OnNext() -> when i next button clicked has happen
OnNext()
{
srand((unsigned)time(NULL));
int m_nPlayIndexTemp;
int nCount = theApp.GetMainDlg()->m_pDlg_PlayList->m_PlayList.GetCount();


if( theApp.GetMainDlg()->m_pDlg_PlayList==NULL)
return;

if( m_nPlayIndex > theApp.GetMainDlg()->m_pDlg_PlayList->m_PlayList.GetCount()-1 )
m_nPlayIndex = 0;

if( m_bRandom = true )
{
m_nPlayIndexTemp = rand()%theApp.GetMainDlg()->m_pDlg_PlayList->m_PlayList.GetCount();

if( m_nPlayIndexTemp != m_nPlayIndex )
{
m_nPlayIndex = m_nPlayIndexTemp;
}
else
{
OnNext();
}
}
else if ( (m_bRepeat = true && m_nPlayIndex) == nCount )
{
m_nPlayIndex = 0;
}

else if( ((m_bRepeat = false)&&(m_bRandom = false)) == true )
{
m_nPlayIndex++;
}

OnPlay();
}


----------------Please help me!!---------------------------
When you need all source.
Please reply and write your e-mail
AnswerRe: How Can I add Random Mode? Pin
Cedric Moonen1-Jun-05 21:17
Cedric Moonen1-Jun-05 21:17 
GeneralRe: How Can I add Random Mode? Pin
recoup_this2-Jun-05 2:24
recoup_this2-Jun-05 2:24 
Questionis it possible to know which disc inserted to dvd-r drive? Pin
baboguru1-Jun-05 18:59
baboguru1-Jun-05 18:59 
AnswerRe: is it possible to know which disc inserted to dvd-r drive? Pin
kakan2-Jun-05 3:24
professionalkakan2-Jun-05 3:24 
GeneralCOM Exe Link error Pin
VCSharp0071-Jun-05 18:07
VCSharp0071-Jun-05 18:07 
GeneralRe: COM Exe Link error Pin
Christian Graus1-Jun-05 18:16
protectorChristian Graus1-Jun-05 18:16 
GeneralRe: COM Exe Link error Pin
VCSharp0071-Jun-05 21:00
VCSharp0071-Jun-05 21:00 
GeneralRe: COM Exe Link error Pin
NormDroid1-Jun-05 23:23
professionalNormDroid1-Jun-05 23:23 
GeneralRe: COM Exe Link error Pin
VCSharp0072-Jun-05 3:13
VCSharp0072-Jun-05 3:13 
GeneralHi All Pin
Sreekanth Muralidharan1-Jun-05 18:01
Sreekanth Muralidharan1-Jun-05 18:01 
GeneralRe: Hi All Pin
ThatsAlok1-Jun-05 19:18
ThatsAlok1-Jun-05 19:18 
GeneralAbout <b>FindFirstChangeNotification</b> and <b>ReadDirectoryChangeW</b> Pin
a_du1-Jun-05 16:31
a_du1-Jun-05 16:31 
GeneralRe: About <b>FindFirstChangeNotification</b> and <b>ReadDirectoryChangeW</b> Pin
ThatsAlok1-Jun-05 18:51
ThatsAlok1-Jun-05 18:51 
GeneralRe: About <b>FindFirstChangeNotification</b> and <b>ReadDirectoryChangeW</b> Pin
a_du1-Jun-05 23:41
a_du1-Jun-05 23:41 
GeneralRe: About <b>FindFirstChangeNotification</b> and <b>ReadDirectoryChangeW</b> Pin
ThatsAlok1-Jun-05 23:55
ThatsAlok1-Jun-05 23:55 
GeneralRe: About <b>FindFirstChangeNotification</b> and <b>ReadDirectoryChangeW</b> Pin
S. Senthil Kumar1-Jun-05 23:45
S. Senthil Kumar1-Jun-05 23:45 
GeneralRe: About <b>FindFirstChangeNotification</b> and <b>ReadDirectoryChangeW</b> Pin
ThatsAlok1-Jun-05 23:57
ThatsAlok1-Jun-05 23:57 

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.