Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Parsing in C Pin
Chris Meech27-Jan-12 8:57
Chris Meech27-Jan-12 8:57 
GeneralRe: Parsing in C Pin
Software200727-Jan-12 9:09
Software200727-Jan-12 9:09 
GeneralRe: Parsing in C Pin
Chris Meech27-Jan-12 9:28
Chris Meech27-Jan-12 9:28 
GeneralRe: Parsing in C Pin
CPallini28-Jan-12 23:03
mveCPallini28-Jan-12 23:03 
GeneralRe: Parsing in C Pin
Erudite_Eric29-Jan-12 21:10
Erudite_Eric29-Jan-12 21:10 
AnswerRe: Parsing in C Pin
David Crow27-Jan-12 9:38
David Crow27-Jan-12 9:38 
GeneralRe: Parsing in C Pin
Software200727-Jan-12 9:52
Software200727-Jan-12 9:52 
GeneralRe: Parsing in C Pin
David Crow27-Jan-12 10:09
David Crow27-Jan-12 10:09 
const char *pszSource = "<xyz>texttext2<h>header</h></xyz>";
char szDest[128] = { '\0' };
int x = 0;

while (pszSource && *pszSource != '\0')
{
    // you'll need to put some conditions here to detect tags
    szDest[x] = *pszSource;
    x++;
    pszSource++;
}

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous



modified 27-Jan-12 16:38pm.

Questionread/write disk sectors Pin
RomTibi27-Jan-12 7:21
RomTibi27-Jan-12 7:21 
QuestionProcess not entirely exiting Pin
Joe Woodbury27-Jan-12 5:49
professionalJoe Woodbury27-Jan-12 5:49 
AnswerRe: Process not entirely exiting Pin
Randor 27-Jan-12 6:33
professional Randor 27-Jan-12 6:33 
QuestionSet the font for text Pin
MKC00226-Jan-12 18:05
MKC00226-Jan-12 18:05 
QuestionRe: Set the font for text Pin
«_Superman_»26-Jan-12 18:36
professional«_Superman_»26-Jan-12 18:36 
AnswerRe: Set the font for text Pin
MKC00226-Jan-12 20:41
MKC00226-Jan-12 20:41 
GeneralRe: Set the font for text Pin
«_Superman_»26-Jan-12 20:48
professional«_Superman_»26-Jan-12 20:48 
GeneralRe: Set the font for text Pin
MKC00227-Jan-12 7:45
MKC00227-Jan-12 7:45 
GeneralRe: Set the font for text Pin
MKC00227-Jan-12 8:44
MKC00227-Jan-12 8:44 
QuestionMemory increase in List Control Pin
VCProgrammer26-Jan-12 18:03
VCProgrammer26-Jan-12 18:03 
AnswerRe: Memory increase in List Control Pin
Mohibur Rashid26-Jan-12 19:34
professionalMohibur Rashid26-Jan-12 19:34 
QuestionCString::Find problem Pin
ForNow26-Jan-12 17:19
ForNow26-Jan-12 17:19 
AnswerRe: CString::Find problem Pin
Peter_in_278026-Jan-12 17:59
professionalPeter_in_278026-Jan-12 17:59 
GeneralRe: CString::Find problem Pin
ForNow26-Jan-12 19:26
ForNow26-Jan-12 19:26 
AnswerRe: CString::Find problem Pin
«_Superman_»26-Jan-12 18:56
professional«_Superman_»26-Jan-12 18:56 
QuestionMember to pointer as template argument Pin
LionAM25-Jan-12 10:44
LionAM25-Jan-12 10:44 
AnswerRe: Member to pointer as template argument Pin
Albert Holguin25-Jan-12 13:44
professionalAlbert Holguin25-Jan-12 13:44 

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.