找回密码
 注册
搜索
查看: 3882|回复: 0

[收藏]让VC6.0写出来的程序在WinXP下显示为XP风格

[复制链接]
发表于 2004-5-7 13:27:18 | 显示全部楼层 |阅读模式
1. 在资源文件里选择插入,选择Custom,然后输入资源类型为24,不要输入其他的。& F1 V! u, |7 k+ U# z* Z6 S/ I  ?7 x
# ?: ], Q# p0 G3 R1 N6 X& G! m* m
2. 将下面的XML代码拷入编辑器:
4 _, E1 f9 s) j- T) b' Q! M& g, q; b/ F4 x# n3 @
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> : Q4 h% j- U- r' s
<assembly   ^# }2 K, \0 Z/ \, @; x* i6 h& ^
xmlns="urn:schemas-microsoft-com:asm.v1"
5 K# s* x( l/ g" m/ a4 N* B& Y' O, lmanifestVersion="1.0">$ v5 L7 a; K6 j
<assemblyIdentity
  Z2 u$ c6 p# _: L& AprocessorArchitecture="x86" 3 I* M. z/ N! l; ?! y
version="5.1.0.0"
- g4 O. {( b4 ]0 \( n4 Ptype="win32": {6 W7 `2 _* `( G/ Q
name="test.exe"/>
" g! x: e- n5 |<description>Test Application</description>
: }8 ?9 g! W$ [7 ]8 N<dependency>
& `. t- ^5 Z! s& X# r<dependentAssembly>" e+ Z4 {$ w& @+ R- f" K
<assemblyIdentity
7 x9 G2 E+ g4 |/ f+ ttype="win32"
; R  |) r5 W2 p% F7 iname="Microsoft.Windows.Common-Controls"9 g' S4 T6 q* ^/ h3 \" W  j4 |7 i
version="6.0.0.0"
0 |6 A$ ^+ F) @( }% k. dpublicKeyToken="6595b64144ccf1df"
9 N' Z; `3 g$ [' }6 b& d9 W' Ylanguage="*"& V$ B3 B  s5 A# g* V
processorArchitecture="x86"/>
4 j4 X9 e. g+ R2 ?# @" |</dependentAssembly>
+ D3 f! }+ J; Y' Y; r7 s</dependency>4 B  x& b, q$ x% ]* x# \7 e1 c* j
</assembly># y; L; e/ N1 C# G* {
1 M3 w% v8 r5 t% {
3. 将资源的ID改为1,一定要是1。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|宁德市腾云网络科技有限公司 ( 闽ICP备2022007940号-5|闽公网安备 35092202000206号 )

GMT+8, 2025-6-19 11:56 , Processed in 0.014952 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表