Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB6 and multi language support

VB6 and multi language support

Scheduled Pinned Locked Moved Visual Basic
helpalgorithmsquestionworkspace
15 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    willempipi
    wrote on last edited by
    #1

    Hi, I'm currently working on a VB6 project witch has to be able to display texts in different languages(NL/US/FR/RU ect.). The problem as you all know with this is that the text end up looking like "???". To solve this i can set the regional settings in the control panel to the corresponding language. But this means that the computer has to restart every time you setup a different language. All controls also have a Charset property but if i set those to the right value(for instance 204 for using russian) it doesn't seem to have any effect. After some searching on the net i found out this is caused by the translation of unicode to ansi in the controls of VB6 (i don't know for sure that i'm using unicode). To solve this you can buy libaries that do this translation for you so the VB6 controls can't mess it up. But i have no money;) Another solution would be to use Forms 2.0 controls that are able to handle unicode. But then i cannot redistribute my software. And they also didn't work (still showing ???). After all of this it seems kind of impossible to solve this problem, but i cannot believe there isn't a solution. It does work if i set the regional settings to the right language, can't i do the same thing without using the regional settings? I really need help here. Greetz, Willem

    L S S 3 Replies Last reply
    0
    • W willempipi

      Hi, I'm currently working on a VB6 project witch has to be able to display texts in different languages(NL/US/FR/RU ect.). The problem as you all know with this is that the text end up looking like "???". To solve this i can set the regional settings in the control panel to the corresponding language. But this means that the computer has to restart every time you setup a different language. All controls also have a Charset property but if i set those to the right value(for instance 204 for using russian) it doesn't seem to have any effect. After some searching on the net i found out this is caused by the translation of unicode to ansi in the controls of VB6 (i don't know for sure that i'm using unicode). To solve this you can buy libaries that do this translation for you so the VB6 controls can't mess it up. But i have no money;) Another solution would be to use Forms 2.0 controls that are able to handle unicode. But then i cannot redistribute my software. And they also didn't work (still showing ???). After all of this it seems kind of impossible to solve this problem, but i cannot believe there isn't a solution. It does work if i set the regional settings to the right language, can't i do the same thing without using the regional settings? I really need help here. Greetz, Willem

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      willempipi wrote:

      But then i cannot redistribute my software.

      Why not? The .NET runtime is a free download, AFAIK.

      W 1 Reply Last reply
      0
      • L Lost User

        willempipi wrote:

        But then i cannot redistribute my software.

        Why not? The .NET runtime is a free download, AFAIK.

        W Offline
        W Offline
        willempipi
        wrote on last edited by
        #3

        .NET??? read this: http://support.microsoft.com/kb/193540[^]

        L 1 Reply Last reply
        0
        • W willempipi

          .NET??? read this: http://support.microsoft.com/kb/193540[^]

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I mistook the term "Forms 2.0" for the .NET version. Microsoft has an Interop Toolkit, which can be used to easily integrate forms from VB.NET in VB6 applications. That gives the option to use .NET to add new functionality to an old VB6 executable. Not an answer to your question, but perhaps an option nonetheless.

          W 1 Reply Last reply
          0
          • L Lost User

            I mistook the term "Forms 2.0" for the .NET version. Microsoft has an Interop Toolkit, which can be used to easily integrate forms from VB.NET in VB6 applications. That gives the option to use .NET to add new functionality to an old VB6 executable. Not an answer to your question, but perhaps an option nonetheless.

            W Offline
            W Offline
            willempipi
            wrote on last edited by
            #5

            Okey i thought you where talking about that... I really need an answer for this question...

            1 Reply Last reply
            0
            • W willempipi

              Hi, I'm currently working on a VB6 project witch has to be able to display texts in different languages(NL/US/FR/RU ect.). The problem as you all know with this is that the text end up looking like "???". To solve this i can set the regional settings in the control panel to the corresponding language. But this means that the computer has to restart every time you setup a different language. All controls also have a Charset property but if i set those to the right value(for instance 204 for using russian) it doesn't seem to have any effect. After some searching on the net i found out this is caused by the translation of unicode to ansi in the controls of VB6 (i don't know for sure that i'm using unicode). To solve this you can buy libaries that do this translation for you so the VB6 controls can't mess it up. But i have no money;) Another solution would be to use Forms 2.0 controls that are able to handle unicode. But then i cannot redistribute my software. And they also didn't work (still showing ???). After all of this it seems kind of impossible to solve this problem, but i cannot believe there isn't a solution. It does work if i set the regional settings to the right language, can't i do the same thing without using the regional settings? I really need help here. Greetz, Willem

              S Offline
              S Offline
              sairfan1
              wrote on last edited by
              #6

              While using vb6 u can use resource file for multi language support

              W 1 Reply Last reply
              0
              • S sairfan1

                While using vb6 u can use resource file for multi language support

                W Offline
                W Offline
                willempipi
                wrote on last edited by
                #7

                Could you be more specific? Witch resource file?

                S 1 Reply Last reply
                0
                • W willempipi

                  Could you be more specific? Witch resource file?

                  S Offline
                  S Offline
                  sairfan1
                  wrote on last edited by
                  #8

                  my understanding is you want to give caption of control on ur forms in different languages, in vb addons there is an option to add resource file to ur project, just add resource file, in its text area add captions in different language, then programaticaly u can get captions of controls from resource file. for input text boxes you change their fonts to related language

                  W 1 Reply Last reply
                  0
                  • S sairfan1

                    my understanding is you want to give caption of control on ur forms in different languages, in vb addons there is an option to add resource file to ur project, just add resource file, in its text area add captions in different language, then programaticaly u can get captions of controls from resource file. for input text boxes you change their fonts to related language

                    W Offline
                    W Offline
                    willempipi
                    wrote on last edited by
                    #9

                    The captions of my buttons/textboxes ect. are filled from a database, I cannot convert this to the usage of resource files cause of the functionallity of the program. I already tried changing the fonts and the charset property of the fonts but that didn't work as well.

                    S 1 Reply Last reply
                    0
                    • W willempipi

                      The captions of my buttons/textboxes ect. are filled from a database, I cannot convert this to the usage of resource files cause of the functionallity of the program. I already tried changing the fonts and the charset property of the fonts but that didn't work as well.

                      S Offline
                      S Offline
                      sairfan1
                      wrote on last edited by
                      #10

                      this is the point where you are making the mistake, dont use database for captions, instead of database use resource file, please find example regarding using resource file in project, see msdn samples, there u find a sample using resource file, it is solution of ur problen coz it is also made for mulitlanguage support, if u cant file this sample i can mail u or tell u its exact name,

                      W 1 Reply Last reply
                      0
                      • S sairfan1

                        this is the point where you are making the mistake, dont use database for captions, instead of database use resource file, please find example regarding using resource file in project, see msdn samples, there u find a sample using resource file, it is solution of ur problen coz it is also made for mulitlanguage support, if u cant file this sample i can mail u or tell u its exact name,

                        W Offline
                        W Offline
                        willempipi
                        wrote on last edited by
                        #11

                        I'm sorry, but the usage of resource files is really not an option for me. The application that i'm programming makes use of a database witch is also used by a remote application where you can dynamically update the captions(like an update server). I could use the resource file as a shadow for the database but that would mean reprogramming the hole application into the usage of resource files. And making a interfase for the shadown resource files and the database itself. This simply is too much work (application source is more than 65 mb).

                        C 1 Reply Last reply
                        0
                        • W willempipi

                          I'm sorry, but the usage of resource files is really not an option for me. The application that i'm programming makes use of a database witch is also used by a remote application where you can dynamically update the captions(like an update server). I could use the resource file as a shadow for the database but that would mean reprogramming the hole application into the usage of resource files. And making a interfase for the shadown resource files and the database itself. This simply is too much work (application source is more than 65 mb).

                          C Offline
                          C Offline
                          ChandraRam
                          wrote on last edited by
                          #12

                          This[^] resource might help you.

                          W 1 Reply Last reply
                          0
                          • C ChandraRam

                            This[^] resource might help you.

                            W Offline
                            W Offline
                            willempipi
                            wrote on last edited by
                            #13

                            Thank you for your link, i've seen it before. Maybe it's me, but i cannot read a solution for my problem on this page, although the title of this webpage refers to my problem.

                            C 1 Reply Last reply
                            0
                            • W willempipi

                              Thank you for your link, i've seen it before. Maybe it's me, but i cannot read a solution for my problem on this page, although the title of this webpage refers to my problem.

                              C Offline
                              C Offline
                              ChandraRam
                              wrote on last edited by
                              #14

                              That site contains controls and code that you can purchase to use in your projects...

                              1 Reply Last reply
                              0
                              • W willempipi

                                Hi, I'm currently working on a VB6 project witch has to be able to display texts in different languages(NL/US/FR/RU ect.). The problem as you all know with this is that the text end up looking like "???". To solve this i can set the regional settings in the control panel to the corresponding language. But this means that the computer has to restart every time you setup a different language. All controls also have a Charset property but if i set those to the right value(for instance 204 for using russian) it doesn't seem to have any effect. After some searching on the net i found out this is caused by the translation of unicode to ansi in the controls of VB6 (i don't know for sure that i'm using unicode). To solve this you can buy libaries that do this translation for you so the VB6 controls can't mess it up. But i have no money;) Another solution would be to use Forms 2.0 controls that are able to handle unicode. But then i cannot redistribute my software. And they also didn't work (still showing ???). After all of this it seems kind of impossible to solve this problem, but i cannot believe there isn't a solution. It does work if i set the regional settings to the right language, can't i do the same thing without using the regional settings? I really need help here. Greetz, Willem

                                S Offline
                                S Offline
                                sonnyh
                                wrote on last edited by
                                #15

                                I have a similar project that currently use resource string. I need to support Arabic at run time. I got the same problem with switching languages in the control panel otherwise it will display ???? Have you found your solution? Please share. I'd move to database for the string table if I have to.

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups