Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do I Register an OCX as Part Of a Deployment Project? Pin
Sarvan AL11-Jan-06 22:15
Sarvan AL11-Jan-06 22:15 
QuestionConverting text file to xml Pin
c0711-Jan-06 5:45
c0711-Jan-06 5:45 
AnswerRe: Converting text file to xml Pin
LCI11-Jan-06 8:52
LCI11-Jan-06 8:52 
GeneralRe: Converting text file to xml Pin
Maximilien11-Jan-06 8:57
Maximilien11-Jan-06 8:57 
AnswerRe: Converting text file to xml Pin
Maximilien11-Jan-06 9:43
Maximilien11-Jan-06 9:43 
GeneralRe: Converting text file to xml Pin
c0711-Jan-06 13:59
c0711-Jan-06 13:59 
AnswerRe: Converting text file to xml Pin
Stephen Hewitt11-Jan-06 20:41
Stephen Hewitt11-Jan-06 20:41 
AnswerRe: Converting text file to xml Pin
FarPointer12-Jan-06 4:11
FarPointer12-Jan-06 4:11 
HI ,
You can open any xml file in the text mode see the tag representation and then open your file in append mode and move in and place those tag there ,only the header needs to be fixed all the other tag can be any format(of your name) ,this is the raw way of converting it into xml format.

For example to add the header i will do something like this :-

<code>int CXmlWrite::AddHeader(CString& sHeader )
{
CString sAddHeader,sAddHeader1;
m_sHeader = sHeader;//store it needed for closing
sAddHeader.Format("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
m_fXmlWrite<<sAddHeader<<endl;
sAddHeader1.Format ("<%s>",sHeader);
m_fXmlWrite<<sAddHeader1<<endl;
return 1; // the count of numbers addedas header
}</code>

// this you need to place above between the inverted commas
//"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"

Hope it solves your problem
Regards
FarPointer.

-- modified at 10:16 Thursday 12th January, 2006
AnswerRe: Converting text file to xml Pin
c0712-Jan-06 16:14
c0712-Jan-06 16:14 
QuestionHow to dynamically retrieve ODBC parameters through code? Pin
Priya..k11-Jan-06 5:08
Priya..k11-Jan-06 5:08 
AnswerRe: How to dynamically retrieve ODBC parameters through code? Pin
Koushik Biswas11-Jan-06 16:10
Koushik Biswas11-Jan-06 16:10 
GeneralRe: How to dynamically retrieve ODBC parameters through code? Pin
Priya..k11-Jan-06 22:23
Priya..k11-Jan-06 22:23 
AnswerRe: How to dynamically retrieve ODBC parameters through code? Pin
Koushik Biswas12-Jan-06 5:48
Koushik Biswas12-Jan-06 5:48 
QuestionSerial Presence Detect Pin
André Ziegler11-Jan-06 4:46
André Ziegler11-Jan-06 4:46 
QuestionIStream class Pin
LCI11-Jan-06 4:17
LCI11-Jan-06 4:17 
AnswerRe: IStream class Pin
Stephen Hewitt11-Jan-06 15:28
Stephen Hewitt11-Jan-06 15:28 
QuestionDigital I/O and ActiveX Pin
sweep12311-Jan-06 3:57
sweep12311-Jan-06 3:57 
AnswerRe: Digital I/O and ActiveX Pin
James R. Twine11-Jan-06 5:15
James R. Twine11-Jan-06 5:15 
QuestionSinh Calculator Pin
Dylan06038811-Jan-06 3:42
Dylan06038811-Jan-06 3:42 
AnswerRe: Sinh Calculator Pin
Russell'11-Jan-06 4:17
Russell'11-Jan-06 4:17 
GeneralRe: Sinh Calculator Pin
Russell'11-Jan-06 4:38
Russell'11-Jan-06 4:38 
AnswerRe: Sinh Calculator Pin
Prakash Nadar11-Jan-06 4:39
Prakash Nadar11-Jan-06 4:39 
JokeRe: Sinh Calculator Pin
Eytukan11-Jan-06 4:49
Eytukan11-Jan-06 4:49 
GeneralRe: Sinh Calculator Pin
toxcct11-Jan-06 6:21
toxcct11-Jan-06 6:21 
GeneralRe: Sinh Calculator Pin
Eytukan11-Jan-06 20:02
Eytukan11-Jan-06 20:02 

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.