Re: [Mingw-w64-public] direct2d functions work with C++ API, but not with C API

2022-01-14 Thread Nikolay Sivov
On 1/14/22 23:05, Vincent Torri wrote: On Fri, Jan 14, 2022 at 6:31 PM Nikolay Sivov wrote: on the contrary, CreateBitmap(), DrawBitmap(), BeginDraw(), EndDraw() or SetTransform() are working with the C API. Does someone have an idea of the problem. I have a test program if you want It's a

Re: [Mingw-w64-public] direct2d functions work with C++ API, but not with C API

2022-01-14 Thread Vincent Torri
On Fri, Jan 14, 2022 at 6:31 PM Nikolay Sivov wrote: > > > > on the contrary, CreateBitmap(), DrawBitmap(), BeginDraw(), EndDraw() > > or SetTransform() are working with the C API. > > > > Does someone have an idea of the problem. I have a test program if you want > > It's a known thing, C-compati

Re: [Mingw-w64-public] direct2d functions work with C++ API, but not with C API

2022-01-14 Thread Nikolay Sivov
On 1/14/22 20:16, Vincent Torri wrote: Hello first, I'm on Win10 After initializing Direct2D, when I call ID2D1HwndRenderTarget_GetPixelSize with a HwndRenderTarget, i get a seg fault. But when I use the C++ API, no problem. there is the same behavior with GetPixelFormat() on the cont

[Mingw-w64-public] direct2d functions work with C++ API, but not with C API

2022-01-14 Thread Vincent Torri
Hello first, I'm on Win10 After initializing Direct2D, when I call ID2D1HwndRenderTarget_GetPixelSize with a HwndRenderTarget, i get a seg fault. But when I use the C++ API, no problem. there is the same behavior with GetPixelFormat() on the contrary, CreateBitmap(), DrawBitmap(), BeginDraw

Re: [Mingw-w64-public] where is the strftime code ?

2022-01-14 Thread Biswapriyo Nath
It is exported from msvcrt.dll and ucrtbase.dll, depends on which one you selected to link with. The documentation is here https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l ___ Mingw-w64-public mail

Re: [Mingw-w64-public] [PATCH 1/2] crt: Add fallback _vscprintf() implementation

2022-01-14 Thread Martin Storsjö
On Fri, 14 Jan 2022, Pali Rohár wrote: Thank you very much for information! Could you point me where I can find source code of that mingw runtime pseudo relocations fixer? It is in mingw-w64 or in libgcc code base? It's here: https://github.com/mingw-w64/mingw-w64/blob/master/mingw-w64-crt/c

Re: [Mingw-w64-public] [PATCH 1/2] crt: Add fallback _vscprintf() implementation

2022-01-14 Thread Pali Rohár
On Friday 14 January 2022 13:45:38 Martin Storsjö wrote: > On Fri, 14 Jan 2022, Pali Rohár wrote: > > > On Thursday 13 January 2022 23:22:10 Martin Storsjö wrote: > > > On Wed, 12 Jan 2022, Pali Rohár wrote: > > > > > > > Original MSVC 6.0 msvcrt.dll library does not provide _vscprintf() > > > >

Re: [Mingw-w64-public] [PATCH 1/2] crt: Add fallback _vscprintf() implementation

2022-01-14 Thread Martin Storsjö
On Fri, 14 Jan 2022, Pali Rohár wrote: On Thursday 13 January 2022 23:22:10 Martin Storsjö wrote: On Wed, 12 Jan 2022, Pali Rohár wrote: Original MSVC 6.0 msvcrt.dll library does not provide _vscprintf() function. MinGW-w64 __ms_snprintf() and __ms_vsnprintf() implementations call _vscprintf(

[Mingw-w64-public] where is the strftime code ?

2022-01-14 Thread Michel Zou
Hello, I wanted to see if I could patch strftime to handle the %V type character, but I could only find the prototypes for that function in the code, what am I missing ? see also https://sourceforge.net/p/mingw-w64/bugs/793/ ___ Mingw-w64-public mai