PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 23
→
[WM23]/[WD23] SocketWrite
[WM23]/[WD23] SocketWrite
Started by ARV, Feb., 11 2019 10:52 PM - 5 replies
Connect yourself…
ARV
#1
Registered member
293 messages
Posted on February, 11 2019 - 10:52 PM
Hi all
I have this issue
I have a project on Mobile in Android I changed the config of my project to be Ansi only just like the PC for default.
I want to send a socket to a service on windows, but the info doesn't get to what I want.
ok I send the info like 114+A
on my DB it's like 1+
and if it's a project from PC to my service it works pretty well.
I know it's about this things of Ansi and Unicode but I change my project of Android to be all of Ansi and still doesn't work.
any idea?
--
Best Regards
ARV
0
0
Jim
#2
Posted on February, 14 2019 - 5:33 PM
ARV,
In Project Explorer, right click on Project, and click on Project Description.
Go to Languages.
In Character set for ANSI Configuration, select <ANSI>.
See if that helps.
Jim
0
0
ARV
#3
Registered member
293 messages
Posted on February, 14 2019 - 6:06 PM
Hi Jim
Thanks for your reply
I already did this before everything else and still doesn't work.
I figure it out that it has to be with the string I want to use, for somereason even tought My project it's on Ansi on both PC and Android still doesn't work properly
the string it's this:
ººº
Before I find this error my project on Android was on Unicode and PC on Ansi so I send the socket from Android to PC converting my string no ansi something like
SocetWrite(Name,UnicodeToAnsi("ººº"))
and it works cool also on my socketRead on Android I do the same transfer AnsiToUnicode and works great.
But if both from project config are on Ansi this still doesn't work.
I can't use the convert function because the string it's on Ansi
so I don't know why this is failing.
thanks!
--
Best Regards
ARV
0
0
Jim
#4
Posted on February, 18 2019 - 6:50 PM
ARV,
Try using a buffer when writing.
I'm writing and reading to a device not a server.
I am sending everything back and forth in a buffer. (Hex)
Jim
0
0
Jim
#5
Posted on February, 20 2019 - 10:19 PM
ARV,
See the thread on Socket Issues.
There is an update that may help?
Jim
0
0
ARV
#6
Registered member
293 messages
Posted on February, 21 2019 - 2:21 PM
Hi Jim
Thanks for your help
Nope theres no updateds on the website of PCSoft about anything.
I need to write to my server not on the devices.
In the end I changed the String I was using to anothe one and get it to work.
--
Best Regards
ARV
0
0
→ Go back to WINDEV Mobile 23
WINDEV 23
WEBDEV 23
WINDEV Mobile 23
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text