Re: Wine and industrial communication like OPC

2004-09-06 Thread Rickard Svensson
> > > > Now I also got some questions from your answers: > > > > * Did I understand correctly. Wine doesn't have a built in support for DCom, to be > > abel to use Dcom I have to add the DCom support from Windows 98 to the Linux > > system? > > And the problem with that is the MS License, it

Re: Wine and industrial communication like OPC

2004-09-06 Thread Rickard Svensson
- Original Message - From: Juan Lang <[EMAIL PROTECTED]> Date: Sun, 5 Sep 2004 21:59:37 -0700 (PDT) To: [EMAIL PROTECTED] Subject: Re: Wine and industrial communication like OPC > > * We want to make a OPC server, because other > > computers want to get information from our system. > > Is

epoll patch - status?

2004-09-06 Thread Shachar Shemesh
Hi Alexandre, I'm sorry for being a pest about this. I was wondering whether there is anything that needs to be done on that one in order to facilitate committing this patch? Shachar -- Shachar Shemesh Lingnu Open Source Consulting ltd. http://www.lingnu.com/

Re: Wine Developer Cheatsheet, v1

2004-09-06 Thread Mike McCormack
Vincent Béron wrote: Is it best to use MultiByteToWideChar() or RtlCreateUnicodeStringFromAsciiz()? I find that latter function much easier to use (no need to mess with string lengths, etc.). iirc, RtlCreateUnicodeStringFromAsciiz has a limitation due to use of the UNICODE_STRING structure - it ca

Re: RESEND: CreateDIBitmap: Don't create monochrome bitmaps

2004-09-06 Thread Dmitry Timoshkov
"Huw D M Davies" <[EMAIL PROTECTED]> wrote: > +/* Need to check if the bitmap is monochrome, and if the > + two colors are really black and white */ > +if (is_dib_monochrome(pbi)) > +{ > + /* Top-down DIBs have a negative height */ > + DWORD heig

Re: Drowning in FIXMEs...

2004-09-06 Thread michael
On Sun, Sep 05, 2004 at 10:09:26PM +0300, Jukka Heinonen wrote: > Well, under DOS VGA text mode, mouse cursor is like "gpm" mouse > cursor, a character cell which gets inverted or otherwise IIRC it's inverted. > highlighted in order to show where mouse is currently located at. This is aproxima

Using winelib in python module

2004-09-06 Thread Nikolay A. Liber
Hi All Have anybody tried to use winelib in python modules? I need to make python bindings to some propritary DLL that available as a binary only. I made shared library that simply dynamicaly loads that DLL using winelib mono hack. It works perfectly when I link it with simple C test program b

D3D7: textures, mipmaps, DDSCAPS_COMPLEX

2004-09-06 Thread André Johansen
Hi! First some good news (for me at least): Cedega from CVS can now be used to play Anarchy Online! [1] To get this working, Marius Grigoriu had to implement support for DDSCAPS_COMPLEX in the Cedega code; this support seems to be lacking in Wine. I've had a look at the patch, and both the Cedeg

Re: CreateDirectoryW improvement

2004-09-06 Thread Uwe Bonnes
> "Wolfgang" == Wolfgang Schwotzer <[EMAIL PROTECTED]> writes: Wolfgang> Description: Return error ERROR_ALREADY_EXISTING if an Wolfgang> existing drive (e.g. 'C:') without '\\' is specified Wolfgang> ChangeLog: CreateDirectoryW: Return error Wolfgang> ERROR_ALREADY_EXISTING e.

Re: Don't crash on failing DRIVER_FindFromHDrvr

2004-09-06 Thread Uwe Bonnes
> "Eric" == Eric Pouech <[EMAIL PROTECTED]> writes: >> Strange: we don't see the RtlHeapAllocate function. But then I >> remember that the application (_impact.exe from the Xilinx ISE suite) >> uses the shsmp library for memory allocation >> (http://www.microquill.com/smartheap

RE: Battlefield 1942 d3d8 crash

2004-09-06 Thread Ann and Jason Edmeades
D'oh... and yes! I'm downloading it (slowly) and I'll see if I can take a look. Did it install without problems (any windows dlls needed?) Can you please email me a +d3d,+d3d_surface,+d3d_caps trace in the meantime. Jason -Original Message- From: Robert Reif [mailto:[EMAIL PROTECTED] Se

Re: Create DLL stub files in c:\windows\system

2004-09-06 Thread Alexandre Julliard
Mike Hearn <[EMAIL PROTECTED]> writes: > On Sat, 2004-09-04 at 15:49, Vincent Béron wrote: >> How? Remove a particular touched dll from c:\windows\system? If you have >> two apps, one wanting the 0-sized dll and the other one choking on it, >> what do you do? > > Well I doubt any app actually reli

Re: PROPSHEET: Fix wizard regression

2004-09-06 Thread Filip Navara
Filip Navara wrote: This fixes the regression caused by the Mike McCormack's patch and solves the problem with Macromedia Flash MX in the correct way. There is still other problem with Macromedia Flash MX when you check the options on the "Publish Settings" if anyone wants to jump in and solve

Re: dlls/msvcrt/time.c picks up wrong CLOCKS_PER_SEC define

2004-09-06 Thread Alexandre Julliard
Uwe Bonnes <[EMAIL PROTECTED]> writes: > wine/include/msvcrt/time.h defines CLOCKS_PER_SEC conditionally: > #ifndef CLOCKS_PER_SEC > #define CLOCKS_PER_SEC 1000 > #endif > > in wine/dlls/msvcrt/time.c, is included and defines CLOCKS_PER_SEC > unconditional before to 100l. > > So MSVCRT_cloc

Re: Don't crash on failing DRIVER_FindFromHDrvr

2004-09-06 Thread Eric Pouech
Strange: we don't see the RtlHeapAllocate function. But then I remember that the application (_impact.exe from the Xilinx ISE suite) uses the shsmp library for memory allocation (http://www.microquill.com/smartheap/sh_tspec.htm). So our HeapAlloc get patched by the Microquill code, but probably Hea

Re: Battlefield 1942 d3d8 crash

2004-09-06 Thread Robert Reif
Ann and Jason Edmeades wrote: Does changing the line 575 (in device.d, dlls/d3d8) to be if (ppBackBuffer) IDirect3DSurface8Impl_AddRef((LPDIRECT3DSURFACE8) *ppBackBuffer); make any difference - Looks like the app is doing an odd way to work out how many back buffers there are. Jason Shouldn't th

Re: Battlefield 1942 d3d8 crash

2004-09-06 Thread Ann and Jason Edmeades
Does changing the line 575 (in device.d, dlls/d3d8) to be if (ppBackBuffer) IDirect3DSurface8Impl_AddRef((LPDIRECT3DSURFACE8) *ppBackBuffer); make any difference - Looks like the app is doing an odd way to work out how many back buffers there are. Jason

Re: Wine Developer Cheatsheet, v1

2004-09-06 Thread Vincent Béron
Le lun 06/09/2004 à 14:04, Rolf Kalbermatter a écrit : > "Diego 'Flameeyes' =?ISO-8859-1?Q?Petten=F2?=" wrote: > > >I have only a doubt: > > > >> - Is it possible to implement the ANSI version by converting to unicode > >>then calling the wide version, rather than duplicate it? > > > >How can

Re: Wine Developer Cheatsheet, v1

2004-09-06 Thread Rolf Kalbermatter
"Diego 'Flameeyes' =?ISO-8859-1?Q?Petten=F2?=" wrote: >I have only a doubt: > >> - Is it possible to implement the ANSI version by converting to unicode >>then calling the wide version, rather than duplicate it? > >How can I convert an ansi string to a unicode one and reverse? So I can redo >t

Re: Wine Developer Cheatsheet, v1

2004-09-06 Thread Diego 'Flameeyes' Pettenò
Mike Hearn wrote: > Yeah, it's a bit of a pain keeping track of useful patches that were > never merged. Maybe we need a list somewhere. Yes, it can be very helpful, if I can be helpful in any way, I'm here :) > A few things that jump out at me (not really reviewed the code itself): Thanks a lot,

Re: RESEND: CreateDIBitmap: Don't create monochrome bitmaps

2004-09-06 Thread Huw D M Davies
Hmm, actually this requires more work, because although CreateDIBitmap is now correct, the patch is messing up the toolbar icons in IE... Huw. -- Huw Davies [EMAIL PROTECTED]

Re: dlls/commdlg/fontdlg.c regression

2004-09-06 Thread Gerald Pfeifer
I believe I saw a patch for this, but WineHQ CVS still has this problem. On Sun, 15 Aug 2004, Gerald Pfeifer wrote: The following change to dlls/commdlg/fontdlg.c revision 1.70 date: 2004/08/14 00:42:35; author: julliard; state: Exp; lines: +2 -5 Jacek Caban <[EMAIL PROTECTED]> Fix a bug in

Re: DestroyMenu: Check if the menu is still used (fix for bug 1486)

2004-09-06 Thread Michael Kaufmann
Hi, I've searched for other patches on this subject. I was very surprised to see that Andreas Mohr submitted a patch for the same problem about two years ago: Oh, me? :-) True, I've been bitten by that issue at that time (and several applications failed on it, e.g. FilZip 2.01(?)), so I atte

Re: Possible fun project/todo list item?

2004-09-06 Thread Vincent Béron
Le lun 06/09/2004 à 04:29, Mike Hearn a écrit : > > I'd rather manually download GnuTLS libraries and use them with wine > > than install mozilla, which should be substanscially bigger - maybe 50 > > mb+? (I'm guessing here.) > > Oh no, modern Mozilla based browsers such as Firefox are more like

Re: Don't crash on failing DRIVER_FindFromHDrvr

2004-09-06 Thread Uwe Bonnes
> "Eric" == Eric Pouech <[EMAIL PROTECTED]> writes: >> Why should expecting a NULL return be wrong? It happens, as the the >> crashes show. Eric> no. the cases are different. The ones you refer to (mainly in Eric> driver.c) use a hDrvr passed by the called. So, we have to catch

Battlefield 1942 d3d8 crash

2004-09-06 Thread Robert Reif
I get the following crash when running the Battlefield 1942 single player demo from http://www.3dgamers.com/games/battlefield1942/ fixme:ddraw:Main_DirectDraw_SetCooperativeLevel (0x40361cd8)->(,0008) trace:d3d:Direct3DCreate8 SDKVersion = dc, Created Direct3D object at 0x40362218 fix

Re: dlls/commdlg/fontdlg.c regression

2004-09-06 Thread Jacek Caban
Gerald Pfeifer wrote: I believe I saw a patch for this, but WineHQ CVS still has this problem. On Sun, 15 Aug 2004, Gerald Pfeifer wrote: The following change to dlls/commdlg/fontdlg.c revision 1.70 date: 2004/08/14 00:42:35; author: julliard; state: Exp; lines: +2 -5 Jacek Caban <[EMAIL PRO

Re: DestroyMenu: Check if the menu is still used (fix for bug 1486)

2004-09-06 Thread Mike Hearn
A quick hack (that doesn't break existing applications, as possibly mentioned on wine-devel around that time) may work and could be useful, but proper wineserver menu support fixing all this at the same time would be preferrable. Ulrich has a patch for this, but I think it's not finished.

Re: DestroyMenu: Check if the menu is still used (fix for bug 1486)

2004-09-06 Thread Andreas Mohr
Hi, On Mon, Sep 06, 2004 at 11:58:40AM +0200, Michael Kaufmann wrote: > Hi Dmitry > > >There is a test case in Wine (dlls/user/tests/win.c,test_SetMenu) which > >shows > >that your patch is wrong. > > > > > > This test case also fails on Win9x, as you can see in the code of the > test case: >

Re: Wine Developer Cheatsheet, v1

2004-09-06 Thread Mike Hearn
Yes. It is useful for printing large strings that would otherwise overflow the static buffer and for strings that contain non-ASCII characters. I stand corrected (thanks to Uwe as well). I also finder easier to read functions that have all the variables declared at the top of each block. Don't k

Re: DestroyMenu: Check if the menu is still used (fix for bug 1486)

2004-09-06 Thread Michael Kaufmann
Hi Dmitry There is a test case in Wine (dlls/user/tests/win.c,test_SetMenu) which shows that your patch is wrong. This test case also fails on Win9x, as you can see in the code of the test case: ok(DestroyMenu(hMenu), "DestroyMenu error %ld\n", GetLastError()); ok(!IsMenu(hMenu), "menu handle

Re: Wine Developer Cheatsheet, v1

2004-09-06 Thread Robert Shearman
Mike Hearn wrote: The second thing is about the coding style. As I said before, I have a patch for shlwapi which fixes some MSXML/Borland XML Components problems with the builtin one, which wasn't accepted for some problem about the style and the placement of the variables. I posted it as a bug

Re: Wine Developer Cheatsheet, v1

2004-09-06 Thread Uwe Bonnes
> "Mike" == Mike Hearn <[EMAIL PROTECTED]> writes: ... Mike> cheatsheet - Are you sure there is a debugstr_a?? I can't think Mike> what it would do, ANSI strings can just be printed by regular Mike> printf ... hertz:/spare/bon/wine-realclean/wine> grep debugstr_a include/*/* inc

Re: Wine Developer Cheatsheet, v1

2004-09-06 Thread Mike Hearn
> That's is very interesting and useful, but I think there's two things that can be improved: first the debug delay patch, I wasn't able to find it out searching with gmane, maybe if you can add a link to the post on gmane it should be better :) Yeah, it's a bit of a pain keeping track of useful p

Re: Is there any FAQ/Documentation for codebase familiarization? + Re: Create DLL stub files in c:\windows\system

2004-09-06 Thread Mike Hearn
I have completely hand-installed DirectX 9.0c at this time along with dxdiag.exe and additional DXMedia runtime components along with the DCOM and several other subsystems from Windows 2000 professional Well, native DirectX (DirectDraw+Direct3D at least) requires some kernel/driver support tha

Re: Wine and industrial communication like OPC

2004-09-06 Thread Mike Hearn
Now I also got some questions from your answers: * Did I understand correctly. Wine doesn't have a built in support for DCom, to be abel to use Dcom I have to add the DCom support from Windows 98 to the Linux system? And the problem with that is the MS License, it stops me from distribute those X

Re: Possible fun project/todo list item?

2004-09-06 Thread Mike Hearn
I'd rather manually download GnuTLS libraries and use them with wine than install mozilla, which should be substanscially bigger - maybe 50 mb+? (I'm guessing here.) Oh no, modern Mozilla based browsers such as Firefox are more like 5mb. Of course, including support for as many SSL programs/librar

Re: InternetReadFile, FTP and partial buffers

2004-09-06 Thread Uwe Bonnes
> "Krzysztof" == Krzysztof Foltman <[EMAIL PROTECTED]> writes: Krzysztof> Hi All, In the original WinInet FTP implementation, Krzysztof> InternetReadFile always returns complete buffers, except for Krzysztof> the last block. Some programs (probably ill-behaving ones, Krzysztof>