Click here to Skip to main content
15,905,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to change position of propertysheet? Pin
prasad_som18-May-07 0:47
prasad_som18-May-07 0:47 
GeneralRe: How to change position of propertysheet? Pin
Rajesh R Subramanian18-May-07 0:53
professionalRajesh R Subramanian18-May-07 0:53 
GeneralRe: How to change position of propertysheet? Pin
James R. Twine18-May-07 2:10
James R. Twine18-May-07 2:10 
GeneralRe: How to change position of propertysheet? Pin
prasad_som18-May-07 2:15
prasad_som18-May-07 2:15 
GeneralRe: How to change position of propertysheet? [modified] Pin
James R. Twine18-May-07 2:05
James R. Twine18-May-07 2:05 
QuestionCDateTimeCtrl::GetTime() what it return? UTC or something else? Pin
brakeshbaldhab17-May-07 23:59
brakeshbaldhab17-May-07 23:59 
AnswerRe: CDateTimeCtrl::GetTime() what it return? UTC or something else? Pin
led mike18-May-07 4:20
led mike18-May-07 4:20 
Questionint CString::Find() Pin
Immunity1817-May-07 23:28
Immunity1817-May-07 23:28 
goodmorning i am trying to type a fuction that it return me how many times a str exist in a line .Christian told me to work with CString Find but i have some problems here :/

Problem is, i think ,my while loop is wrong and my program becomes (Not Responding)

int CInfoRecoverDlg::Compare( CString line , CString str2)
{
int nCount = 0;
for (int i = 0 ; i < line.GetLength() ; i++)
{
while ( line.Find(str2,i+1)!= -1 )
{
nCount = nCount +1;
}
}
return nCount ;
}

void CInfoRecoverDlg::OnButton1()
{
CString str = "yes";
CString line = "yes i said yes , yes ";
int nCount;

nCount = Compare( line , str);
AfxMessageBox(""+nCount);
}
AnswerRe: int CString::Find() Pin
prasad_som17-May-07 23:58
prasad_som17-May-07 23:58 
AnswerRe: int CString::Find() Pin
Hamid_RT18-May-07 0:33
Hamid_RT18-May-07 0:33 
QuestionON_NOTIFY_RANGE problem! Pin
TPN17-May-07 22:52
TPN17-May-07 22:52 
AnswerRe: ON_NOTIFY_RANGE problem! Pin
kanduripavan17-May-07 23:10
kanduripavan17-May-07 23:10 
AnswerRe: ON_NOTIFY_RANGE problem! Pin
Roger Stoltz17-May-07 23:11
Roger Stoltz17-May-07 23:11 
GeneralRe: ON_NOTIFY_RANGE problem! Pin
TPN18-May-07 0:28
TPN18-May-07 0:28 
GeneralRe: ON_NOTIFY_RANGE problem! Pin
Roger Stoltz18-May-07 0:52
Roger Stoltz18-May-07 0:52 
GeneralRe: ON_NOTIFY_RANGE problem! Pin
James R. Twine18-May-07 2:20
James R. Twine18-May-07 2:20 
GeneralRe: ON_NOTIFY_RANGE problem! Pin
Roger Stoltz18-May-07 2:26
Roger Stoltz18-May-07 2:26 
GeneralRe: ON_NOTIFY_RANGE problem! Pin
James R. Twine18-May-07 2:55
James R. Twine18-May-07 2:55 
QuestionWriting on CD/DVD Pin
josip cagalj17-May-07 22:47
josip cagalj17-May-07 22:47 
AnswerRe: Writing on CD/DVD Pin
Hamid_RT18-May-07 0:20
Hamid_RT18-May-07 0:20 
AnswerRe: Writing on CD/DVD Pin
kakan18-May-07 0:42
professionalkakan18-May-07 0:42 
GeneralRe: Writing on CD/DVD Pin
josip cagalj21-May-07 0:04
josip cagalj21-May-07 0:04 
GeneralRe: Writing on CD/DVD Pin
kakan21-May-07 0:58
professionalkakan21-May-07 0:58 
GeneralRe: Writing on CD/DVD Pin
josip cagalj21-May-07 1:13
josip cagalj21-May-07 1:13 
QuestionDynamic Reporting using Crystal Reports Pin
ksandy4517-May-07 21:52
ksandy4517-May-07 21:52 

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.