Results 1 to 10 of 10

Thread: Conerting to DBCS

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    54

    Conerting to DBCS

    Hello,

    Can anyone give me example on VB to convert character(s) into DBCS?

    Thanks

    With Best Wishes
    Bye!

  2. #2
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    More info??

    mmm, what is DBCS (Data-Base????)
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  3. #3
    Addicted Member
    Join Date
    Sep 2002
    Location
    Middle Earth
    Posts
    156
    DBCS stands for Double-Byte Character Set. You can convert to
    this format with the StrConv () function... ex:

    myDBCSString = StrConv (myString, vbWide)

    -CC

  4. #4
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Arrow ????

    Whoops, sum1 feels stupid...

    Last edited by Wak; Sep 29th, 2002 at 06:49 PM.
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  5. #5
    Addicted Member
    Join Date
    Sep 2002
    Location
    Middle Earth
    Posts
    156
    Last edited by Crunchy Cat; Sep 29th, 2002 at 07:51 PM.

  6. #6

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    54
    Thanks for ur help. But it's not working. It gave me error message "Invalid procedure call or argument"

    If some one has worked on chinese, japanese, hindi fonts on VB5/6 , he can better understand my problem. In DBCS, a character is made by combining 2 or 3 different bytes each having different ASCII code.

    But I don't have the exact function / logic for that.

    (BTW, if someone has "Internationalization with Visual Basic", please checkout the answer in that. It'll take me some time to arrange that book here.")

    Thanks

    With Best Wishes
    Bye!

  7. #7
    Addicted Member
    Join Date
    Sep 2002
    Location
    Middle Earth
    Posts
    156
    Hi, well I can't say I have dealt with those languages before.
    Just out of curiosity are you sure you are dealing with DBCS and
    not Unicode (StrConv (myString, vbUnicode))?

  8. #8

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    54
    Yes, I'm sure about that. It's solution is ONLY DBCS.

    Thanks

    With Best Wishes
    Bye!

  9. #9
    Addicted Member
    Join Date
    Sep 2002
    Location
    Middle Earth
    Posts
    156
    Well, I am still farily certain that StrConv () is the way to go
    for you. Although I can't give you an example specific to your
    language (I am in SBCS environments), this link:

    http://msdn.microsoft.com/library/de...nFunctions.asp

    might be of assistance.

    -CC

  10. #10

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    54

    LCMapString

    LCMAPString function can convert ANSI to DBCS with LCMAP_FULLWIDTH parameter. Anyone can give its example in VB?

    Thanks

    With Best Wishes
    Bye!

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