Click here to Skip to main content
16,004,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multithreaded App Pin
Manmohan2914-Oct-09 5:55
Manmohan2914-Oct-09 5:55 
Questionresolving link error LNK1241 Pin
KASR113-Oct-09 19:40
KASR113-Oct-09 19:40 
AnswerRe: resolving link error LNK1241 Pin
David Crow14-Oct-09 2:40
David Crow14-Oct-09 2:40 
QuestionCursor in edit box Pin
sonualex13-Oct-09 18:53
sonualex13-Oct-09 18:53 
AnswerRe: Cursor in edit box Pin
David Crow14-Oct-09 2:23
David Crow14-Oct-09 2:23 
GeneralRe: Cursor in edit box Pin
sonualex14-Oct-09 3:32
sonualex14-Oct-09 3:32 
GeneralRe: Cursor in edit box Pin
David Crow14-Oct-09 3:39
David Crow14-Oct-09 3:39 
GeneralRe: Cursor in edit box Pin
sonualex14-Oct-09 20:46
sonualex14-Oct-09 20:46 
thanks again david..

lemme make it some more clear now.. i have already assigned the member variable to CString and iam appending the text to another CString...
i tried ur method but den realised the above mentioned pblm.. how can i solve that....
iam putting my piece of code for saving the text here.. plz do check...

void CNoteDlg::OnSave()
{
UpdateData(TRUE);

static char BASED_CODE szFilter[] = "Text files (*.txt)|*.txt||";

char nextline[3];
nextline[0] = 0x0D;
nextline[1] = 0x0A;
nextline[2] = 00;

CString S1;

CFile flEdit;

CFileDialog FileDlg(FALSE, ".txt","Prioritynotes",
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, szFilter);

if( FileDlg.DoModal() == IDOK )
{
if( flEdit.Open(FileDlg.GetFileName(), CFile::modeCreate | CFile::modeWrite) == FALSE )
return;



S1 += "Critical****";
S1 += nextline;
S1 += "--------------------------";
S1 += nextline;
S1 += m_sedit1;
S1 += nextline;
S1 += nextline;

S1 += "Important***";
S1 += nextline;
S1 += "--------------------------";
S1 += nextline;
S1 += m_sedit2;
S1 += nextline;
S1 += nextline;

S1 += "Less Important**";
S1 += nextline;
S1 += "--------------------------";
S1 += nextline;
S1 += m_sedit3;
S1 += nextline;
S1 += nextline;


S1 += "Normal*";
S1 += nextline;
S1 += "--------------------------";
S1 += nextline;
S1 += m_sedit4;
S1 += nextline;


flEdit.Write(S1.GetBuffer(S1.GetLength()), S1.GetLength());

flEdit.Close();
}
else
return;

}
QuestionRe: Cursor in edit box Pin
David Crow15-Oct-09 3:00
David Crow15-Oct-09 3:00 
AnswerRe: Cursor in edit box Pin
sonualex15-Oct-09 3:32
sonualex15-Oct-09 3:32 
AnswerRe: Cursor in edit box Pin
David Crow15-Oct-09 4:10
David Crow15-Oct-09 4:10 
GeneralRe: Cursor in edit box Pin
sonualex15-Oct-09 22:38
sonualex15-Oct-09 22:38 
GeneralRe: Cursor in edit box Pin
David Crow16-Oct-09 2:34
David Crow16-Oct-09 2:34 
GeneralRe: Cursor in edit box Pin
sonualex21-Oct-09 0:26
sonualex21-Oct-09 0:26 
QuestionRe: Cursor in edit box Pin
David Crow21-Oct-09 2:29
David Crow21-Oct-09 2:29 
AnswerRe: Cursor in edit box Pin
sonualex21-Oct-09 19:24
sonualex21-Oct-09 19:24 
QuestionRe: Cursor in edit box Pin
David Crow22-Oct-09 2:41
David Crow22-Oct-09 2:41 
AnswerRe: Cursor in edit box Pin
sonualex26-Oct-09 1:54
sonualex26-Oct-09 1:54 
AnswerRe: Cursor in edit box Pin
David Crow26-Oct-09 3:05
David Crow26-Oct-09 3:05 
GeneralRe: Cursor in edit box Pin
sonualex26-Oct-09 19:42
sonualex26-Oct-09 19:42 
GeneralRe: Cursor in edit box Pin
sonualex26-Oct-09 19:43
sonualex26-Oct-09 19:43 
QuestionVisual Studio 2008 Setup Project Question ? Pin
ERLN13-Oct-09 18:16
ERLN13-Oct-09 18:16 
QuestionDDX_CONTROL vs Create for Cricheditctrl and effects on Streaming Pin
ForNow13-Oct-09 13:47
ForNow13-Oct-09 13:47 
AnswerRe: DDX_CONTROL vs Create for Cricheditctrl and effects on Streaming Pin
Code-o-mat13-Oct-09 20:50
Code-o-mat13-Oct-09 20:50 
GeneralRe: DDX_CONTROL vs Create for Cricheditctrl and effects on Streaming Pin
ForNow14-Oct-09 3:34
ForNow14-Oct-09 3:34 

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.