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. C / C++ / MFC
  4. visual studio 2005 configuration

visual studio 2005 configuration

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++helpdotnetvisual-studio
4 Posts 3 Posters 0 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.
  • D Offline
    D Offline
    Danzy83
    wrote on last edited by
    #1

    How can I configure visual studio 2005 so that if I create a windows API application, it would run on windows xp system that does not have any .net framework installed. With visual c++ 6, this problem does not occur but with visual studio 2005, the application can run only when .net framework is installed on the user's system. How can I configure visual studio 2005 to avoid such problem. Please help.

    N 1 Reply Last reply
    0
    • D Danzy83

      How can I configure visual studio 2005 so that if I create a windows API application, it would run on windows xp system that does not have any .net framework installed. With visual c++ 6, this problem does not occur but with visual studio 2005, the application can run only when .net framework is installed on the user's system. How can I configure visual studio 2005 to avoid such problem. Please help.

      N Offline
      N Offline
      NeoAks007
      wrote on last edited by
      #2

      Which type of Windows application are u making?? MFC application or CLR application?? For standard MFC application you need to install Visual C++ runtime libraries and for standard CLR application .NET is required. Compiling MFC application by static linking may avoid the need to install C++ runtime libraries. A way to avoid libraries for VC++ can be found here[^]>. This method may be tried in VC++ 2005 :)

      modified on Sunday, May 3, 2009 11:16 AM

      D 1 Reply Last reply
      0
      • N NeoAks007

        Which type of Windows application are u making?? MFC application or CLR application?? For standard MFC application you need to install Visual C++ runtime libraries and for standard CLR application .NET is required. Compiling MFC application by static linking may avoid the need to install C++ runtime libraries. A way to avoid libraries for VC++ can be found here[^]>. This method may be tried in VC++ 2005 :)

        modified on Sunday, May 3, 2009 11:16 AM

        D Offline
        D Offline
        Danzy83
        wrote on last edited by
        #3

        The application was programmed neither as MFC nor CLR but rather, in the old style of Win32 API Programming (Windows Application). A typical Win32 application is a very short application shown below.

        #include

        int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow)
        {
        MessageBox(NULL, "I want to make configurations to Visual Studio 2005", "Help", MB_ICONINFORMATION)

        return 0;
        

        }

        The above application, if compiled with Visual Studio 2005 (VC++ 2005) does not run on a system running windows that does not have .net framework installed. The system reports that the application configuration is incorrect, and that the application needs to be reinstalled. However, the same application if compiled with VC++ 6 can run on any system running windows that does not have .net framework installed on it. It can even run on Vista, which I have tried myself. I need to make this configuration so that the application does not require .net framework before it runs.

        C 1 Reply Last reply
        0
        • D Danzy83

          The application was programmed neither as MFC nor CLR but rather, in the old style of Win32 API Programming (Windows Application). A typical Win32 application is a very short application shown below.

          #include

          int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow)
          {
          MessageBox(NULL, "I want to make configurations to Visual Studio 2005", "Help", MB_ICONINFORMATION)

          return 0;
          

          }

          The above application, if compiled with Visual Studio 2005 (VC++ 2005) does not run on a system running windows that does not have .net framework installed. The system reports that the application configuration is incorrect, and that the application needs to be reinstalled. However, the same application if compiled with VC++ 6 can run on any system running windows that does not have .net framework installed on it. It can even run on Vista, which I have tried myself. I need to make this configuration so that the application does not require .net framework before it runs.

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          You can either statically link your application to the C-runtime libraries or install the VC redistributable package on the target computer. This executable can be found here[^]. By the way, this is not the .NET framework which is required but the C-runtime libraries.

          Cédric Moonen Software developer
          Charting control [v2.0] OpenGL game tutorial in C++

          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