Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUpdate XML file attributes using Win 32 Console Application? Pin
sharanu8-Jan-08 22:04
sharanu8-Jan-08 22:04 
AnswerRe: Update XML file attributes using Win 32 Console Application? Pin
CPallini8-Jan-08 22:10
mveCPallini8-Jan-08 22:10 
GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
sharanu8-Jan-08 23:25
sharanu8-Jan-08 23:25 
GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
CPallini8-Jan-08 23:43
mveCPallini8-Jan-08 23:43 
AnswerRe: Update XML file attributes using Win 32 Console Application? Pin
toxcct8-Jan-08 22:25
toxcct8-Jan-08 22:25 
GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
sharanu8-Jan-08 23:26
sharanu8-Jan-08 23:26 
GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
toxcct8-Jan-08 23:36
toxcct8-Jan-08 23:36 
GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
sharanu8-Jan-08 23:36
sharanu8-Jan-08 23:36 
my code is:

int main(int argc, char* argv[])
{
char strfilepath[]={"D:\\s.xml"};
char xmltag[100];
char ch;
ifstream infile(strfilepath);
if(infile)
{
cout<<"current file contents"<<endl;
while(infile.get(ch))
{
if(ch!=EOF)
{
cout.put(ch);
}
}
}
infile.close();
cout<<"Open file to append\n";
ofstream outfile(strfilepath,ios::app);
if(!outfile)
{
cout<<"Unable to open\n";
return 1;
}
cout<<"enter xml contents"<<endl;
cin>>xmltag;
outfile<<xmltag<<endl;
outfile.close();
return 1;
}

Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan

GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
toxcct8-Jan-08 23:40
toxcct8-Jan-08 23:40 
QuestionHow to get CMainFrame's handle in CFormView::OnInitialUpdate Pin
hanlei00000000098-Jan-08 21:57
hanlei00000000098-Jan-08 21:57 
AnswerRe: How to get CMainFrame's handle in CFormView::OnInitialUpdate Pin
Matthew Faithfull8-Jan-08 22:08
Matthew Faithfull8-Jan-08 22:08 
GeneralOnSize() gets called only once Pin
AbbyIndian8-Jan-08 21:14
AbbyIndian8-Jan-08 21:14 
GeneralRe: OnSize() gets called only once Pin
Cedric Moonen8-Jan-08 21:21
Cedric Moonen8-Jan-08 21:21 
GeneralRe: OnSize() gets called only once Pin
zengkun1008-Jan-08 21:32
zengkun1008-Jan-08 21:32 
GeneralRe: OnSize() gets called only once Pin
AbbyIndian8-Jan-08 22:27
AbbyIndian8-Jan-08 22:27 
GeneralRe: OnSize() gets called only once Pin
CPallini8-Jan-08 22:55
mveCPallini8-Jan-08 22:55 
GeneralRe: OnSize() gets called only once Pin
zengkun1008-Jan-08 23:03
zengkun1008-Jan-08 23:03 
GeneralRe: OnSize() gets called only once Pin
David Crow9-Jan-08 3:43
David Crow9-Jan-08 3:43 
GeneralUse ostringstream to make a string Pin
CodingLover8-Jan-08 19:54
CodingLover8-Jan-08 19:54 
GeneralRe: Use ostringstream to make a string Pin
toxcct8-Jan-08 21:22
toxcct8-Jan-08 21:22 
GeneralRe: Use ostringstream to make a string Pin
CodingLover8-Jan-08 21:53
CodingLover8-Jan-08 21:53 
GeneralRe: Use ostringstream to make a string [modified] Pin
CPallini8-Jan-08 22:06
mveCPallini8-Jan-08 22:06 
GeneralRe: Use ostringstream to make a string Pin
CodingLover8-Jan-08 22:26
CodingLover8-Jan-08 22:26 
QuestionA question about SendMessage and PostMessage Pin
zengkun1008-Jan-08 19:50
zengkun1008-Jan-08 19:50 
GeneralRe: A question about SendMessage and PostMessage Pin
Cedric Moonen8-Jan-08 20:11
Cedric Moonen8-Jan-08 20:11 

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.