Posted: Sun Sep 01, 2002 2:16 am
Restored from previous forum. Originally posted by DemonHell.
I was pratting about with the Expat DLL the other day, but ran into a problem when it came to writing my own callbacks/element handlers..
According to the Expat docs you just tell XML the address of the procedure (just like setting up a window callback).
But the big problem is my element handler crashing the program.
I think I`ve narrowed it down to the way PB gets arguements for procedures
(just by the way my prog doesn`t crash if my procedure doesn`t take any arguements)
The handler should start of with this (in C)
typedef void
(*XML_StartElementHandler)(void *userData,
const XML_Char *name,
const XML_Char **atts);
Any ideas? or have I just missed the blooming obvious?
I was pratting about with the Expat DLL the other day, but ran into a problem when it came to writing my own callbacks/element handlers..
According to the Expat docs you just tell XML the address of the procedure (just like setting up a window callback).
But the big problem is my element handler crashing the program.
I think I`ve narrowed it down to the way PB gets arguements for procedures
(just by the way my prog doesn`t crash if my procedure doesn`t take any arguements)
The handler should start of with this (in C)
typedef void
(*XML_StartElementHandler)(void *userData,
const XML_Char *name,
const XML_Char **atts);
Any ideas? or have I just missed the blooming obvious?