Re: c++ code

2007-05-29 Thread Dmitry Timoshkov
"Chris Robinson" <[EMAIL PROTECTED]> wrote: On Tuesday 29 May 2007 01:05:36 am Dmitry Timoshkov wrote: Yes, Microsoft doesn't support calling GDI+ flat API from anything but C++ wrappers. But it shouldn't be too hard to construct an appropriate object in plain C that represents GpBrush for inst

Re: c++ code

2007-05-29 Thread Chris Robinson
On Tuesday 29 May 2007 01:05:36 am Dmitry Timoshkov wrote: > Yes, Microsoft doesn't support calling GDI+ flat API from anything but C++ > wrappers. But it shouldn't be too hard to construct an appropriate object > in plain C that represents GpBrush for instance. It depends if it's an actual C++ AP

Re: c++ code

2007-05-29 Thread Dmitry Timoshkov
"Evan Stade" <[EMAIL PROTECTED]> wrote: The API prototypes use types that are defined as C++ classes. For example, one prototype (from GdiPlusFlat.h) is GpStatus WINGDIPAPI GdipCloneBrush(GpBrush *brush, GpBrush **cloneBrush); And GpBrush is defined as class GpBrush {}; Yes, Microsoft does

Re: c++ code

2007-05-28 Thread Evan Stade
le any conformance test for gdi+ in C > using the platform sdk headers. In my eyes it seems that there are 2 > options: edit the platform sdk headers so that they are compatible with C > code (change "class GpFoo {};" to "typedef void GpFoo") or use g++ to > compil

Re: c++ code

2007-05-28 Thread Dmitry Timoshkov
t they are compatible with C code (change "class GpFoo {};" to "typedef void GpFoo") or use g++ to compile. Are you suggesting the former over the latter? All you need are the API prototypes, and you can get those without including headers that use C++. -- Dmitry.

Re: c++ code

2007-05-28 Thread Evan Stade
On 5/26/07, Alexandre Julliard <[EMAIL PROTECTED]> wrote: "Evan Stade" <[EMAIL PROTECTED]> writes: > I want to write conformance tests for gdiplus and that requires the use of > c++. Even if I were to focus on the gdi+ flat api, the windows SDK headers > for t

Re: c++ code

2007-05-26 Thread Alexandre Julliard
"Evan Stade" <[EMAIL PROTECTED]> writes: > I want to write conformance tests for gdiplus and that requires the use of > c++. Even if I were to focus on the gdi+ flat api, the windows SDK headers > for that have c++ code in them, also eventually when the gdi+ c++ wrapper

Re: c++ code

2007-05-25 Thread Dmitry Timoshkov
"Evan Stade" <[EMAIL PROTECTED]> wrote: I want to write conformance tests for gdiplus and that requires the use of c++. Even if I were to focus on the gdi+ flat api, the windows SDK headers for that have c++ code in them, also eventually when the gdi+ c++ wrappers are writt

c++ code

2007-05-25 Thread Evan Stade
Hi I want to write conformance tests for gdiplus and that requires the use of c++. Even if I were to focus on the gdi+ flat api, the windows SDK headers for that have c++ code in them, also eventually when the gdi+ c++ wrappers are written on top of the flat api then we will need to be able to

RE: question about storage32.c code and while loop

2006-09-12 Thread EA Durbin
disregard I see the do statement above it.

question about storage32.c code and while loop

2006-09-12 Thread EA Durbin
I've mentioned this before but I'm no expert C programmer. Can someone explain why we do the following in storage32.c? if (cbRead > 0) { cbTotalRead += cbRead; resWrite = BlockChainStream_WriteAt(bbTempChain, offset,

Re: Using Windows .DLLs in Linux C++ code - possible?

2005-11-18 Thread Jeremy White
nitialized (that's code for you really don't even want to try :-/). Hence, if you think of the problem as one of having a Winelib app call your Linux C++ code, you'll probably succeed. On a different tangent, though, if I were in your shoes, I'd write a simple Windows .EXE file (

Re: Using Windows .DLLs in Linux C++ code - possible?

2005-11-18 Thread Alex Villací­s Lasso
Jim Morash wrote: Is it possible, via Wine, to link against a Windows DLL in a C++ program compiled under Linux? My specific situation: I would like to interface a piece of hardware over a serial port. The manufacturer refuses to provide a serial comms specification for the device "because it's

Using Windows .DLLs in Linux C++ code - possible?

2005-11-18 Thread Jim Morash
Is it possible, via Wine, to link against a Windows DLL in a C++ program compiled under Linux? My specific situation: I would like to interface a piece of hardware over a serial port. The manufacturer refuses to provide a serial comms specification for the device "because it's proprietary", bu