Can't run my program on other computers
-
Hi, I have a basic Visual C++/MFC program written with VS .Net 2005 but that doesn't use .NET Framework. I tried to run it on another PC, and it didn't work although I had all the required DLLs in the same directory. It said something like "application could not initialize properly...". I tried to fix this by installing .Net Framework 2.0 (which did not solve the problem) and then using the setup wizard. This eventually worked but I don't know why. I want to be able to run my program from a USB key, without any installation or download. This should be possible since I'm not using the .NET Framework (at least not intentionnally...). I've never had this kind of problem with VS 6.0. Any idea of what I need to do with VS 2005 to make my program standalone ? Thanks
-
Hi, I have a basic Visual C++/MFC program written with VS .Net 2005 but that doesn't use .NET Framework. I tried to run it on another PC, and it didn't work although I had all the required DLLs in the same directory. It said something like "application could not initialize properly...". I tried to fix this by installing .Net Framework 2.0 (which did not solve the problem) and then using the setup wizard. This eventually worked but I don't know why. I want to be able to run my program from a USB key, without any installation or download. This should be possible since I'm not using the .NET Framework (at least not intentionnally...). I've never had this kind of problem with VS 6.0. Any idea of what I need to do with VS 2005 to make my program standalone ? Thanks
maybe you used from services that are only in your system or dlls files_**
**_
whitesky
-
Hi, I have a basic Visual C++/MFC program written with VS .Net 2005 but that doesn't use .NET Framework. I tried to run it on another PC, and it didn't work although I had all the required DLLs in the same directory. It said something like "application could not initialize properly...". I tried to fix this by installing .Net Framework 2.0 (which did not solve the problem) and then using the setup wizard. This eventually worked but I don't know why. I want to be able to run my program from a USB key, without any installation or download. This should be possible since I'm not using the .NET Framework (at least not intentionnally...). I've never had this kind of problem with VS 6.0. Any idea of what I need to do with VS 2005 to make my program standalone ? Thanks
even, you hadn't use any CLR APIs, you might have linked with those DLL. change the project settings accrodingly. SaRath.
_"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
-
maybe you used from services that are only in your system or dlls files_**
**_
whitesky
-
even, you hadn't use any CLR APIs, you might have linked with those DLL. change the project settings accrodingly. SaRath.
_"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
-
Sarath.even, you hadn't use any CLR APIs, you might have linked with those DLL.
I'm not using the "/clr" option in the compile command line... Is there anything else that can make me link with unused DLLs ?
are you linking with MFC DLLs? I dont know more about executable created by VC++ 2005 Check with Dependency walker SaRath.
_"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"