No announcement yet.

Paul's PB Wish

  • Filter
  • Time
  • Show
Clear All
new posts

    Paul's PB Wish

    I was thinking the otherday that the other thing I'd really like to see in the next version of PB (other than unicode w_char support and a new IDE(that also handles unicode input)) is printable help files! I'm not overly fussed about windows help vs the newer html .chm help as I've gotten used to both.

    But, other that the searchable help section I'd like to be able to print it (a separte PDF would be great) but if not, help files in chapters would be great too. The current form is not very printer friendly for reading while crammed on the tokyo-chiba subway.

    Oh, and like mentioned above with unicode in the IDE, please go the full monte and have input support. so I can do things like...

    Dim JapaneseText as String
    Japanesetext = "“ú–{Œê‚̃eƒLƒXƒg"
    I'm sure that will look very different on different browsers but it would be great to add a menu item like that in DDT (then I could actually use DDT)

    Thanks Lance


    Paul Dwyer
    Network Engineer
    Aussie in Tokyo
    (Paul282 at VB-World)

    I wish the conditional compile META statements were compatible with VB.
    Then I could share a chunk of code between them.

    #IF NOT %pb_compiler THEN
    Attribute VB_Name = "ConversionSubs"

    I wish there was a meta statement to define segments, so I could
    use included code, as a segment, with its own "global" variables,
    which are global to all subs in the segment, but local to the rest.
    (This would also help sharing code with VB).

    I wish the inlcude statement would allow me to do search/replace allowing
    me to rename some vars/subs/functions to prevent duplication of names.

    I wish I had a bit data type (additional to bit functions):
    TYPE Status
    Major as bit * 4
    Minor as bit * 2
    Flag as bit * 1
    Flag2 as bit * 1

    If it doesn't already, I wish we could stub functions as we include
    the API headers.


    John Kovacich

    John Kovacich
    Ivory Tower Software


      The first, I wonder if I will be able to make myself
      understood in English.
      But I have some question.

      I taked interest in PB.
      I like PB what can make executable single EXE.
      Do you have unicode version ?
      Even if you have not unicode version ,you may know method
      to use 2-bites code LANGUAGE.
      Is it only use 2-bites code LANGUAGE for
      DIM STRING ?
      Please show me how to use JAPANASE.
      If It can use in 2-biotes code LANGUAGE,I will use
      this PB/DLL version.

      Thank you for reading
      Takuya Takagi




        UNICODE is a bit of a fistfull to do in a language that is still
        ANSI in its string handling. It can be done in API code but it
        means handling all of the string functions yourself.

        Resource file format stores string data in UNICODE format and I
        think from memory that if you use the UNICODE version of resource
        loading API calls, you can access UNICODE in that fashion.

        There are also API calls that convert ANSI to UNICODE but this
        probably does not make writing a DBCS type language any easier.


        [email protected]

        hutch at movsd dot com
        The MASM Forum - SLL Modules and PB Libraries


          Remember that Unicode and DBCS are NOT the same thing!

          Standard Unicode (UTF16) is always 2 bytes per character where as DBCS (JIS, S-JIS, EUC etc) are mixed bouble byte for Japanese and single byte for Ascii which makes them difficult to impliment compared to unicode.

          Takagi san,

          Žg‚¢‚½‚¢‚ÆAPI‚ÌINCLUDEƒtƒ@ƒCƒ‹‚ð•ÏX‚·‚é•K—v‚ª‚ ‚éBŽ„‚Í‚Rƒ–ŒŽ‘O‚ÉPBDLL6.0‚ð
          iŽ„‚ÌŠ¿Žš‚ª‰ºŽè‚Å‚²‚ß‚ñ‚ ‚³‚¢jB
          ŽŸ‚ÌPBDLLƒo[ƒWƒ‡ƒ“‚ÍUnicodeƒTƒbƒ|[ƒg‚ª‚ ‚é‚ÆŽv‚¢‚½‚¢B


          Paul Dwyer
          Network Engineer
          Aussie in Tokyo
          (Paul282 at VB-World)











            Paul Dwyer
            Network Engineer
            Aussie in Tokyo
            (Paul282 at VB-World)


              Hi Mr Paul
              Thank you for your kind reply.
              I do not need unicode, if I can use Shift-Jis Code .
              You do know shift-jis code?
              It is not unicode.
              You may know ..... It is defined that does not conflict to acsii.
              So When I use PB (English version) in Windows98/NT(Japanese version)
              ,the define of strings can setting shift-jis ,It may be dusplaied on screen with Japanese.
              Is it wrong?

              ‚ ‚肪‚Æ‚¤‚²‚´‚¢‚Ü‚·B
              unicode ‚Å‚È‚­‚Ä‚à‚¢‚¢‚Ì‚Å‚·B“ú–{ŒêŠÂ‹«‚ÅŽg‚¦‚Î string ‚É Shift-jis ‚Å
              ‚à‚µA‰pŒê—p‚ÌPB ‚ð“ú–{‚́@WINDOWS ‚ÅŽg‚¦‚Î String ‚ɂ́@Shift-jis ‚ª


              ‚ ‚肪‚Æ‚¤B



                Takagi san,

                I'll try PB on a J system for you, Recently I have been using Win2000
                english version which handle japanese as unicode (same as NT & 2000 Japanese version)
                Windows 2000 japanese support is very good, even in the english version, it's great to
                see such well coded international apps. (it was such a problem in 95 and 98)
                I am very familiar with S-JIS and JIS, I have ASP scripts to convert between the
                two for web pages. I have also written a S-jis to Unicode App in PBDLL6,
                to convert files for my win2000 system. Let me know if you want the source or the app,
                it has a very large (130k) resource file unfortunately because MS only
                had a conversion table not an algorithm. I have since purchased the Unicode 3 handbook
                and it has better code examples so I may be able to write a better version..

                ‰ïŽÐ‚Å‚¢‚Á‚Ï‚¢“ú–{Œê‚ÌPC‚ ‚é‚©‚çPBDLL‚ðƒCƒ“ƒXƒg[ƒ‹‚ð‚µ‚Ä‚Ý‚Ü‚·B—Ç‚¢l‚¦

                ‚ ‚肪‚Æ‚¤



                Paul Dwyer
                Network Engineer
                Aussie in Tokyo
                (Paul282 at VB-World)


                  I tried PB on a japanese OS and got mixed results, if you
                  input japanese to the IDE japanese chrs will not appear (even for copy-paste)
                  but the text that does appear is sometimes usable in strings in
                  s-jis. You can for example put some japanese text in the string for
                  the MsgBox function and it will display.
                  The big problem though is that DDT was not usable in sjis either
                  which is unfortunate because that means even with no unicode PB
                  does not support international verisons of windows.

                  I will have a play again later on and see if there is a way around these issues on win98 japanese and see how I do.



                  Paul Dwyer
                  Network Engineer
                  Aussie in Tokyo
                  (Paul282 at VB-World)


                    One item that features on the Wish List is the ability to build String Equates using CHR$() concatenations, so if this gets implemented it could make the job a little easier. Say, something like:
                    $Text101 = CHR$(109,209,100,...)
                    MsgBox $Text101
                    However, you can use CHR$() concatenation to build normal strings with the current version of the compiler.

                    While this may make the code a little harder to write since you wont be able to paste or read string literals directly in the source code (unless you edit the source code with a 3rd-party editor), it may provide a usable solution. The results will likely depending on the font being used, and you'll need a character code table for the font in order to build the string correctly.
                    A$ = CHR$(50,150,200,250,...)
                    MsgBox A$

                    PowerBASIC Support
                    mailto:[email protected][email protected]</A>
                    mailto:[email protected]


                      Mr.Paul Dwyer
                      Mr.Lance Edmonds
                      Thank you to try for me.
                      I think if The PB/DLL has trial version for a fewdays.
                      It make a result easy,do you think so?

                      I need the display of JAPANESE only message,Header of dialog,some selected data.
                      When I tried QuickBasic English version about 4-5 years ago, It was not able to use at all.
                      It may depend on code-page of MS-DOS/English,Japanese.
                      I have such experience,wondered to use.

                      ŽŽ‚µ‚Ä‚­‚ê‚Ä‚ ‚肪‚Æ‚¤‚²‚´‚¢‚Ü‚·B
                      PB/DLL ‚½‚ß‚µ‚ÉŽg‚¤‚à‚Ì‚ª‚ ‚ê‚Ηǂ¢‚ÆŽv‚¢‚Ü‚·B‚»‚¤Žv‚í‚È‚¢‚Å‚·‚©H
                      ‚»‚¤Œ¾‚¤ŒoŒ±‚ª‚ ‚é‚̂ŁAPB/DLL‚à‚Ç‚¤‚©‚È‚ÆŽv‚¢‚Ü‚µ‚½B