几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】why Odstring...unicodebuffer Is Empty (http://www.dimcax.com/hust/showthread.php?t=19138)

yang686526 2009-05-07 07:11 PM

【转帖】why Odstring...unicodebuffer Is Empty
 
why odstring...unicodebuffer is empty ?
why odstring...unicodebuffer is empty ?
hello,
to write correctly japanese texts (my oddbtextiterator returns wrong characters), i want to use the unicodebuffer i get in "void listfiller::wrstring(int groupcode, const odstring& string)" through the string argument.
in your odamfcappdll sample, this field is not empty.
but in my app, this field is empty. what initialization should i have forgotten ?
thank you in advance for your help.
best regards.
odstring can store unicode characters or an ansi string (non-unicode characters and their code page id).
so in debugger you may see zero unicode buffer even for non-empty string. any attempt to access odstring unicode value via api will synchronize the unicode buffer.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 03:26 PM.