Hi.
>From which configuration does the "ERROR_INVALID_NAME" came from,
when calling GetDefaultPrinter(NULL, &size) and no Printer is installed?
This Test is Present in the current "dlls/winspool/tests/info.c".
MSDN told us, that we receive an "ERROR_FILE_NOT_FOUND", if no Printer
is installed:
http://msdn.microsoft.com/library/en-us/gdi/prntspol_0hma.asp
I get the "ERROR_FILE_NOT_FOUND" on win98se, winme, w2k and win2003 in
this Situation.
--
By By ...
... Detlef
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I think after the 10 or more patches to the Wintab dll that I submitted
last month, I should say something about it's status...
And of course thank Alexandre for applying those patches.
P.S. I won't be available from the 15th for about a week or so.
So, if you have any questions, I'm afraid you might have to be patient.
Hope this is of interest to someone
-Rob.
******Applications: Current status***********
***In Painter 5
*Cursor pressure works. (Therefore is usable by most)
*Cursor orientation is a little odd: The orientation maths needs to be
re-done.
*No eraser. Haven't yet cracked what enables the eraser.
*Doesn't work in desktop mode: Need to map to desktop coordinates.
*Repeats windows bugs where cursor looses pressure/orientation info
almost bug for bug (Is this a feature? ;-)
*Cannot detect pressure/orientation int the "Brush Tracking" window: The
tablet context is attached to the main window, so no events get to the
popup, even if they overlap.
This is not how windows wintab functions.
***In Photoshop 6.
*Can only get tablet data in desktop mode: This is because the tablet
context is attached to the desktop. Which generates/receives no wine
events outside desktop mode.
* Eraser and pen pressure working. *But* to get them working, you must
have 3 XInput devices listed in your XF86Config file, They need to be
the last entries in the "ServerLayout" section and the following order:
eraser, tablet mouse. This is a far from ideal way of specifying the
devices Wintab should use :-/
I'll document this if someone can point me to a good place to put the docs.
*******To Do*************
1. Look at X11 errors. There appear to be some errors that deny some
users the
ability to access Wintab enabled apps. (I think I know how to fix this)
2. Improve orientation data. Orientation comes in as X-Y coords
(Implicit Z), and has to leave as spherical coords. This calculation
needs to be re-done.
3. When tablet context is on top, let it read XInput events from all the
app's top-level windows. (This simulates the fact that the context is
usually designed to cover the whole screen)
4. When tablet context is attached to desktop, read XInput events from
all the app's top-level windows.
5. Tests
~ --My current philosophy on tests is...
~ Use Photoshop & Painter, any formal tests
~ can be written if anyone else gets involved in patching Wintab, to
avoid regressions, and conflict.
**********Long term to do (Anyone interested?):*********
There's a lot of work that could be done here, but what gets done
and who does it probably depends upon whether anyone finds an app that
needs these features. I'd love to implement these, but realistically, I
don't
foresee doing this unless someone hires me to do so ;)
1. Improve configuration of wintab.
Wintab could probably do with some information entered into the
config file, to avoid the user having to
hack their Xfree86cfg file.
2. Handle Z-Order of context properly.
This entails
*sharing Z-Order between apps.
*Working out exactly what role windows have in
determining tablet context z-orders.
*Allow tablet contexts that don't cover the whole
screen/tablet.
*Handle inter-application clipping of tablet contexts
*Allow all application's windows to receive tablet events when tablet
context is on top
3. Implement non-system tablet contexts (Where system cursor not moved
by pen or mouse)
4. Unicodify
5. Implement various wintab extensions.
6. Implement wintab manager functions.
7. Tests.
*********Unknowns*********
1. How are wintab contexts are raised lowered?
Contexts have their own z-order independent of windows, and their own
viewport concept, based upon the tablet's coordinate system, not that of
the OS.
It appears that entering, or clicking on the window the tablet context
is attached to will raise/lower the context.
But I haven't done much testing on this.
In particular, what happens if more than one app request their tablet
context is attached to the desktop?
2. How Painter detects the eraser.
Have 3 possibilities
i. Windows can detect an eraser, and sends specific messages.
(I'm sure I've seen this, but can't work out where!)
ii. Only works if tablet and cursors are named correctly.
(Probably linked to wacom tablets only).
iii. I've missed something
3. Requirements of other applications
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCC8zI2vfwxdLxwWYRAsisAJ4q2gAYTgRc6f9wDI+Ruv943eDxOQCfcl3s
/ZKMUGwQOuw/SIIbOkIUbd0=
=R4M7
-----END PGP SIGNATURE-----
Hi Wei Li,
last year, you asked in
http://www.winehq.org/hypermail/wine-users/2004/06/0086.html
> I could not find the info regarding what operating systems > (such as AIX 5L v5.2, HP-UX 11i, Solaris Release Level > 9) will Winelib run on non-x86 machines. I'll really
> appreciate it if someone can provide my related link or
> info. I can only find the following link regarding the
> supporting OS but it does not provide Winelib's supporting
> OS info:
> http://www.winehq.org/site/docs/wine-faq/index 3.1.
> Under what hardware
> platform(s) and operating system(s) will Wine(Lib) run?
I'm sorry nobody got back to you -- the wine-devel
mailing list might have been a better place to ask.
I believe winelib runs on the following non-x86 operating
systems: Linux, Solaris, Mac OS X, and FreeBSD.
There's no reason in principle it couldn't run on AIX or HP/UX.
Some work has been done on an HP/UX port, but some
assembly would be required to complete it:
http://www.winehq.com/site/?issue=241#HP-UX%20Port
Cheers,
Dan
--
Wine for Windows ISVs: http://kegel.com/wine/isv
Hallo Martin.
This patch is giving me trouble:
>Author: Martin Fuchs <martin-fuchs(a)gmx.net>
>Date: Sat Feb 11 12:16:56 2006 +0100
>
>shell32: SHELL32_GetItemAttributes()
>- correct documentation which incorrectly claimed not to set any
> attribute bits
>- retrieve file attributes using SHGetPathFromIDListW() when they are
> not already present in the internal PIDL structures
>- add test case to show the previously wrong folder attributes when
> using absolute PIDLs
>- fix some memory leaks in the tests
in a couple of wine configurations that I use this leads to an infinite
lop when the openfile dialog is called. The call sequence is
SHELL32_GetItemAttributes->SHGetPathFromIDListW->ISF_Desktop_fnGetAttributesOf->SHELL32_GetItemAttributes
which repeats until the stack overflows.
Here is a part of a back trace:
| 13 0x7b8533ed SHELL32_GetItemAttributes+0x2dd(psf=0x7bc6bc28, pidl=0x7bc5e058, pdwAttributes=0x7ba5ae54) [/usr/home/projects/wine/mywine/dlls/shell32/shlfolder.c:430] in shell32 (0x7b8533ed)
| 14 0x7b83fcb8 ISF_Desktop_fnGetAttributesOf+0x148(iface=0x7bc6bc28, cidl=0x1, apidl=0x7ba5ae5c, rgfInOut=0x7ba5ae54) [/usr/home/projects/wine/mywine/dlls/shell32/shfldr_desktop.c:459] in shell32 (0x7b83fcb8)
| 15 0x7b8288cd SHGetPathFromIDListW+0x7d(pidl=0x7bc5e058, pszPath=0x7ba5b0c0) [/usr/home/projects/wine/mywine/dlls/shell32/pidl.c:1273] in shell32 (0x7b8288cd)
| 16 0x7b8533ed SHELL32_GetItemAttributes+0x2dd(psf=0x7bc6bbb8, pidl=0x7bc5e058, pdwAttributes=0x7ba5b334) [/usr/home/projects/wine/mywine/dlls/shell32/shlfolder.c:430] in shell32 (0x7b8533ed)
| 17 0x7b83fcb8 ISF_Desktop_fnGetAttributesOf+0x148(iface=0x7bc6bbb8, cidl=0x1, apidl=0x7ba5b33c, rgfInOut=0x7ba5b334) [/usr/home/projects/wine/mywine/dlls/shell32/shfldr_desktop.c:459] in shell32 (0x7b83fcb8)
| 18 0x7b8288cd SHGetPathFromIDListW+0x7d(pidl=0x7bc5e058, pszPath=0x7ba5b5a0) [/usr/home/projects/wine/mywine/dlls/shell32/pidl.c:1273] in shell32 (0x7b8288cd)
| 19 0x7b8533ed SHELL32_GetItemAttributes+0x2dd(psf=0x7bc6dd70, pidl=0x7bc5e058, pdwAttributes=0x7ba5b814) [/usr/home/projects/wine/mywine/dlls/shell32/shlfolder.c:430] in shell32 (0x7b8533ed)
A +relay,+shell log of one loop is attached below.
Running wineprefixcreate or reinstalling wine.inf does not help. On a
clean new installation there is no problem (but I like to keep using the
old stuff with a hundred or so of installed windows programs).
Any idea?
Rein.
Hi,
I'm trying to use a program called "siap"[1] under wine. It's the required
program to pay taxes that the Argentinian government uses.
So, it's quite important for the free software community in Argentina to be
able to use it in a free software environment. However, I haven't heard
of any real success on it, so far.
I've been trying to make it run using winetools[2], and differents versions of
wine. The furthest I've gone, has been with version 20050310 and all the
"plugins" that winetools provides, installed.
Only then, could I install the application, run it, switch between the
different modules (although it worked only sometimes), but I can't really use
it.
There are a couple of important widgets that seem to be incompatible with
wine. But as I'm not an expert neither in Windows nor in wine, the one I could
really track down is a TreeView widget (from comctl32.dll) (from the main
window of the program), that is not fully implemented in wine, and by using a
native comctl32.dll (I tried using the win98, winme, win2k libraries) the
widget would work but some of the other stuff, like switching
to one of the modules wouldn't.
I made a screenshot to make this clearer, the wine version[3] and the w2k
version[4].
So, what should I do next?
Is there some documentation of how to implement a certain Windows widget in
wine?
Is anybody working in this dll, or has worked on this widget?
I'd appreciate any comments.
Thanks,
[1] http://www.afip.gov.ar/programas/siap_main.asp (spanish only)
[2] http://www.von-thadden.de/Joachim/WineTools/
[3] http://gnuservers.com.ar/~maxy/wine/siap-wine.png
[4] http://gnuservers.com.ar/~maxy/wine/siap-w2k.png
--
Saludos,
/\/\ /\ >< `/
> it seemed that the only way to resolve it would be to
> get in between the application and any libraries, and the kernel.
>
> If wine_preloader were extended to have its own implementation of all the
> friends of mmap(), and to have its own implementation of the dynamic linker,
> then in principle it could make sure only its mmap (and not the C library's)
> is called.
You can override mmap() in wine by just changing all
the places it's called. (Having control over the source is
a wonderful thing.) But if you want mmap to behave
truly differently, you'd probably need to change the
kernel.
I seem to recall somebody was working on a linux
kernel module for wine that just dealt with
program loading, but I can't recall who.
Perhaps he'll surface and comment on this.
- Dan
--
Wine for Windows ISVs: http://kegel.com/wine/isv
Hi,
I am having a problem with virtual ulimits/rlimits.
If you limit the virtual memory size using "ulimit -v 1400000" for
instance, wine will only crash.
The problem is, that VIRTUAL_alloc_teb() tries to allocate a memory
area within the acceptable userspace ... but it does so much mmap()s
that it runs out of available mmap space before.
I was only able to reproduce this on AMD64 machines up to now,
which pass out memory starting from 0xf7fffffff somewhere.
Any clue how to solve this?
Ciao, Marcus
Grand Theft Auto... the never ending struggle to get it working.
First I thought it was broken because of OLE...subsequently found out
the installer was freezing, because of hidden message boxes. Now I've
managed to install it in Desktop mode, but it dies when ran, with no
output of any kind...
Investigating shows:
000b:Call kernel32.SetUnhandledExceptionFilter(2027f1a8) ret=0115fbe9
000b:Ret kernel32.SetUnhandledExceptionFilter() retval=0115fb7c
ret=0115fbe9
000b:Call kernel32.GetModuleHandleA(015459f4 "mscoree.dll") ret=0115ae6b
000b:Call ntdll.RtlInitAnsiString(7fcaf528,015459f4 "mscoree.dll")
ret=2018d4fc
000b:Ret ntdll.RtlInitAnsiString() retval=00000000 ret=2018d4fc
000b:Call ntdll.RtlAnsiStringToUnicodeString(7fffcbf8,7fcaf528,00000000)
ret=2018d55b
000b:Ret ntdll.RtlAnsiStringToUnicodeString() retval=00000000 ret=2018d55b
000b:Call ntdll.RtlInitUnicodeString(7fcaf52c,7fffcc00 L"mscoree.dll")
ret=201a554d
000b:Ret ntdll.RtlInitUnicodeString() retval=00000018 ret=201a554d
000b:Call ntdll.LdrGetDllHandle(00000000,00000000,7fcaf52c,7fcaf534)
ret=201a555b
000b:Ret ntdll.LdrGetDllHandle() retval=c0000135 ret=201a555b
000b:Call ntdll.RtlNtStatusToDosError(c0000135) ret=201a558a
000b:Ret ntdll.RtlNtStatusToDosError() retval=0000007e ret=201a558a
000b:Ret kernel32.GetModuleHandleA() retval=00000000 ret=0115ae6b
000b:Call kernel32.ExitProcess(00000001) ret=0115ae8f
000b:Call ntdll.LdrShutdownProcess() ret=201b03bd
Looks like it doesn't like the missing mscoree.dll.
I thought the .NET framework was not a core windows dll?
Why would it require it? Also, installing a native dll doesn't seem to
help...
Hello!
Both emerge =wine-0.9.8 and the latest git workdir fail to compile on current
Gentoo with:
gcc -c -I. -I. -I../../include -I../../include
-DINCLUDEDIR="\"/usr/local/include/wine\"" -Wall -pipe -fno-strict-aliasing
-gstabs+ -Wdeclaration-after-statement -Wpointer-arith -g -O2 -o lex.yy.o
lex.yy.c
lex.yy.c:2610: error: parse error before numeric constant
lex.yy.c: In function `yy_scan_string':
lex.yy.c:2611: error: number of arguments doesn't match prototype
lex.yy.c:305: error: prototype declaration
lex.yy.c:2613: warning: passing arg 1 of `strlen' makes pointer from integer
without a cast
lex.yy.c:2613: warning: passing arg 1 of `yy_scan_bytes' makes pointer from
integer without a cast
make[2]: *** [lex.yy.o] Error 1
make[2]: Leaving directory `/home/el/projects/wine/wine-git/tools/wrc'
make[1]: *** [wrc] Error 2
make[1]: Leaving directory `/home/el/projects/wine/wine-git/tools'
make: *** [tools] Error 2
The flex --version is flex 2.5.33 (the latest one, released on February 21,
2006).
gcc --version is gcc (GCC) 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
widl and wmc lexers compiled fine.
Downgrading to flex 2.5.4a makes everything compile again.
Is this a flex issue or is a Wine problem?
Thanks,
--
Elvis Pranskevichus - elprans(a)gmail.com