Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- From: "Daniel Mattsson" <danmat378852@xxxxxxxxxxxx>
- Date: Tue, 3 May 2005 18:25:11 +0200
Thanks, Bruce I will try that!
I cannot connect remote file viewer without having the sdk installed, if the
sdk is not installed I have this options to connect to:
Select a Windows CE device:
Standard SDK Emulator->StandardSDK Emulator
and that uses a different image and and the standard sdk, so this I don´t
whant to connect to!
My name of the Platform is Halloween, if I choose built and install the sdk
I have this options to connect to, besides the others :
Halloween->Halloween Emulator
->Halloween Device
So without installing the sdk I cannot connect to anything, and not from
Embedded Visual C++ either.
Do you have any magic way to connect that I don´t know about?
"Bruce Eitman (eMVP)" <beitmannospam@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:OjkWZa$TFHA.2172@xxxxxxxxxxxxxxxxxxxxxxx
> The remote file view can certainly connect to the device without an SDK.
> I
> do it all the time with both PB and eVC.
>
> You could be on to something with your question about whether GWES is
> ready.
> Try using IsAPIReady() which is documented in PB Help.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> beitman AT applieddata DOT net
>
> Applied Data Systems
> www.applieddata.net
> An ISO 9001:2000 Registered Company
> Microsoft WEP Gold-level Member
>
>
> "Daniel Mattsson" <danmat378852@xxxxxxxxxxxx> wrote in message
> news:OR80P0%23TFHA.3840@xxxxxxxxxxxxxxxxxxxxxxx
>> Ok, here are some explanation to your questions:
>>
>> 1. What do you mean by " I assumed that the bmp is put to the \windows
>> > dir", why don't you check to make sure that it is there? You can use
>> > windows explorer or the remote file viewer.
>>
>> I didn´t know where the file was put by specifying :
>>
>> nclient.bmp $(_FLATRELEASEDIR)\nclient.bmp NK S
>>
>> and specifying this in Settings->PreMakeImage
>>
>> copy
>>
> C:\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\SKINNABLEUI\GWEXP\GCACHEVIEWXP\RES\ncl
> ient.bmp
>> %_FLATRELEASEDIR%\nclient.bmp
>>
>> I tried to check if it was there, but without having build a sdk and
>> installed it, the remote file viewer cannot connect to the image.
>>
>> I didn´t think of using the explorer, my fault.
>>
>> Anyway the file is there, but SHLoadDIBitmap returns NULL so I get the
>> ASSERT after the next line.
>>
>> This is the code from gcacheviewxp.cpp:
>>
>> void
>> CacheView_t::
>> Init(
>> HINSTANCE hInstance,
>> bool bLargeUi
>> )
>> {
>>
>> HBITMAP hbmWidgets = NULL;
>>
>> //hbmWidgets = LoadBitmapW_I (hInstance, MAKEINTRESOURCE(GWES_WIDGETS));
>> This is the original code.......
>>
>> hbmWidgets =SHLoadDIBitmap(L"windows\\widgets.bmp");
>>
>> ASSERT (hbmWidgets);
>>
>>
>> I have tried to load the bitmap from an extern application using Embedded
>> Visual C using the sdk built from my image and the bitmap loaded
> correctly.
>>
>> So it can´t be anything wrong with the bitmap, it is there but somehow
>> SHLoadDIBitmap returns NULL anyway.
>>
>> And I know that it should work, this is from
>> C:\WINCE500\PUBLIC\WCESHELLFE\OAK\CTLPNL\CPLMAIN\screen.cpp:
>>
>> HBITMAP LoadWallpaperBitmap(HWND hDlg, LPCTSTR pszPath, BOOL fTile)
>> {
>>
>> HBITMAP hbm = NULL;
>>
>> if(pszPath && pszPath[0])
>>
>> {
>>
>> DEBUGMSG(ZONE_SCREEN, (L"Calling SHLoadDIBitmap('%s')\r\n", pszPath));
>>
>> hbm = SHLoadDIBitmap(pszPath);
>>
>> if (!hbm)
>>
>> ...........
>>
>> It is the same code, so how can it be that it doesn´t work in
>> CacheView_t::Init, could it be that the GWES is not initiated?
>>
>> And does anyone have any solution, could I Ioad it in some other way.
>>
>> BTW I wan´t to be able to change the appearance of all the controls that
> is
>> why I cannot load the bitmap from any resource .
>>
>> Thanks for helping me out, any suggestions are more then welcome!
>>
>>
>> "Bruce Eitman (eMVP)" <beitmannospam@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote
> in
>> message news:%23sYpup$SFHA.3936@xxxxxxxxxxxxxxxxxxxxxxx
>> > I'm no expert on loading bitmaps, but:
>> >
>> > 1. What do you mean by " I assumed that the bmp is put to the \windows
>> > dir", why don't you check to make sure that it is there? You can use
>> > windows explorer or the remote file viewer.
>> >
>> > 2. What is the assert that you want us to tell you about?
>> >
>> > --
>> > Bruce Eitman (eMVP)
>> > Senior Engineer
>> > beitman AT applieddata DOT net
>> >
>> > Applied Data Systems
>> > www.applieddata.net
>> > An ISO 9001:2000 Registered Company
>> > Microsoft WEP Gold-level Member
>> >
>> >
>> > "Daniel Mattsson" <danmat378852@xxxxxxxxxxxx> wrote in message
>> > news:eG3NK53SFHA.1044@xxxxxxxxxxxxxxxxxxxxxxx
>> >> I´m trying to load a bitmap using SHLoadDIBitmap and have added
>> > nclient.bmp
>> >> to the release folder and added the following to project.bib:
>> >>
>> >> nclient.bmp $(_FLATRELEASEDIR)\nclient.bmp NK S
>> >>
>> >> Then I use this to load the bitmap:
>> >>
>> >> HBITMAP hbmNonClientWidgets=NULL;
>> >>
>> >> hbmNonClientWidgets =SHLoadDIBitmap(L"nclient.bmp");
>> >>
>> >> But SHLoadDIBitmap returns NULL so it does not seem to find the bmp,
>> >> I
>> >> assumed that the bmp is put to the \windows dir on the device so I
> tried
>> > to
>> >> load it from there too:
>> >>
>> >> hbmNonClientWidgets =SHLoadDIBitmap(L"\\windows\\nclient.bmp");
>> >>
>> >>
>> >>
>> >> But that didn´t work either, am I doing something wrong or?
>> >>
>> >> Regards, Dani
>> >>
>> >>
>> >
>> >
>>
>>
>
>
.
- Follow-Ups:
- Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- From: Bruce Eitman \(eMVP\)
- Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- References:
- Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- From: Daniel Mattsson
- Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- From: Bruce Eitman \(eMVP\)
- Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- Prev by Date: Re: audio stream type identification
- Next by Date: Re: PXA270 - Sleep & Wake
- Previous by thread: Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- Next by thread: Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- Index(es):
Relevant Pages
|