locked
How to send vcard by sms? RRS feed

  • Question

  • In my way, I use the following contents as the sms's contents to send sms.   There are some Chinese characters.  The phone used is windows mobile phone.

    We received the sms in vcard mode.  But the Name field is not right in vcard.  It is Garbled.  It's right when  the contents are English characters.

      //SCKL23F4
      BEGIN:VCARD
      VERSION:2.1
      N;CHARSET=GB2312:美国4;;;;
      FN;CHARSET=GB2312:  美国4
      TEL;WORK;VOICE:120
      TEL;CELL;VOICE:15990006194
      END


    The UTF-8 is the same result.  

    Is there another way to send vcard?

     Can anybody  help me? Thanks very much.

    http://album.hi.csdn.net/app_uploads/nihao38/20090721/170830705.p.jpg?d=20090721170948189
    Tuesday, September 22, 2009 9:38 AM

Answers

  • Hi ahao266,


    We can use WapSend method to send custom data to other Mobile, see below to see detailed parameter of the function:
    HRESULT WapSend(
      const WAP_HANDLE whHandle,
      WAP_PRIMITIVE_BASE* const pwpbPrimitive 
    );

    Parameters

    whHandle
    [in] The WAP handle retrieved by the WapOpen function.
    pwpbPrimitive
    [in] Pointer to a WAP_PRIMITIVE_BASE structure containing the packet to send. All PDUs are derived from the WAP_PRIMITIVE_BASE structure.


    PwpbPrimitive parameter can take a custom data, here we can pass vCard data in the argument. For detailed steps and code, please refer to the SDK sample named WDP:
    D:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP\Win32\WDP


    Best regards,
    Guang-Ming Bian - MSFT
    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Thursday, September 24, 2009 11:06 AM

All replies

  • Is there any way to send vcard?

    Wednesday, September 23, 2009 12:43 AM
  • Can anybody  help me?
    Thursday, September 24, 2009 2:20 AM
  • Hi ahao266,


    We can use WapSend method to send custom data to other Mobile, see below to see detailed parameter of the function:
    HRESULT WapSend(
      const WAP_HANDLE whHandle,
      WAP_PRIMITIVE_BASE* const pwpbPrimitive 
    );

    Parameters

    whHandle
    [in] The WAP handle retrieved by the WapOpen function.
    pwpbPrimitive
    [in] Pointer to a WAP_PRIMITIVE_BASE structure containing the packet to send. All PDUs are derived from the WAP_PRIMITIVE_BASE structure.


    PwpbPrimitive parameter can take a custom data, here we can pass vCard data in the argument. For detailed steps and code, please refer to the SDK sample named WDP:
    D:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP\Win32\WDP


    Best regards,
    Guang-Ming Bian - MSFT
    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Thursday, September 24, 2009 11:06 AM
  • Thanks for your reply.  I'm busy now and the next server days that I have no time to attemp it.

    When I got time to deal with it,  I will provide the answer that I had tryed.

    Thanks very much.  I will attemp it as quickly as possible.


    Monday, September 28, 2009 4:05 AM
  • what are the contents of the Wdpunitdata.pbUserData?
    Can you give me a sample?
    I had tried it several times.
    Thursday, November 19, 2009 2:08 AM
  • Hi ahao266,

    Please refer to sample:
    D:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP\Win32\WDP



    Best regards,
    Guang-Ming Bian - MSFT
    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Thursday, November 19, 2009 8:07 AM
  • I had referd the sample:
        D:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP\Win32\WDP

    what are the contents of the Wdpunitdata.pbUserData?
    Can you give me a sample?
    I had tried it several times.

    I can not see what this sample can do.


    Thursday, November 19, 2009 9:13 AM
  • I can receive sms that vcard mode?
    Thursday, November 19, 2009 9:14 AM
  • ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
    Monday, November 23, 2009 5:33 AM