07.04.12

Visual Studio Manifest solution to run your app anywhere!

// for generating exe
/*
1) set \md in [cpp->code generation]
2) build app
3) save from obj dir Kaeto.exe.intermediate.manifest for later
4) set ‘no’ for generating manifest in [linker->manifest]
5) rename Kaeto.exe.intermediate.manifest -> Kaeto.exe.manifest
6) edit Kaeto.exe.manifest, and change version to 8.0.50727.762
7) add Kaeto.exe.manifest in [manifest->input]
8) build app
9) add into app folder ‘Microsoft.VC80.CRT.manifest’, ‘msvcp80.dll’, ‘msvcr80.dll’
10) now it work on all win xp
*/

// for generating dll
/*
1) set \md in [cpp->code generation]
2) build dll
3) set ‘no’ for generating manifest in [linker->manifest]
4) add Microsoft.VC80.CRT.manifest in [manifest->input]
5) build dll
6) add into dll folder ‘Microsoft.VC80.CRT.manifest’, ‘msvcp80.dll’, ‘msvcr80.dll’
7) now it work on all win xp
*/

All example sources and dll and app is here;

Have fun “_^

Advertisements

2 Comments

  1. Kaeto said,

    2007/04/12 at 16:58

    Thx man, will try and reply again.

  2. radioman said,

    2007/04/24 at 19:49

    ..for generating exe, if your compiler generate corect version, you can pass these steps. I reinstall windows, vs8 then sp1, now all versions are corect. If you don’t have sp1, you can still use new runtime, by this method.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: