×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    28

    modifying the Sockets example

    Hi, i am trying to modify the Sockets example that comes with the SDK,
    in the example, it simply send what ever is typed to the server.
    I want to make it send a constant message to the server instead of waiting for input.

    I tried to use the iSocketEngine.WriteL(), but i just couldn't figure out how to use it.

    i tried it this way

    _LIT(test, "test");
    iSocketsEngine->WriteL(test);

    but the error was like this
    ==========================================

    error C2664: 'CSocketsEngine::WriteL' : cannot convert parameter 1 from 'const TLitC<S>' to 'const TDesC8 &'
    with
    [
    S=41
    ]
    Reason: cannot convert from 'const TLitC<S>' to 'const TDesC8'
    with
    [
    S=41
    ]
    No constructor could take the source type, or constructor overload resolution was ambiguous

    =========================================


    How can i solve this?
    thank you in advance

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    try this instead: _LIT8(test, "test");

    yucca

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×