FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
[WM23]/[WD23] SocketWrite
[WM23]/[WD23] SocketWrite
Débuté par ARV, 11 fév. 2019 22:52 - 7 réponses
Connectez-vous…
ARV
#1
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 11 février 2019 - 22:52
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
Signaler
0
0
Jim
#2
Posté le 14 février 2019 - 17:33
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
Signaler
0
0
ARV
#3
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 14 février 2019 - 18:06
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
Signaler
0
0
Jim
#4
Posté le 18 février 2019 - 18:50
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
Signaler
0
0
Jim
#5
Posté le 20 février 2019 - 22:19
ARV,
See the thread on Socket Issues.
There is an update that may help?
Jim
Signaler
0
0
ARV
#6
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 21 février 2019 - 14:21
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
Signaler
0
0
Jim
#7
Posté le 26 février 2019 - 19:46
ARV,
Just ran into your issue again.
In Project Explorer, right click on Project.
In the first tab, Project, click the button "Description of current configuration"
On the Unicode tab, select Use ANSI strings at runtime.
Jim
Signaler
0
0
ARV
#8
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 27 février 2019 - 14:20
Hi Jim
Thanks for your reply
In the end the problem it's that this string in particular:
ººº
it's not available on the table ASCII for Ansi
if I do this on UNICODE maybe it could work, for now I change everything on UNICODE just to make iPhone work too.
the only thing it's that to make sure Android, iPhone and PC work together I need to transfor every String to UTF8 and then on Android, iPhone and PC change the UTF8 to String.
Then again thanks for your help I really appreciation all of your ideas.
about your last post I already did this to change it on run time but then again ANSI do not have that string on his table of ASCII.
Hope this thread could help someone that could have my exact same problem.
good luck on your dev!
--
Best Regards
ARV
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte