首页
社区
课程
招聘
[讨论][求助]用记事本打开EXE程序,看到的全字符串,怎么转换半角啊?
发表于: 2009-5-3 23:06 3991

[讨论][求助]用记事本打开EXE程序,看到的全字符串,怎么转换半角啊?

2009-5-3 23:06
3991
用记事本打开EXE程序,看到的全字符串,怎么转换半角啊?
比如下一段
R M  T F R X H I G H L I G H T E D I T O R F O R M  T F R X M E M O E D I T O R F O R M  T F R X N E W I T E M F O R M  T F R X O B J E C T I N S P E C T O R  T F R X O P T I O N S E D I T O R  T F R X P A G E E D I T O R F O R M  T F R X P A G E S E T T I N G S F O R M  T F R X P A S S W O R D F O R M  T F R X P I C T U R E E D I T O R F O R M
T F R X P O P U P F O R M  T F R X P R E V I E W F O R M  T F R X P R I N T D I A L O G T F R X P R N I N I T T F R X P R O G R E S S  T F R X R E P O R T D A T A F O R M  T F R X R E P O R T E D I T O R F O R M  T F R X R E P O R T T R E E F O R M  T F R X R T F E X P O R T D I A L O G  T F R X S E A R C H D I A L O G  T F R X S T D W I Z A R D F O R M  T F R X S T R I N G S E D I T O R F O R M  T F R X S T Y L E E D I T O R F O R M  T F R X S Y S M E M O E D I T O R F O R M  T F R X T A B O R D E R E D I T O R F O R M  T F R X T X T E X P O R T D I A L O G  T F R X V A R E D I T O R F O R M  T F R X X L S E X P O R T D I A L O G  T F S O R T T L O G I N D I A L O G  T P A S S W O R D D I A L O G T Q R A B O U T B O X          T Q R C O M P E D  T Q R E N V I R O N M E N T E D I T O R  T Q R E X P R E D I T O R F O R M  T Q R E X P R E S S I O N B U I L D E R  T Q R L A B E L E D I T O R F O R M  T Q R P R O G R E S S F O R M  T Q R S T A N D A R D P R E V I E W
T S E A R C H D L G          F R X F O R M A T  F R X H A N D          F R X P E N C I L  F R X Z O O M  M A I N I C O N   2?櫋€3>$k澩塃屔砌拴i??BM?R9传V悕k;粞@?\A鴙4D虘?#H\瞳F鋍~V?溃Jm??ln?@HV?
v€峨脸BY#s%J.?\飡櫇鎓s?懧洿洅2攏2郁>虜搸4Jm{8袸(?.俁GQ?$ぐ雭z3??&恿"??"?Ru?q?rk埂?m+?绶瀦笪s瀥?鐊辳侥彏`舤?b羶Y撝?遌?aF薅}g僕9邨wM?轒齘i0A?1Z?Q?W盟?G_Mw4氳c頢s軉椁╋暏综 扥辆奲拒?D!ギ?綈搦⒐D|5遚?鏽鶬咬?A?E鉏滕60?畮酉e蜨郆Ni*j駄訅?呤浾~噙稕吀局彈錸J铑M嚟-Za>`蟿5蔸榱i`孚B鸎5y?芹?|唒I啼赅煲撬5?x顁

[注意]APP应用上架合规检测服务,协助应用顺利上架!

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 104
活跃值: (73)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
WCHAR* ctow(char *string) 
{ 
	WCHAR *wchr; 
	int wsize=MultiByteToWideChar(CP_ACP, NULL, string, strlen(string), NULL, 0); 
	wchr=new WCHAR[wsize+1];
	if (wchr)
	{
		memset(wchr, 0, sizeof(WCHAR) * (wsize + 1));
		MultiByteToWideChar(CP_ACP, NULL, string, strlen(string), wchr, wsize + 1); 
		wchr[wsize]=0;
	}
 
	return wchr; 
} 

//wchar to char 
char* wtoc(WCHAR *string) 
{ 
	char *chr;
	int csize = WideCharToMultiByte(CP_ACP, NULL, string, wcslen(string), NULL, 0, NULL, NULL);
	chr = new char[csize + 1];
	if (chr)
	{
		memset(chr, 0, sizeof(char) * (csize + 1));
		WideCharToMultiByte(CP_ACP, NULL, string, wcslen(string), chr, csize + 1, NULL, NULL);
		chr[csize] = 0;
	}

	return chr; 
}
2009-5-4 09:33
0
游客
登录 | 注册 方可回帖
返回
//