send text to pal 10 beta

You can talk about VB programming here

send text to pal 10 beta

Postby jimmyng » Thu Dec 23, 2010 3:23 am


hi guys,

please me with the pal 10 beta cannot send rich.rft (colored text) to pal 10 beta came up with

(\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}......


Alert: (PS) ***** Your last text msg was not sent because it contained a reserved sequence of characters.)


it only work for rich.text. please help thanks :(
jimmyng
imFiles Newbie
imFiles Newbie
 
Posts: 28
Joined: Sun Feb 12, 2006 4:41 pm

Re: send text to pal 10 beta

Postby locohacker » Thu Dec 23, 2010 9:10 am

Yeps I getting the same error :) I gonna start working on my programs next week so we can update together :)
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4364
Joined: Fri Dec 31, 2004 6:59 pm

Re: send text to pal 10 beta

Postby Chike » Thu Dec 23, 2010 2:03 pm

So remark the send lines and see what is in the text edit box.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: send text to pal 10 beta

Postby Randomguy » Fri Dec 24, 2010 2:48 am

I'm getting the same error, i'm using autopilot's method
i have figured out that the problem is it uses SendMessageA and it needs to use SendMessageW.

now i just need to figure out how to do that and i'll be fine
Randomguy
 
Posts: 1
Joined: Fri Dec 24, 2010 2:34 am

Re: send text to pal 10 beta

Postby getstart » Fri Dec 24, 2010 5:27 am

I have the same error do help me?????
getstart
 
Posts: 3
Joined: Thu Dec 23, 2010 8:35 am

Re: send text to pal 10 beta

Postby Gammablitz » Sat Dec 25, 2010 8:21 am

Just change the relevant API-Declarations from sendmessageA to sendmessageW.
e.g. Declare Function SendMessage Lib "user32" Alias "SendMessageW"...

I also found out, that a string now always needs a RTF-Formatting. If you send it just like that without formatting it shows only ??????.
Gammablitz
 
Posts: 2
Joined: Sat Dec 25, 2010 8:17 am

Re: send text to pal 10 beta

Postby Chike » Sat Dec 25, 2010 11:28 am

SendMessageW take a wide-string parameter not chars.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: send text to pal 10 beta

Postby Departure » Sun Dec 26, 2010 9:48 pm

just remember when sending the length of string that it is 2 times longer than ansi strings + 1 for the null termination of the string..

MyAnsiString * 2 + 1 = length of Wide string
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Re: send text to pal 10 beta

Postby Chike » Mon Dec 27, 2010 5:01 am

Length is not size, the length of ansi and wide strings are the same the size of wide string is double the size of ansi string, the null character is wide too.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: send text to pal 10 beta

Postby Departure » Mon Dec 27, 2010 6:24 am

yes correct I wrote description incorrect when I meant to be descibing size (4 bytes wide, 2 bytes ansi)
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Re: send text to pal 10 beta

Postby getstart » Thu Apr 14, 2011 8:17 am

well it working thank you
getstart
 
Posts: 3
Joined: Thu Dec 23, 2010 8:35 am


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests