styledtext: gibberish codes

yidabu yidabu.spam at gmail.com
Fri Aug 22 04:23:03 PDT 2008


On Fri, 22 Aug 2008 12:32:36 +0200
Frank Benoit <keinfarbton at googlemail.com> wrote:

> yidabu schrieb:
> > On Fri, 22 Aug 2008 09:13:46 +0200
> > Frank Benoit <keinfarbton at googlemail.com> wrote:
> > 
> >> yidabu schrieb:
> >>> running sytledtext snippet, type in multi-bytes characters, the result is gibberish code.
> >>>
> >>> e.g. type in 中国 (means China), I tested with two IMEs, 
> >>> 	1, the result is gibberish code 
> >>> 	2, the snippet creashed.
> >>>
> >> I found two problematic places. The example works now.
> >> Can you please retry.
> > 
> > still now work.
> > 
> > Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at pintlgnt.dll (0x3a61e573) thread(2128)
> > ->us
> > #0 ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll
> > #1 0x3a6315f5 in ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll
> > #2 0x7e4590b9 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll
> > #3 0x7c90eae3 in ?? () at dwt\widgets\Display.d:3521 from ntdll.dll
> > #4 0x7e419402 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll
> > #5 0x0040b5b9 in  dwt.widgets.Display.Display.readAndDispatch () at dwt\widgets\Display.d:3521
> > #6 0x004040f2 in _Dmain () at Snippet244.d:65
> > #7 0x00634550 in extern (C) int dmain2.main(int, char**) . void runMain(void*) () from dmain2
> > #8 0x00634587 in extern (C) int dmain2.main(int, char**) . void runAll(void*) () from dmain2
> > #9 0x006342c8 in _main () from dmain2
> > #10 0x0064e551 in _mainCRTStartup () from constart
> > #11 0x7c816fd7 in ?? () from KERNEL32.dll
> > 
> > 
> > 
> 
> I do not get this.
> Can you describe more detailed how you can produce that?
> 

1, update dwt-win locae copy 
2, dsss 0.75 to building dwt.lib
3, dmd 1.033 to building styledtext snippet
   for example, build.bat:

set flags=D:\dwt-samples\dwt.res -L/SUBSYSTEM:windows:5 -JD:\dwt-samples\res -debug -g -unittest
set src=Snippet218
dmd %src%.d %flags%
%src%
del *.obj *.map
pause

4, the snippets still not work






-- 
yidabu <yidabu.spam at gmail.com>
http://www.dsource.org/projects/dwin

D 语言-中文(D Chinese):
http://www.d-programming-language-china.org/
http://bbs.d-programming-language-china.org/
http://dwin.d-programming-language-china.org/
http://scite4d.d-programming-language-china.org/




More information about the Digitalmars-d-dwt mailing list