Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: My MFC Application Takes 100% of CPU that i viewed from the TASK MANAGER.What is the Reason the Application Takes 100 % of the CPU? Pin
David Crow29-Aug-06 3:55
David Crow29-Aug-06 3:55 
AnswerRe: My MFC Application Takes 100% of CPU that i viewed from the TASK MANAGER.What is the Reason the Application Takes 100 % of the CPU? Pin
Nibu babu thomas29-Aug-06 3:21
Nibu babu thomas29-Aug-06 3:21 
AnswerRe: My MFC Application Takes 100% of CPU that i viewed from the TASK MANAGER.What is the Reason the Application Takes 100 % of the CPU? Pin
Marc Soleda29-Aug-06 3:33
Marc Soleda29-Aug-06 3:33 
AnswerRe: My MFC Application Takes 100% of CPU that i viewed from the TASK MANAGER.What is the Reason the Application Takes 100 % of the CPU? Pin
normanS30-Aug-06 1:02
normanS30-Aug-06 1:02 
QuestionDisable / Hide a list control Pin
RajiRaghu29-Aug-06 1:41
RajiRaghu29-Aug-06 1:41 
AnswerRe: Disable / Hide a list control Pin
Hamid_RT29-Aug-06 1:50
Hamid_RT29-Aug-06 1:50 
AnswerRe: Disable / Hide a list control Pin
Nibu babu thomas29-Aug-06 3:27
Nibu babu thomas29-Aug-06 3:27 
QuestionHave a problem with CFileDialog [modified] Pin
m1m229-Aug-06 1:11
m1m229-Aug-06 1:11 
Hi.
I write one application
i have one button(browse) when click on it, it call CFileDialog.DoModal().
When user chose a file, the dialog thake the name and call to save it to another file

void CRgnDoc::MyFileSaveFunction(int i,CString filename)
{
m_iStart=i; //int
m_strSongPath=filename; //CString - separate string and save like
//integer
OnSaveDocument("OneClock.one");
}

my Serialize function look like this


void CRgnDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{ // storing code
int i;
i=m_strSongPath.GetLength();
ar<<i;
for="" (int="" j="0;j<i;j++)
" {
="" int="" k="m_strSongPath.GetAt(j);
" trace("%c",k);
="" afxmessagebox("asw");
="" ar<<k;=""
="" }
="" ar<<m_istart;
="" else
="" {="" loading="" code
="" i,ch;
="" ar="">>i;
for (int j=0;j<i;j++) {
="" ar="">>ch;
m_strSongPath=m_strSongPath+(char)ch;
// TRACE("%c",ch);
// AfxMessageBox("asw");
}
ar>>m_iStart;
}
}


when call
MyFileSaveFunction(), Serizlize() don't want to save my file
byt if i call MyFileSaveFunction(4,"test") withought call CFileDalog befor that it work correct and everithing is save

Meto


-- modified at 7:19 Tuesday 29th August, 2006
AnswerRe: Have a problem with CFileDialog Pin
Rage29-Aug-06 1:34
professionalRage29-Aug-06 1:34 
AnswerRe: Have a problem with CFileDialog Pin
m1m229-Aug-06 3:17
m1m229-Aug-06 3:17 
AnswerRe: Have a problem with CFileDialog Pin
David Crow29-Aug-06 3:52
David Crow29-Aug-06 3:52 
Questionhow to multiply mx n matrix to nx1 matrix Pin
raj_2nice4u29-Aug-06 0:53
raj_2nice4u29-Aug-06 0:53 
AnswerRe: how to multiply mx n matrix to nx1 matrix Pin
David Crow29-Aug-06 4:21
David Crow29-Aug-06 4:21 
AnswerRe: how to multiply mx n matrix to nx1 matrix Pin
El Corazon29-Aug-06 4:45
El Corazon29-Aug-06 4:45 
QuestionWhole Operating system is getting hanged. Pin
chakor12328-Aug-06 23:40
chakor12328-Aug-06 23:40 
AnswerRe: Whole Operating system is getting hanged. Pin
Waldermort29-Aug-06 0:05
Waldermort29-Aug-06 0:05 
AnswerRe: Whole Operating system is getting hanged. Pin
toxcct29-Aug-06 0:07
toxcct29-Aug-06 0:07 
AnswerRe: Whole Operating system is getting hanged. Pin
chakor12329-Aug-06 0:40
chakor12329-Aug-06 0:40 
QuestionRe: Whole Operating system is getting hanged. Pin
chakor12329-Aug-06 0:42
chakor12329-Aug-06 0:42 
AnswerRe: Whole Operating system is getting hanged. Pin
Rage29-Aug-06 1:30
professionalRage29-Aug-06 1:30 
GeneralRe: Whole Operating system is getting hanged. Pin
toxcct29-Aug-06 2:19
toxcct29-Aug-06 2:19 
GeneralRe: Whole Operating system is getting hanged. Pin
Rage29-Aug-06 2:23
professionalRage29-Aug-06 2:23 
AnswerRe: Whole Operating system is getting hanged. Pin
Hamid_RT30-Aug-06 7:54
Hamid_RT30-Aug-06 7:54 
QuestionNetValidateName() Issue?? Pin
Programm3r28-Aug-06 22:52
Programm3r28-Aug-06 22:52 
AnswerRe: NetValidateName() Issue?? Pin
Programm3r28-Aug-06 23:42
Programm3r28-Aug-06 23:42 

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.