Re: eVC++ can't detect resolution

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



From MSDN:
The HI_RES_AWARE resource item can be used to override this behavior for legacy applications. The operating system looks for this special resource item when the legacy application loads. The following procedure adds it to your program, using Microsoft eMbedded Visual C++®.

Note Alternatively, you can add the following line to your resource file directly:

HI_RES_AWARE CEUX {1} // To turn off the emulation layer

To add the HI_RES_AWARE resource item to your program

1. From the Insert menu, select Resource.
2. Click the Custom button.
3. Enter CEUX for the resource type.
4. Set the resource data to 01 00.
5. Click the Properties tab.
6. Rename the item to "HI_RES_AWARE", including quotes. (If the quotes are omitted, HI_RES_AWARE will be incorrectly defined as a numeric value in resource.h, and you will need to go back and delete the line from resource.h.)
7. Deselect the external file checkbox.


zikje wrote:
If I create a project with an eSVG viewer with VS2005 for smart device (MFC), the viewer can detect the 480*640 resolution of the iPAQ hx4700. When I do the same with eVC++ 4.0, the application only seems to deploy on 240*320 resolution. Can I also work on 480*640 with eVC4?
.



Relevant Pages

  • Re: Help please with PPC 2003 SE and switch to 192 DPI
    ... > layer for backwards compatibility with old applications. ... the display appears to legacy applications as a traditional 240 x ... The operating system looks for this special resource ... you can add the following line to your resource file ...
    (microsoft.public.pocketpc.developer)
  • Re: Resource RT_RCDATA (simple question)
    ... It does do for both Frank and myself. ... I imported another one but I wrote "color" for the resource type and this ... It just creates a folder name "color" with the quotes included, ... This gives what I'm looking for but I wanted it under Data folder. ...
    (microsoft.public.vc.mfc)
  • Re: Resource RT_RCDATA (simple question)
    ... It does do for both Frank and myself. ... > I imported another one but I wrote "color" for the resource type and this ... > the resource IDR_COLOR1 with no quotes. ... > This gives what I'm looking for but I wanted it under Data folder. ...
    (microsoft.public.vc.mfc)
  • SBS2008 Odd login issue - The Local Session Manager service failed
    ... The only resolution that I can find is to reboot the server. ... The group or resource is not in the correct state to perform the requested ... "Your system is running low on resources. ... and system event logs and don't see anything that stands out. ...
    (microsoft.public.windows.server.sbs)
  • Re: Frozen propertypages
    ... Under Visual Studio 7, when I add a dialog resource, ... the environment set it disabled by default. ... Thanks for posting your resolution and glad you got it fixed:) ...
    (microsoft.public.win32.programmer.directx.video)