Re: [Mingw-w64-public] Direct2D sample runs with Studio Express but not with mingw-w64

2014-12-23 Thread Jack Andrews
oft (R) Incremental Linker Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. /out:DemoApp.exe user32.lib ole32.lib d2d1.lib DemoApp.obj C:\Users\jack\g>DemoApp.exe On 23 December 2014 at 17:28, Jack Andrews wrote: > > Hi, > > The sample on msdn (

[Mingw-w64-public] Direct2D sample runs with Studio Express but not with mingw-w64

2014-12-22 Thread Jack Andrews
Hi, The sample on msdn (and the SDK) "Draw Rectangle Example" http://msdn.microsoft.com/en-us/library/windows/desktop/dd371016(v=vs.85).aspx ...runs when built in Visual Studio Express 2010 (32 bit compiled) but fails when built on mingw-64 (also 32bit). I've appended the source for convenienc

Re: [Mingw-w64-public] dwrite.h error: duplicate member 'GetFontCollection'

2014-12-21 Thread Jack Andrews
Hi Jon, Martin, On 20 December 2014 at 12:09, JonY wrote: > Hi, > > Sorry about the delay, but after looking at it, these are overloaded > methods. It works perfectly in C++ but not in C, there is no simple way > to fix this. I was thinking about this a little deeper. COM is meant to be a binar

[Mingw-w64-public] dwrite.h error: duplicate member 'GetFontCollection'

2014-12-19 Thread Jack Andrews
Thank you for mingw-w64. I am writing a DLL extension in C (not C++) and I came across a problem when I write test.c as: $cat test.c #include compiling the above causes an error. An easy way to reproduce this error is to not bother with the test.c file and run (in msys): $ echo |gcc -xc -in