Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb.net edit Pin
dcof27-Oct-17 3:56
dcof27-Oct-17 3:56 
Questionschool database Pin
Member 1348620526-Oct-17 0:20
Member 1348620526-Oct-17 0:20 
AnswerRe: school database Pin
Sascha Lefèvre26-Oct-17 1:05
professionalSascha Lefèvre26-Oct-17 1:05 
AnswerRe: school database Pin
Chris Quinn26-Oct-17 1:14
Chris Quinn26-Oct-17 1:14 
AnswerRe: school database Pin
Richard Deeming26-Oct-17 1:48
mveRichard Deeming26-Oct-17 1:48 
Questionschool database Pin
Member 1348620525-Oct-17 20:45
Member 1348620525-Oct-17 20:45 
AnswerRe: school database Pin
Richard MacCutchan25-Oct-17 22:18
mveRichard MacCutchan25-Oct-17 22:18 
QuestionAsc(string character) returns wrong value chinese win10 machine Pin
Member 1348515725-Oct-17 5:52
Member 1348515725-Oct-17 5:52 
Hello
I am working with a piece of VB6 code that reads data from an instrument through the USB port.
The instrument uses an FTID USB chip and the data is read by the host byte by byte from the USB bus using a driver supplied by FTID.

Each data byte is returned as a string character and then converted using the function Asc(string).

The problem is that on Windows 10 machines running chinese, the data returned is corrupted.

I think this may have something to do with the longer (2 bytes per character instead of one) character coding used for chinese but I have not been able to understand the issue.

Any suggestions?
AnswerRe: Asc(string character) returns wrong value chinese win10 machine Pin
Richard Deeming25-Oct-17 6:22
mveRichard Deeming25-Oct-17 6:22 
GeneralRe: Asc(string character) returns wrong value chinese win10 machine Pin
Member 1348515725-Oct-17 6:48
Member 1348515725-Oct-17 6:48 
GeneralRe: Asc(string character) returns wrong value chinese win10 machine Pin
Richard Deeming25-Oct-17 6:50
mveRichard Deeming25-Oct-17 6:50 
GeneralRe: Asc(string character) returns wrong value chinese win10 machine Pin
Member 1348515725-Oct-17 7:06
Member 1348515725-Oct-17 7:06 
AnswerRe: Asc(string character) returns wrong value chinese win10 machine Pin
Richard MacCutchan25-Oct-17 6:22
mveRichard MacCutchan25-Oct-17 6:22 
GeneralRe: Asc(string character) returns wrong value chinese win10 machine Pin
Member 1348515725-Oct-17 6:45
Member 1348515725-Oct-17 6:45 
GeneralRe: Asc(string character) returns wrong value chinese win10 machine Pin
Richard MacCutchan25-Oct-17 7:32
mveRichard MacCutchan25-Oct-17 7:32 
GeneralRe: Asc(string character) returns wrong value chinese win10 machine Pin
Member 1348515725-Oct-17 22:07
Member 1348515725-Oct-17 22:07 
GeneralRe: Asc(string character) returns wrong value chinese win10 machine Pin
Dave Kreskowiak25-Oct-17 10:23
mveDave Kreskowiak25-Oct-17 10:23 
AnswerRe: Asc(string character) returns wrong value chinese win10 machine Pin
Ralf Meier25-Oct-17 19:59
mveRalf Meier25-Oct-17 19:59 
GeneralRe: Asc(string character) returns wrong value chinese win10 machine Pin
Member 1348515725-Oct-17 22:05
Member 1348515725-Oct-17 22:05 
GeneralRe: Asc(string character) returns wrong value chinese win10 machine Pin
Ralf Meier25-Oct-17 22:21
mveRalf Meier25-Oct-17 22:21 
GeneralRe: Asc(string character) returns wrong value chinese win10 machine Pin
Member 1348515725-Oct-17 22:30
Member 1348515725-Oct-17 22:30 
GeneralRe: Asc(string character) returns wrong value chinese win10 machine Pin
Ralf Meier25-Oct-17 23:53
mveRalf Meier25-Oct-17 23:53 
AnswerRe: Asc(string character) returns wrong value chinese win10 machine Pin
ledtech326-Oct-17 16:45
ledtech326-Oct-17 16:45 
QuestionRe: Asc(string character) returns wrong value chinese win10 machine Pin
ledtech329-Oct-17 3:50
ledtech329-Oct-17 3:50 
AnswerRe: Asc(string character) returns wrong value chinese win10 machine Pin
Richard Deeming2-Nov-17 5:13
mveRichard Deeming2-Nov-17 5:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.