wv{sn,ns}printf[AW]

2001-07-09 Thread Peter Hunnisett

Hi,
  it appears that we have a bit of a hack in the wine code. Presently we
export wvsnprintf[AW] from user32. 

- These two functions do not appear to be in the real user32.dll and the
comments in the code seem to back it up.
- Windows does have wvnsprintf[AW] (note the transposed sn) exported
from shlwapi.dll

  So my questions are:

1) Was the user32 a bit of a hack because those routines just weren't
noticed or was it because of something from before shlwapi?
2) Can wvnsprintf be moved from user32 into shlwapi? This would cause
user32 to have to import shlwapi (because wsprintfA and friends use it
in their implementation) and I don't know if that's legal because user32
seems to only import gdi32 and kernel32. If not, what's the solution?
Reimplement everything in user32 to not use wvnsprintf and move the
implementation over or just keep the existing situation and rename
wvnsprintf to wvnsprintf and forward the shlwapi calls to user32?


Thanks,
Peter

[EMAIL PROTECTED]

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com






Re: wv{sn,ns}printf[AW]

2001-07-09 Thread Alexandre Julliard

Peter Hunnisett [EMAIL PROTECTED] writes:

 2) Can wvnsprintf be moved from user32 into shlwapi? This would cause
 user32 to have to import shlwapi (because wsprintfA and friends use it
 in their implementation) and I don't know if that's legal because user32
 seems to only import gdi32 and kernel32. If not, what's the solution?
 Reimplement everything in user32 to not use wvnsprintf and move the
 implementation over or just keep the existing situation and rename
 wvnsprintf to wvnsprintf and forward the shlwapi calls to user32?

user32 cannot import shlwapi, since this would create a circular
dependency. Since the functions are needed both in user32 and shlwapi,
they have to be implemented in user32 and forwarded from shlwapi to
user32 (the alternative is to have two complete wsprintf
implementations, which is a bit of a pain). I guess you could also
rename the user32 ones, but this is not strictly necessary (and the
current name has the advantage of following the C library naming of
vsnprintf).

-- 
Alexandre Julliard
[EMAIL PROTECTED]





Re: PATCH: internetgetconnectionstate

2001-07-09 Thread Gerard Patel

At 11:37 PM 09/07/2001 +0200, you (Marcus Meissner) wrote:
Hi,

QuickTimePlayer 5 is using InternetGetConnectedState to check whether to 
download its 'homepage'.

Just say we are connected, and on a LAN.

Ciao, Marcus

Changelog:
   Have InternetGetConnectedState always return 'LAN connection'.

Theoretically this could cause trouble when used with a computer
having no connection to the Internet, as an app could think it can
connect, try to do it, fail and terminate or display annoying messages.

It's not really a strong objection, as most decent computers are 
connected to the Internet these days, but maybe a config option could
be better ? Just a thought.

Gerard






Joysiick under Wine

2001-07-09 Thread David Hagood

I've seen a couple of messages about getting USB joysticks working under 
Wine, but do regular (i.e. gameport) sticks work?

I've confirmed that my stick is being read by Linux, and that it is 
reporting events correctly. Now, how do I get Wine to pass them along?

I've confirmed:
1) that I have read/write permissions to /dev/js0
2) that Wine tries to read /dev/js0
3) that Wine indeed does read from /dev/js0, but that
4) Wine shortly thereafter closes /dev/js0, never to read it again.

Do I need to have the X Window system joystick driver loaded? Or do I 
need to add something to the system.ini or .wine/config files.

This is a Windowless install, under RH6.1, with 2.4.6, and a CVS pull of 
Wine from a few days ago.

I'm trying to get HalfLife running under Wine. I have the GL working, I 
have sound working, but I am one of those strange fellows that likes to 
move with a stick, and look with a mouse.

Are there any Windows/Wine tools that I can run to try to troubleshoot this?