SystemMouseSpeed=0
GameMouseSpeed=10
Width=1440
Height=900
Colors=32
WaitForVerticalSync=1
PredictMovement=0
Windowed=1
EnableLightFx=0
EnableAudio=0想把其中的EnableAudio=0改成EnableAudio=1,如何实现 谢谢大家了 本人新手最后写的详细点 再次感谢。
GameMouseSpeed=10
Width=1440
Height=900
Colors=32
WaitForVerticalSync=1
PredictMovement=0
Windowed=1
EnableLightFx=0
EnableAudio=0想把其中的EnableAudio=0改成EnableAudio=1,如何实现 谢谢大家了 本人新手最后写的详细点 再次感谢。
GetPrivateProfileString或
GetPrivateProfileInt
读
WritePrivateProfileString写
SystemMouseSpeed=0
GameMouseSpeed=10
Width=1440
Height=900
Colors=32
WaitForVerticalSync=1
PredictMovement=0
Windowed=1
EnableLightFx=0
EnableAudio=0
你的配置文件要改成上面的形式可以使用Get/WritePrivateProfileString(Int)函数来读写配置文件,否则你要自己操作文件指针来实现读写。
http://wenku.baidu.com/view/f7c6588583d049649b6658d2.html
[SET1]
AA=0[SET2]
BB=0
CC=1cfg后缀或者txt、ini后缀都没有关系,都可以用Get/WritePrivateProfileString(Int)
如果不是,你还是用读写文件的方式来做吧