Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?



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
>> >>
>> >>
>> >
>> >
>>
>>
>
>


.



Relevant Pages

  • Re: How to make application work on Symbol MC3000?
    ... but please send me SDK that you are using. ... Windows Application as the project type. ... install the application on the device so it will run properly. ... When I download application from my MC3000, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to make application work on Symbol MC3000?
    ... Best regards, ... But I get ""SmartDeviceApplication1" is not a valid Windows CE ... For simple applications you don't need any Symbol SDK at all. ... Please see the install requirements for the Symbol Mobility ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to make application work on Symbol MC3000?
    ... That's really all I had to install from Symbol. ... I can send you the SDK ... The Smart Device Application Wizard is displayed and I select Pocket ... Windows Application as the project type. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Platform SDK and Visual Studio 6 - broken ?
    ... I had the misfortune of having to return to the Windows platform. ... I needed to install an updated Plaform SDK. ...
    (microsoft.public.vstudio.development)
  • Re: How to make application work on Symbol MC3000?
    ... SDK is for the MC9000 series devices. ... The Smart Device Application Wizard is displayed and I select Pocket ... Windows Application as the project type. ... install the application on the device so it will run properly. ...
    (microsoft.public.dotnet.framework.compactframework)