visual studio 2005 configuration
-
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.
-
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.
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
-
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
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.
-
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.
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++