[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vCalender API question
Since you are getting the string as a unicode string, there will be '\0'
characters embedded in it for all the standard ascii characters. I would
suggest using fakeCString() to get an ascii string then print that out.
barring that, change the while loop to loop until it encounters two '\0'
characters in a row, I believe that is the string terminating delimeter
On Mon, 19 Apr 1999, Praveen Gopinath wrote:
> void do_Event(VObject* prop)
> const wchar_t* event= vObjectUStringZValue(prop);
> FILE* fp = fopen("v_event.a", "w");
> int i = 0;
> while( *event != '\0')
> fprintf(fp, "%c", *event++);
> This function gets called once we find that there exists
> an event in the vcf file. I am hitting an illegal instruction
> error in this function.
> Could someone help me with this?
> Get Your Private, Free Email at http://www.hotmail.com