www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Using the Windows headers with Unicode

reply Straivers <straivers98 gmail.com> writes:
So I've been trying to create a window, and have been working my 
way through the MSDN tutorials. However, I have always had to 
specifically specify if I was using either the Unicode or ANSI 
version of a struct or function. Looking through the druntime 
code (especially winuser.d), it appears that one should be able 
to simply set a Unicode version identifier when compiling, be it 
with dub or without. I've included the relevant portion of my 
.dub file below along with the commands I have used. What am I 
doing wrong?

"versions":["Unicode"],
"configurations": [
     {
         "name": "dev",
         "versions":["debugMode", "debugInfo", "unittests"],
     }
],
...

dub --config=dev

Thank you for your time.
Jan 08
parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 09/01/16 4:44 PM, Straivers wrote:
 So I've been trying to create a window, and have been working my way
 through the MSDN tutorials. However, I have always had to specifically
 specify if I was using either the Unicode or ANSI version of a struct or
 function. Looking through the druntime code (especially winuser.d), it
 appears that one should be able to simply set a Unicode version
 identifier when compiling, be it with dub or without. I've included the
 relevant portion of my .dub file below along with the commands I have
 used. What am I doing wrong?

 "versions":["Unicode"],
 "configurations": [
      {
          "name": "dev",
          "versions":["debugMode", "debugInfo", "unittests"],
      }
 ],
 ...

 dub --config=dev

 Thank you for your time.
Are you using the latest version of druntime? Because 2.070 will be the first release with this support.
Jan 08
parent Steaivers <straivers98 gmail.com> writes:
I see. I guess I need to pay more attention then. Thanks
Jan 08