Re: build dll project use VisualD with the "Use MS-COFF object file..." setting selected failed

2016-08-26 Thread magicdmer via Digitalmars-d-learn
On Friday, 26 August 2016 at 07:21:55 UTC, Daniel Kozak wrote: Dne 26.8.2016 v 09:12 magicdmer via Digitalmars-d-learn can you try it from console? something like dmd.exe -m32mscoff your_d_file.d same error , it's only dll project like this. console project can build successfully with th

Re: build dll project use VisualD with the "Use MS-COFF object file..." setting selected failed

2016-08-26 Thread magicdmer via Digitalmars-d-learn
On Friday, 26 August 2016 at 07:00:37 UTC, rikki cattermole wrote: Okay so your Windows language is non-english, that'll be it. You need to be looking into the encoding that Visual Studio is using for you files. Something to do with the BOM or hasn't even been set to utf-8 isn't quite right.

Re: build dll project use VisualD with the "Use MS-COFF object file..." setting selected failed

2016-08-25 Thread magicdmer via Digitalmars-d-learn
On Friday, 26 August 2016 at 06:38:01 UTC, Daniel Kozak wrote: That image is too small, so I can't see it :) Dne 26.8.2016 v 08:26 magicdmer via Digitalmars-d-learn napsal(a): I use VisualD create a windows dll project , and select the "Use MS-COFF object file fromat for win32"

build dll project use VisualD with the "Use MS-COFF object file..." setting selected failed

2016-08-25 Thread magicdmer via Digitalmars-d-learn
I use VisualD create a windows dll project , and select the "Use MS-COFF object file fromat for win32" . when i build it ,it display the error follow ,look at the picture I use dmd 2.071.1 https://s14.postimg.org/a4wcv74ct/image.png

Re: Something about Chinese Disorder Code

2015-11-26 Thread magicdmer via Digitalmars-d-learn
On Thursday, 26 November 2015 at 09:59:01 UTC, Marc Schütz wrote: No, I'm talking specifically about the cast in there, not the call to setlocale(). Does it still work if you replace this: setlocale(0, cast(char*)"china"); by that: setlocale(0, "china"); ? yes Of course,it works we

Re: Something about Chinese Disorder Code

2015-11-25 Thread magicdmer via Digitalmars-d-learn
On Wednesday, 25 November 2015 at 12:33:00 UTC, Marc Schütz wrote: On Wednesday, 25 November 2015 at 04:09:29 UTC, magicdmer wrote: On Tuesday, 24 November 2015 at 19:41:12 UTC, Marco Leise wrote: Am Tue, 24 Nov 2015 17:08:33 + schrieb BLM768 : [...] thank you for your answers. I solved

Re: Something about Chinese Disorder Code

2015-11-24 Thread magicdmer via Digitalmars-d-learn
On Tuesday, 24 November 2015 at 19:41:12 UTC, Marco Leise wrote: Am Tue, 24 Nov 2015 17:08:33 + schrieb BLM768 : [...] thank you for your answers. I solved it. windows console like: fwide(core.stdc.stdio.stdout, 1); setlocale(0, cast(char*)"china"); auto str = "你好,世界"; writeln(str); Mess

Something about Chinese Disorder Code

2015-11-24 Thread magicdmer via Digitalmars-d-learn
I display chinese string like: auto str = "你好,世界" writeln(str) and The display is garbled。 some windows api like MessageBoxA ,if string is chinese, it displays disorder code too i think i must use WideCharToMultiByte to convert it , is there any other answer to solve this question simplely