[vtkusers] [SPAM] Re: How to change Character Set to Unicode?

chensq chenshaoqiang at buaa.edu.cn
Thu Aug 10 19:59:21 EDT 2017


Thank you so much kenichiro.
I'll try in the GUI.
Chen.

-----原始邮件----- 
From: kenichiro yoshimi
Sent: Thursday, August 10, 2017 9:01 AM
To: chensq
Cc: vtkusers
Subject: [SPAM] Re: [vtkusers] How to change Character Set to Unicode?

Hi Chen,

To build the VTK library in unicode mode using CMake you may append
the c++ compiler flags with something like:

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /UMBCS /D_UNICODE /DUNICODE")

(Of course, you can edit using the CMake GUI.)

Regards,
yoshimi

2017-08-09 8:47 GMT+09:00 chensq <chenshaoqiang at buaa.edu.cn>:
> When I changed my vtk-vc project’s Character Set property from Multi-Byte 
> to
> Unicode, the compiler reports some problems.
> I changed the code and makes the problems dispeared.
> But when I start runing the program , it breaks down.
> I have looked the VTK solution, all of its projects use Multi-Byte 
> Character
> Set.
> The vc compiler always recommend to use Unicode Character Set, so I want 
> to
> know how to deal with this situation.
> Whether I have to change the VTK solution to use Unicode Character Set
> first(But how to do it, there are so many projects in the solution),Or 
> just
> change my own appliction?
> Thanks for any suggestion.
> Sincerely Chen
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
> 




More information about the vtkusers mailing list