On Wed, 2007-08-22 at 23:36 +0200, mkalkal wrote:
> In order to compile the app I had to modify mingw headers:
> 
> --- /opt/mingw32ce/arm-wince-mingw32ce/include/aygshell.h~       
> 2007-08-17 23:00:36.000000000 +0200
> +++ /opt/mingw32ce/arm-wince-mingw32ce/include/aygshell.h      
> 2007-08-17 23:00:36.000000000 +0200
> @@ -14,9 +14,6 @@
>  #ifdef __cplusplus
>  extern "C" {
>  #endif
> +#define SHCMBM_SETSUBMENU      (WM_USER + 400)
> +#define SHCMBM_GETSUBMENU      (WM_USER + 401)
> +#define SHCMBM_GETMENU         (WM_USER + 402)

I got away with only one of those : SHCMBM_GETSUBMENU .
Where did you obtain the values you show ? I got 0x0591 from a some
website.

> and
> 
> --- /opt/mingw32ce/arm-wince-mingw32ce/include/wingdi.h~        
> 2007-08-17 23:10:38.000000000 +0200
> +++ /opt/mingw32ce/arm-wince-mingw32ce/include/wingdi.h 2007-08-17 
> 23:10:38.000000000 +0200
> @@ -2722,7 +2722,7 @@
>  WINGDIAPI HDC WINAPI CreateEnhMetaFileA(HDC,LPCSTR,LPCRECT,LPCSTR);
>  WINGDIAPI HDC WINAPI CreateEnhMetaFileW(HDC,LPCWSTR,LPCRECT,LPCWSTR);
>  WINGDIAPI HFONT WINAPI 
> CreateFontA(int,int,int,int,int,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPCSTR);
> -WINGDIAPI HFONT WINAPI 
> CreateFontW(int,int,int,int,int,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPCWSTR);
> +//WINGDIAPI HFONT WINAPI 
> CreateFontW(int,int,int,int,int,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPCWSTR);
>  WINGDIAPI HFONT WINAPI CreateFontIndirectA(const LOGFONTA*);
>  WINGDIAPI HFONT WINAPI CreateFontIndirectW(const LOGFONTW*);
>  WINGDIAPI HPALETTE WINAPI CreateHalftonePalette(HDC);

Hmm, I tackled that one differently, your solution looks better than
mine.

> Finally succeed at compiling ,but app doesnt't work (in comparison with 
> binary wersion provided in sourceforge.net download page) ,so
> I thing it is compiler issue. When I run the app it displays main window 
> ,but I can't see menu bar ,and app exits after about 1 second.

I had checked whether the app started up, but payed no attention to
behaviour. I confirm what you describe.

The function that loads the menu appears to use SHFindMenuBar and
SHCreateMenuBar. I recall that some of the functions in libaygshell
weren't verified to work yet; they may have incorrect mapping in
src/cegcc/importlibs/defs/aygshell.def .

        Danny
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to