question

hi guys
how can i compile my project with visual studio that i can run my program in other PC that they dont have visual studio or .net framework ?
please tell me for Win32 and Clr application
i know my grammer is too bad sry :D
Compile program. Take the executable file that is made. That's what runs on your PC; the executable file.

Copy that file onto the other computer. Run it. If your executable wants .NET or some other such, install the .NET libraries using the installer Microsoft provides.
Last edited on
ok how can i do this without install .Net in other PC ?!!!
how can i compile static my project ? or like "Multi-threaded Debug (/MTd)" i think this is static compile my project :-??
closed account (zwA4jE8b)
use the /MT not any of the others, then only kernel32.dll is used, otherwise you need the c runtime libraries. I do not know if this helps with the .net stuff though. but worth a try.
what ?!!! i cant understand your mean ! please explain more
closed account (zwA4jE8b)
in the code generation properties pane change the 'Runtime Library' option to /MT.

I do not know all of the details but I from what I read (a while ago) using this option will allow your application to utilize kernel32.dll for the needed functions, instead of msvcrt.dll.

The use in this is that all windows computers have kernel32.dll but not all of them have msvcrt.dll.

That is all I remember.
this is true but how can i use this ? it take fatal error or link error :-?? when set to /MT
closed account (zwA4jE8b)
well it may not work for you, I just thought it was worth a try. Maybe CLR apps must have .net
Topic archived. No new replies allowed.