I've never done this but have you tried:

char * temp[3];
        
        temp[0]="1111";       //voice
        temp[1]="2222";       //fax
        temp[2]="3333";       //mobile phone



Michal Seliga wrote:
hi

i create vcard in my application using pdi library and use exchange manager
tosend this vcard locally to addressbook

everything seems to be fine, problem is with phone numbers

my test code looks like this:

        ...i open exgsocket, init pdi library, etc
        ...i add all fields i need to set, name, version, adress...

        char temp[3];
        
        temp[0]="1111";       //voice
        temp[0]="2222";       //fax
        temp[0]="3333";       //mobile phone

        PdiWriteProperty(libref,writer,kPdiPRN_TEL);

        PdiWriteParameter(libref,writer,kPdiPAV_TYPE_VOICE,false);
        PdiWriteParameter(libref,writer,kPdiPAV_TYPE_FAX,false);
        PdiWriteParameter(libref,writer,kPdiPAV_TYPE_CELL,false);
        
        err=PdiWritePropertyFields(libref,writer,temp,3,kPdiWriteText);

        ...
        data are succesfuly sent to adressbook and accepted


now when i look to address application everything seems to be filled correctly
but phone. i addres application i see from all phones only fax number which is
111122223333

according to documentation this what i write is correct way to fill data. what
am i doing incorrectly? should i use PdiWritePropertyStr and create string
manually? i don't like the idea...

i hope someone can help me, thanks in advance

ms


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to