Results 1 to 2 of 2

Thread: The Influence after change the PC language to vb 6.0

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2007
    Posts
    4

    Resolved The Influence after change the PC language to vb 6.0

    i have using vb6.0 to develop the LIS system that link to analyzer with serial port.

    That is no problem happen when my pc language setting 'Language for non-unicode program' = English(US). Because the 1st char STX sending by analyzer is chr(2) ='' and last char is ETX is chr(3) =''. So i can using the coding to check whether the result have complete send or not by checking the 1st chr(2) and last chr(3)

    example : if instr(1, strData,chr(2) then
    if instr(1, strData,chr(3) then

    sometime send in batch then i have to seperate the result using this 2 char too.

    The Problem now is when i change the pc language setting 'Language for non-unicode program' = Chienese (PRC). all the unicode become □.
    chr(2)= □, chr(3)= □, chr(4)= □

    so when the pc have receive the result from analyzer it cannot capture the chr(2) will ingone the work. so no result will display after sending the result.

    The perpose i change the pc language setting 'Language for non-unicode program' = Chienese (PRC) is because i need to display the chiense word on vb6.0 interface and crystal report.

    How to solve this problem that can make the vb6.0 and crystal report display and print out the chiense word, and the unicode remain the orignal char?

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: The Influence after change the PC language to vb 6.0

    Those characters are communication indicators they should not be converted or changed. You should not be using string arrays to process that kind of data you should be using byte arrays so that there are no conversions.

    BTW: The application deployment section is not the correct section for this type of question

Posting Permissions

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



Click Here to Expand Forum to Full Width