MessageBoxTimeout

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
bpd2000
Posts: 1101
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 203 times
Been thanked: 107 times

Re: MessageBoxTimeout

Post by bpd2000 » Tue Nov 26, 2013 11:49 am

esgici wrote:Hi Apichit
apichit wrote:Help me please!
I copy source code to Timeout.prg but cannot compile it.
Please clarify cannot compile :?

Here compiled and run fine :arrow:

Happy HMG :D
+1
I can also compile run sample
BPD
Convert Dream into Reality through HMG

apichit
Posts: 33
Joined: Thu Jun 07, 2012 9:39 am
Has thanked: 3 times

Post by apichit » Tue Nov 26, 2013 1:23 pm

esgici wrote:Hi Apichit
apichit wrote:Help me please!
I copy source code to Timeout.prg but cannot compile it.
Please clarify cannot compile :?

Here compiled and run fine :arrow:

Happy HMG :D
Hi esgici,

I compile with HMG.3.0.35 not pass and it show build log screen with blank Error list. No exe file created.
I need to use version 3.0.35 becase this version can use my local language.

Thank you
Attachments
cap1.jpg
cap1.jpg (91.64 KiB) Viewed 1934 times

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Tue Nov 26, 2013 1:56 pm

Apichit, this new MessageBoxTimeout function is made for UNICODE uses. There are some other ressources which you not find under 3.0.35 version.
apichit wrote:I need to use version 3.0.35 becase this version can use my local language.
But why are not using UNICODE version for your language too ? UNICODE supports all languages, it is how we use to read with one page of site in your browser. Totally transparent. If you finding out dificulties to adapt ANSI to UNICODE, I suggest you to start posting your doubts difficulties one by one. But UNICODE is the right way long for HMG, IMHO.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
esgici
Posts: 4518
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 391 times
Been thanked: 111 times
Contact:

Post by esgici » Tue Nov 26, 2013 2:36 pm

Pablo César wrote:Apichit, this new MessageBoxTimeout function is made for UNICODE uses. There are some other ressources which you not find under 3.0.35 version.
apichit wrote:I need to use version 3.0.35 becase this version can use my local language.
But why are not using UNICODE version for your language too ? UNICODE supports all languages, it is how we use to read with one page of site in your browser. Totally transparent. If you finding out dificulties to adapt ANSI to UNICODE, I suggest you to start posting your doubts difficulties one by one. But UNICODE is the right way long for HMG, IMHO.
+1
Viva INTERNATIONAL HMG :D

User avatar
mol
Posts: 3251
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 235 times
Been thanked: 132 times
Contact:

Post by mol » Tue Nov 26, 2013 3:01 pm

The problem is that DBF files don't support UNICODE

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Tue Nov 26, 2013 3:59 pm

mol wrote:The problem is that DBF files don't support UNICODE
Hi Marek, could you tell us what kind of difficulties are you finding at DBF files in UNICODE mode ?

Reminding that we should use these following functions for strings treatments:

Support ANSI and UNICODE

IMHO, we have to decide how to work with the pre-existing dbf files. Continue to work in ANSI because DBF is already existing and has many ANSI accented caracterers in it or convert phisically all these accented caracterers into UNICODE ones. The ideal is not be mixed. If you wish to keep your databases in ANSI, so you will need to convert to ANSI in previous moment at saving to DBF. But also you will need to read and convert it when you make any treament of string. Because size of string in UNICODE and ANSI could it differes.

I am still believe that UNICODE is the best way to work.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
esgici
Posts: 4518
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 391 times
Been thanked: 111 times
Contact:

Post by esgici » Tue Nov 26, 2013 6:46 pm

Pablo César wrote:I am still believe that UNICODE is the best way to work.
+1

Viva HMG :D
Viva INTERNATIONAL HMG :D

User avatar
mol
Posts: 3251
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 235 times
Been thanked: 132 times
Contact:

Post by mol » Tue Nov 26, 2013 7:36 pm

Main problem, in my opinion, is with text fields. As you know, text field has declared size in one-byte characters. But, UNICODE strings can contain chars coded with two bytes. In the worst situation, you can save only a half of string in your database field.

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Tue Nov 26, 2013 10:08 pm

mol wrote:Main problem, in my opinion, is with text fields. As you know, text field has declared size in one-byte characters.
Yes, but with these functions you can manipulate strings normally.
mol wrote:In the worst situation, you can save only a half of string in your database field.
Yes this could become a big problem if is not prevented with these string treatement functions. So you can avoid this kind of problems to convert UNICODE to ANSI when needs to save in DBF. ;)
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
mol
Posts: 3251
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 235 times
Been thanked: 132 times
Contact:

Post by mol » Tue Nov 26, 2013 10:47 pm

Maybe it's good for new projects, but requires a lot of work and testing in existing ones....
But, everything is to do... it's only a matter of time :-)

Post Reply