Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Windows XP Problems since updating from VS2005 to VS2008

Windows XP Problems since updating from VS2005 to VS2008

Scheduled Pinned Locked Moved Managed C++/CLI
helpcsharpvisual-studioquestion
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joschwenk666
    wrote on last edited by
    #1

    Sorry, wrong Forum, please delete this Thread Hallo, I upgraded from Visual Studio 2005 to Visual Studio 2008, and converted my Project from from VS2005 to VS2008. But now I get an Error in the following lines:

    // Get the current font
    LOGFONT lFont;
    NONCLIENTMETRICS ncm;
    ncm.cbSize = sizeof(NONCLIENTMETRICS);
    VERIFY(SystemParametersInfo(SPI\_GETNONCLIENTMETRICS, 
    	sizeof(NONCLIENTMETRICS), &ncm, 0));
    lFont = ncm.lfMessageFont; 
    

    SystemParametersInfo() returns false, and there are the following Values in ncm after executing the SystemParametersInfo() Function: When I open my Project in Windows 7, it works without problem. In XP I get an access exeption in msvcr90d.dll when I ignore the failed execution of SystemParametersInfo. Can someone help me? Thank you!

    T 1 Reply Last reply
    0
    • J Joschwenk666

      Sorry, wrong Forum, please delete this Thread Hallo, I upgraded from Visual Studio 2005 to Visual Studio 2008, and converted my Project from from VS2005 to VS2008. But now I get an Error in the following lines:

      // Get the current font
      LOGFONT lFont;
      NONCLIENTMETRICS ncm;
      ncm.cbSize = sizeof(NONCLIENTMETRICS);
      VERIFY(SystemParametersInfo(SPI\_GETNONCLIENTMETRICS, 
      	sizeof(NONCLIENTMETRICS), &ncm, 0));
      lFont = ncm.lfMessageFont; 
      

      SystemParametersInfo() returns false, and there are the following Values in ncm after executing the SystemParametersInfo() Function: When I open my Project in Windows 7, it works without problem. In XP I get an access exeption in msvcr90d.dll when I ignore the failed execution of SystemParametersInfo. Can someone help me? Thank you!

      T Offline
      T Offline
      T2102
      wrote on last edited by
      #2

      Are you generating a manifest file?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups