|
|
1. 在资源文件里选择插入,选择Custom,然后输入资源类型为24,不要输入其他的。
" J* f; F" s( c5 m4 b9 J, l, A9 j; E V/ l. V: M' u, k
2. 将下面的XML代码拷入编辑器:- `8 S8 V& A$ a4 T7 P+ x& r. Y2 l9 v( Z
, A8 ?. c# b$ n' `* O2 p<?xml version="1.0" encoding="UTF-8" standalone="yes"?> # [# r% S( R( t( y8 L/ y6 K- ]* Y5 T
<assembly " H1 r1 R! D% T" C) p/ S3 N% _& ?
xmlns="urn:schemas-microsoft-com:asm.v1" " M, r6 R+ _9 D
manifestVersion="1.0">
! v) Y0 Y, I. s' i- t4 ^. X<assemblyIdentity F0 f2 v; b5 i! N# `2 c7 T
processorArchitecture="x86" 0 a" T: M$ U g% a1 S' t2 V+ x7 y
version="5.1.0.0") O2 X% B+ u! Q
type="win32"- B/ l, G" f8 I1 o1 f
name="test.exe"/>' W- o/ L9 y6 s" H4 p
<description>Test Application</description>/ p/ P* G8 \, q ~: i* O2 y7 \$ Y3 n' I7 E
<dependency>
& K- J; ?6 |/ D3 {<dependentAssembly>
5 P) |+ v5 a2 w1 R: e<assemblyIdentity
, j+ c. f$ x8 E7 stype="win32"
5 v$ `6 t5 m: K! dname="Microsoft.Windows.Common-Controls" B) O) W! z5 { h8 ~
version="6.0.0.0"
4 ]9 Y9 N" X- g6 \+ v5 EpublicKeyToken="6595b64144ccf1df"% Y% H- w! C; P/ z" ^. X
language="*"
+ E: a) _; B' |: o3 rprocessorArchitecture="x86"/>
( m0 _3 E1 ^; K</dependentAssembly>
+ i* t+ x# k% D" {6 z0 M9 O</dependency>
* _0 x" V/ {- V% K0 J7 U</assembly>5 P: X6 N; S4 r, L) C. s
4 c" i8 z/ n& W: w- t2 B
3. 将资源的ID改为1,一定要是1。 |
|