Re: comctl32.dll: Running siap and modules under wine, first steps

2005-09-28 Thread Maximiliano Curia
On Monday 26 September 2005 15:00, Alex Villací­s Lasso wrote:
 --- wine-20050830-cvs/dlls/oleaut32/typelib.c   2005-09-21
 10:39:22.0 -0500
 +++ wine-20050830-cvs-patch/dlls/oleaut32/typelib.c 2005-09-24
 20:34:32.0 -0500

 This patch executes the create interface code when typekind ==
 TKIND_DISPATCH
 and wTypeFlags has TYPEFLAG_FDISPATCHABLE, regardless of the value of
 hRefType,
 in addition to the previous condition.

I backported this patch to the version 20050310.
If you are willing to let the test application available I could check the 
successfullness.

 --- wine-20050830-cvs/dlls/ole32/defaulthandler.c2005-09-23
 10:51:36.0 -0500
 +++ wine-20050830-cvs-patch/dlls/ole32/defaulthandler.c2005-09-25
 19:19:31.0 -0500
 @@ -1422,7 +1422,7 @@
 * This is necessary because it's the only time the non-delegating
 * IUnknown pointer can be returned to the outside.
 */
 -  if (pUnkOuter  IsEqualIID(IID_IUnknown, riid))
 +  if (pUnkOuter  !IsEqualIID(IID_IUnknown, riid))
  return CLASS_E_NOAGGREGATION;

/*

IsEqualIID was introduced after the version 20050310 that I'm using, and it 
seem that the:
  if ( (pUnkOuter!=NULL) 
   (memcmp(IID_IUnknown, riid, sizeof(IID_IUnknown)) != 0) )
was replaced wrongly replaced.

The (pUnkOuter  !IsEqualIID(IID_IUnknown, riid)), should have the same 
efect as the previous code.

 Mr. Maximiliano Curia, could you please indicate where to get sample
 modules for SIAP? The default installer
 doesn't seem to come with any modules inside. Of course, this might be
 yet another Wine bug, so please confirm.

Yes, of course, they are in:
http://www.afip.gov.ar/seccion_rg.asp#programas

The most used are:
ftp://www.afip.gov.ar/iva40/iva_v4r1.exe (Taxes)
ftp://www.afip.gov.ar/sijyp25/sijyp.25r0.exe (Pensions)

Although, there are different programs for different activities (and I use 12 
of these programs), these two are used by most of them.

-- 
Saludos,
 /\/\ /\  `/




Re: comctl32.dll: Running siap and modules under wine, first steps

2005-09-19 Thread Maximiliano Curia
On Saturday 17 September 2005 20:45, Robert Shearman wrote:
 Start the program with WINEDEBUG=+treeview wine program.exe 
 treeview.log and send the treeview log to the list (compressed if it is
 over 50kB).

It's about 31 Kb, it gets to the line 272 to open the main window and showing 
the treeview, as shown in the screenshot. The rest is just the program 
closing.

I don't know if this could actually help but, I've noticed, after looking 
fiercely at the log, that the tree is being set to expand, but the Paint 
seems to only be calling DrawItem to the root (twice), but looking at the 
code I can't tell wheter the TREEVIEW_Expand is not setting the siblings to 
visible or if TREEVIEW_Paint is just failling.

-- 
Saludos,
 /\/\ /\  `/
trace:treeview:TREEVIEW_Register 
err:statusbar:StatusWindowProc unknown msg 2210 wp=0001 lp=00010036
fixme:time:GetCalendarInfoA (0409,0001,2030,(nil),0,0x7fb9ee58): 
quarter-stub
fixme:time:GetCalendarInfoW (0409,0001,2030,(nil),0,0x7fb9ee58): 
quarter-stub
err:statusbar:StatusWindowProc unknown msg 2210 wp=0001 lp=0001006a
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0081 wp= lp=7fb9f4d4
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0083 wp= lp=7fb9f294
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0001 wp= lp=7fb9f4d4
trace:treeview:TREEVIEW_Create wnd 0x2007c, style 4622
trace:treeview:TREEVIEW_NotifyFormat (hwndFrom=0x10068, nCommand=4)
trace:treeview:TREEVIEW_NotifyFormat format=1
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0030 wp=0b84 lp=
trace:treeview:TREEVIEW_SetFont 0xb84 0
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 1107 wp=000d lp=
trace:treeview:TREEVIEW_SetIndent 
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0005 wp= lp=009d0172
trace:treeview:TREEVIEW_SetFirstVisible (nil): null item
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0003 wp= lp=00890002
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 2210 wp=0001 lp=0002007c
trace:treeview:TREEVIEW_WindowProc Unknown msg 2210 wp=0001 lp=0002007c
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0018 wp=0001 lp=
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0046 wp= lp=7fb9f204
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0047 wp= lp=7fb9f204
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0085 wp=0001 lp=
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0014 wp=00a8 lp=
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 1109 wp= lp=
trace:treeview:TREEVIEW_SetImageList 0,(nil)
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 1106 wp= lp=
trace:treeview:TREEVIEW_GetIndent 
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 1107 wp=0013 lp=
trace:treeview:TREEVIEW_SetIndent 
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 000f wp=00a8 lp=
trace:treeview:TREEVIEW_Paint 
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 0014 wp=0148 lp=
trace:treeview:TREEVIEW_SendCustomDrawNotify drawstage:1 hdc:0xa8
trace:treeview:TREEVIEW_SendRealNotify wParam=0, lParam=2142893472
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 000f wp=00a8 lp=
trace:treeview:TREEVIEW_Paint 
trace:treeview:TREEVIEW_SendCustomDrawNotify drawstage:1 hdc:0xa8
trace:treeview:TREEVIEW_SendRealNotify wParam=0, lParam=2142893472
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 1109 wp= lp=
trace:treeview:TREEVIEW_SetImageList 0,(nil)
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 1109 wp= lp=7ff54800
trace:treeview:TREEVIEW_SetImageList 0,0x7ff54800
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 1101 wp= lp=
trace:treeview:TREEVIEW_DeleteItem TVI_ROOT
trace:treeview:TREEVIEW_ValidItem invalid item (nil)
trace:treeview:TREEVIEW_ValidItem invalid item (nil)
trace:treeview:TREEVIEW_ValidItem invalid item (nil)
trace:treeview:TREEVIEW_SetFirstVisible (nil): null item
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 000b wp= lp=
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 1100 wp= lp=7fb9f68c
trace:treeview:TREEVIEW_InsertItemT parent 0x7ff3a018 position 0x0002: 
callback
trace:treeview:TREEVIEW_DoSetItemT item 0x7ff57518
trace:treeview:TREEVIEW_DoSetItemT setting callback, item 0x7ff57518
trace:treeview:TREEVIEW_InsertItemT new item 0x7ff57518; parent 0x7ff3a018, 
mask 27
trace:treeview:TREEVIEW_UpdateDispInfo mask 1 callbackMask 23
trace:treeview:TREEVIEW_SendRealNotify wParam=0, lParam=2142892700
trace:treeview:TREEVIEW_UpdateDispInfo same buffer str , len=1, buflen=260
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 110d wp= lp=7fb9f6c8
trace:treeview:TREEVIEW_SetItemT item 1,mask 4
trace:treeview:TREEVIEW_DoSetItemT item 0x7ff57518
trace:treeview:TREEVIEW_WindowProc hwnd 0x2007c msg 1100 wp= lp=7fb9f68c

comctl32.dll: Running siap and modules under wine, first steps

2005-09-17 Thread Maximiliano Curia
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,
 /\/\ /\  `/





comctl32.dll: Running siap and modules under wine, first steps

2005-09-17 Thread Maximiliano Curia
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,
 /\/\ /\  `/


-- 
Saludos,
/\/\ /\  `/