Implement VBScript for Google Summer of Code

2008-03-27 Thread Jim Chen
Hi everyone, I have this idea of implementing vbscript.dll for Google SoC. Any comment would be appreciated before I start working on my proposal. The reason for implementing vbscript.dll is because right now there's nothing in the trunk about it. jscript.dll has a stub, but vbscript.dll doesn't,

Re: [1/2] Added a test: registering device interface andgettingdevicepath

2008-03-27 Thread Juan Lang
> > I picked %08x for a reason in this code--it's far easier to find the > > relevant error using it than using %u. > > Then the tests should consistently use %08x, not a mixture of various > formats. Perhaps. I generally chose a format that matched the "expected" error. Error values like ER

Re: [1/2] Added a test: registering device interface andgettingdevicepath

2008-03-27 Thread Dmitry Timoshkov
"Juan Lang" <[EMAIL PROTECTED]> wrote: >> GetLastError() returns an unsigned value, and winerror.h lists error values >> in decimal (if anyone really wants to match a trace with a symbolic name). > > That's not strictly true. The cryptoapi errors are defined as > HRESULTs , but are returned vi

Re: fuse-iso and remote named pipes for GSOC

2008-03-27 Thread Cesar Izurieta
On Wed, Mar 26, 2008 at 3:42 AM, Kai Blin <[EMAIL PROTECTED]> wrote: > On Wednesday 26 March 2008 02:24:35 Cesar Izurieta wrote: > > Besides the FUSE project for GSOC I see two items listed on the > > http://wiki.winehq.org/SummerOfCode page: > > > > # Better ISO FUSE file system integration >

Re: Fw: Re: Google Summer of Code 2008 - joined openprinting+wine project?

2008-03-27 Thread Hin-Tak Leung
Thanks for the info... I have updated the linux foundation GSOC page with some of my ideas. Naively, I think it is almost scriptable - get cups to dump the input as temp postscript, use wine to run win32 ghostscript (which works quite well in wine, my first-hand experience) to render through GD

RE: GSOC proposal - control panel

2008-03-27 Thread Rolf Kalbermatter
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On-topic: CPls the normal way -> no-go. Binary CPls compiled > on 'doze or with a 'doze compiler under wine -> yes. I may be very off here but isn't Wine's LoadLibrary/GetProcAddress able to deal with wine shared library modules, even if they are n

Re: comdlg32->printdlg: bug fixed

2008-03-27 Thread Michael Stefaniuc
Vitaly Perov wrote: > Bug is the following: > When a application is responsible for printing multiple copies printer > prints > X^2 copies (4 instead of 2, 9 instead of 3 ...) > It happen bacause application already prepared requested copies, and printer > driver prints copies ( number placed i

Re: prevents WM_DISPLAYCHANGE message being sent when a call to ChangeDisplaySettingsEx fails due to the requested change to the display not occurring.

2008-03-27 Thread chris morgan
thanks for the feedback, i'm new to this so it's very much appreciated - helped a lot. I've updated the patch which hopefully covers the issues raised, but wanted to ask about the returning of an error: > w.r.t. the implementation: > * ChangeDisplaySettings returns a long > (http://msdn2.micr

Re: GSOC proposal - control panel

2008-03-27 Thread Owen Rudge
> What I and the other Ubuntu UI people would really like to see is the > ability to uninstall Wine programs from within gnome-app-install (The > Gnome applet the user interacts with after selecting > Applications->Add/Remove). > > The UI is a fairly intuitive step - just add a "Windows Application

Re: [1/2] Added a test: registering device interface and getting devicepath

2008-03-27 Thread Alexander Morozov
В сообщении от Thursday 27 March 2008 16:24:52 Dmitry Timoshkov написал(а): > "Alexander Morozov" <[EMAIL PROTECTED]> wrote: > > Changelog: > > Added a test for setupapi: registering device interface and getting > > device path > > Please consistently print GetLastError() values as %u (not %08x or

Re: GSOC proposal - control panel

2008-03-27 Thread pure_evil
Sorry bout that, went a lil' /too/ paranoid. Thing is, I've spent so many days obsessing with the cpls, trying to get anything resembling a somewhat stable dev environment to produce anything resembling a *compilable* code, reverse-engineering Makefiles, and Makefile.ins, and defs and specs and

Re: GSOC proposal - control panel

2008-03-27 Thread Owen Rudge
> No dice. > CPls are DLLs that export a function - CPlApplet(). > winegcc coughs on dllexport. - not implemented. > I've been hacking at it for days on end now. > Result: CPl can be compiled under windows and run under wine. CPls > compiled > with winegcc don't export that function => not treated

Re: [1/2] Added a test: registering device interface and gettingdevicepath

2008-03-27 Thread Juan Lang
> GetLastError() returns an unsigned value, and winerror.h lists error values > in decimal (if anyone really wants to match a trace with a symbolic name). That's not strictly true. The cryptoapi errors are defined as HRESULTs , but are returned via GetLastError. More relevant to this patch is

Re: GSOC proposal - control panel

2008-03-27 Thread Remco
On Thu, Mar 27, 2008 at 4:03 PM, <[EMAIL PROTECTED]> wrote: > > A DLL compiled as a winelib DLL won't be parsed by a tool that reads PE > > DLLs, because winelib DLLs are Elf shared objects. Use winedump instead. > > Precisely. Easy to distinguish between wine and doze Dlls. Wine is easily det

Re: setupapi: Implement pSetupGetField, with tests.

2008-03-27 Thread James Hawkins
On Thu, Mar 27, 2008 at 10:52 AM, Dmitry Timoshkov <[EMAIL PROTECTED]> wrote: > "James Hawkins" <[EMAIL PROTECTED]> wrote: > > >> What's the reason for checking the HeapFree here? Or what's the reason > for doing > >> it at all? > >> > > > > To show that the value returned is not in the hea

Re: setupapi: Implement pSetupGetField, with tests.

2008-03-27 Thread Dmitry Timoshkov
"James Hawkins" <[EMAIL PROTECTED]> wrote: >> What's the reason for checking the HeapFree here? Or what's the reason for >> doing >> it at all? >> > > To show that the value returned is not in the heap. Isn't any of HeapValidate or HeapSize better in that case? -- Dmitry.

Re: setupapi: Implement pSetupGetField, with tests.

2008-03-27 Thread James Hawkins
On Thu, Mar 27, 2008 at 7:06 AM, Paul Vriens <[EMAIL PROTECTED]> wrote: > Hi James, > > I'm looking into a crash of the setupapi/parser test on Vista. > > It crashes in this piece: > > 465 ret = HeapFree( GetProcessHeap(), 0, (LPVOID)field ); > 466 ok( !ret, "Expected HeapFree

Re: Contributing

2008-03-27 Thread James Hawkins
On Thu, Mar 27, 2008 at 12:43 AM, Travis Athougies <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to help contribute to WINE because I use it so much yet > I've never actually contributed to it. I was wondering if there are > any simple bugs or other tasks that someone new to WINE development

Re: GSOC proposal - control panel

2008-03-27 Thread pure_evil
> __declspec(dllexport) is a MSVC-only feature. Hence, when compiling with > gcc (even using winegcc) it won't actually export the function. As has > been stated before, you need to use a .spec or .def file to export it. Yes. > A DLL compiled as a winelib DLL won't be parsed by a tool that reads

Re: GSOC proposal - control panel

2008-03-27 Thread Robert Shearman
[EMAIL PROTECTED] wrote: > No dice. > CPls are DLLs that export a function - CPlApplet(). > winegcc coughs on dllexport. - not implemented. > __declspec(dllexport) is a MSVC-only feature. Hence, when compiling with gcc (even using winegcc) it won't actually export the function. As has been s

Re: [1/2] Added a test: registering device interface and gettingdevicepath

2008-03-27 Thread Dmitry Timoshkov
"Paul Vriens" <[EMAIL PROTECTED]> wrote: > Is this just for this file or do you generally want %u instead of %d/%08x ? GetLastError() returns an unsigned value, and winerror.h lists error values in decimal (if anyone really wants to match a trace with a symbolic name). -- Dmitry.

Re: [1/2] Added a test: registering device interface and getting devicepath

2008-03-27 Thread Paul Vriens
Paul Vriens wrote: > Dmitry Timoshkov wrote: >> "Alexander Morozov" <[EMAIL PROTECTED]> wrote: >> Please consistently print GetLastError() values as %u (not %08x or %d), otherwise the test looks good to me. >>> Edit every test in tests/devinst.c or only testRegisterAndGetDetail? >> >> My

Re: [Tools 3/6] winetest: Fix merging of the individual test results into one group result, especially when they all report the dll is missing or that the test crashed, etc.

2008-03-27 Thread Francois Gouget
On Thu, 27 Mar 2008, Paul Vriens wrote: [...] > > +sub min_to_max($) > > +{ > > +my ($minmax)[EMAIL PROTECTED]; > > +return $minmax->[0] if ($minmax->[0] == $minmax->[1]); > > +return "$minmax->[0] to $minmax->[1]"; > > +} > > + > > Don't we need quotes around "x to y"? Firebug compla

Re: [1/2] Added a test: registering device interface and getting devicepath

2008-03-27 Thread Paul Vriens
Dmitry Timoshkov wrote: > "Alexander Morozov" <[EMAIL PROTECTED]> wrote: > >>> Please consistently print GetLastError() values as %u (not %08x or %d), >>> otherwise the test looks good to me. >> Edit every test in tests/devinst.c or only testRegisterAndGetDetail? > > My comment was about newly ad

RE: GSOC proposal - control panel

2008-03-27 Thread pure_evil
No dice. CPls are DLLs that export a function - CPlApplet(). winegcc coughs on dllexport. - not implemented. I've been hacking at it for days on end now. Result: CPl can be compiled under windows and run under wine. CPls compiled with winegcc don't export that function => not treated as control

Re: [1/2] Added a test: registering device interface and getting devicepath

2008-03-27 Thread Dmitry Timoshkov
"Alexander Morozov" <[EMAIL PROTECTED]> wrote: > > Please consistently print GetLastError() values as %u (not %08x or %d), > > otherwise the test looks good to me. > > Edit every test in tests/devinst.c or only testRegisterAndGetDetail? My comment was about newly added code. If there are other p

Re: [Tools 3/6] winetest: Fix merging of the individual test results into one group result, especially when they all report the dll is missing or that the test crashed, etc.

2008-03-27 Thread Paul Vriens
Francois Gouget wrote: > Merge all the data for a given unit test to a single structure instead of > scattering them into multiple hashtables. > The new result data structure makes it possible for the same code to work for > both group and individual report results. > --- > > This fixes the many

Re: [2/2] Setupapi patch

2008-03-27 Thread Dmitry Timoshkov
"Alexander Morozov" <[EMAIL PROTECTED]> wrote: > +if (ReferenceString && lstrlenW(ReferenceString)) > { > /* space for a hash between string and reference string: */ > len += lstrlenW(ReferenceString) + 1; > @@ -258,10 +258,10 @@ static LPWSTR SETUPDI_CreateSymbolicLink

Re: widl: Use is_string_type for detecting strings in write_typeformatstring_var to make it consistent with write_remoting_arg.

2008-03-27 Thread Robert Shearman
Alexandre Julliard wrote: > Robert Shearman <[EMAIL PROTECTED]> writes: > > >> Fix the is_string_type function used for detecting strings by only >> examining aliases instead of both aliases and pointers. This is due to >> the requirement that pointers to strings be handled as pointers and so >>

Re: midl question

2008-03-27 Thread Dmitry Timoshkov
"Alistair Leslie-Hughes" <[EMAIL PROTECTED]> wrote: > In an IDL file I need to define the following > typedef HRESULT (__stdcall *FExecuteInAppDomainCallback) (void* cookie); > > How do i get midl to understand what __stdcall is defined to? indexsrv.idl does: cpp_quote("struct tagTEXT_SOURCE;")

Re: [1/2] Added a test: registering device interface and getting devicepath

2008-03-27 Thread Dmitry Timoshkov
"Alexander Morozov" <[EMAIL PROTECTED]> wrote: > Changelog: > Added a test for setupapi: registering device interface and getting device > path Please consistently print GetLastError() values as %u (not %08x or %d), otherwise the test looks good to me. -- Dmitry.

RE: midl question

2008-03-27 Thread Alistair Leslie-Hughes
> Date: Thu, 27 Mar 2008 12:42:54 +> From: [EMAIL PROTECTED]> To: [EMAIL > PROTECTED]> CC: wine-devel@winehq.org> Subject: Re: midl question> > Alistair > Leslie-Hughes wrote:> > Hi,> > > > In an IDL file I need to define the > following> > typedef HRESULT (__stdcall *FExecuteInAppDomainCa

Re: midl question

2008-03-27 Thread Robert Shearman
Alistair Leslie-Hughes wrote: > Hi, > > In an IDL file I need to define the following > typedef HRESULT (__stdcall *FExecuteInAppDomainCallback) (void* cookie); > > How do i get midl to understand what __stdcall is defined to? midl or widl? AFAIK midl supports the __stdcall keyword. -- Rob S

RE: midl question

2008-03-27 Thread Alistair Leslie-Hughes
> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: wine-devel@winehq.org> > Subject: Re: midl question> Date: Thu, 27 Mar 2008 19:50:34 +0800> > > "Alistair Leslie-Hughes" <[EMAIL PROTECTED]> wrote:> > > In an IDL file I > need to define the following> > typedef HRESULT (__stdcall > *FEx

Re: setupapi: Implement pSetupGetField, with tests.

2008-03-27 Thread Paul Vriens
Hi James, I'm looking into a crash of the setupapi/parser test on Vista. It crashes in this piece: 465 ret = HeapFree( GetProcessHeap(), 0, (LPVOID)field ); 466 ok( !ret, "Expected HeapFree to fail\n" ); 467 ok( GetLastError() == ERROR_INVALID_PARAMETER, 468

midl question

2008-03-27 Thread Alistair Leslie-Hughes
Hi, In an IDL file I need to define the following typedef HRESULT (__stdcall *FExecuteInAppDomainCallback) (void* cookie); How do i get midl to understand what __stdcall is defined to? Best Regards Alistair Leslie-Hughes

Re: GSOC proposal - control panel

2008-03-27 Thread Chris Robinson
On Thursday 27 March 2008 03:59:54 am Scott Ritchie wrote: > The UI is a fairly intuitive step - just add a "Windows Applications" > category and list the installed Wine apps on the right. Once that's > done, we don't need a special Wine program for uninstalling anymore, > since we can expand the

Re: GSOC proposal - control panel

2008-03-27 Thread Scott Ritchie
Owen Rudge wrote: > The examples given on the GSOC wiki > pages (basic desktop/screen resizing, general network information, and font > details) would be good applets for me to implement, but I would also be > interested in working on some other applets, such as an Add/Remove Programs > applet,

Re: widl: Use is_string_type for detecting strings in write_typeformatstring_var to make it consistent with write_remoting_arg.

2008-03-27 Thread Alexandre Julliard
Robert Shearman <[EMAIL PROTECTED]> writes: > Fix the is_string_type function used for detecting strings by only > examining aliases instead of both aliases and pointers. This is due to > the requirement that pointers to strings be handled as pointers and so > not detected as strings. This breaks

Re: [PATCH] user32: add a DrawText test for bug 12226.

2008-03-27 Thread Alexandre Julliard
"Lei Zhang" <[EMAIL PROTECTED]> writes: > +static void test_Bug12226(void) > +{ Please name functions according to what they do, not their bug number. The code must be understandable without having to look things up in bugzilla. In any case this should most likely go into the existing test_DrawTe

Re: [3/5] D3D8: Reject broken normal declaration types with fixed function

2008-03-27 Thread Alexandre Julliard
Stefan Dösinger <[EMAIL PROTECTED]> writes: > From d9182d3da1416e0bfa06b1fe879c4c74c66b0c3e Mon Sep 17 00:00:00 2001 > From: Stefan Doesinger <[EMAIL PROTECTED]> > Date: Wed, 12 Mar 2008 01:06:38 +0100 > Subject: [PATCH] D3D8: Reject broken normal declaration types with fixed > function This doe

Re: [GSoC][RFC] Case Insensitive Filesystem

2008-03-27 Thread Marc Andre Tanner
On Wed, Mar 26, 2008 at 04:17:57PM -0700, Scott Ritchie wrote: > Alexandre Julliard wrote: > > Marc Andre Tanner <[EMAIL PROTECTED]> writes: > > > >> Yes that's true the case information is lost but is it really needed? > >> If you create the files with the original mixed case you will have to >