对字符串比较熟悉的同学进来看看------〉
doom 2001-06-08 09:55:00 RegSetValueEx(hKey,"startnotepad",0,REG_SZ,"notepad.exe",15) //Wrong!!
unsigned char str[]="notepad.exe";
RegSetValueEx(hKey,"startnotepad",0,REG_SZ,str,15) //Right!!
这里需要一个const unsigned char* 的参数,我现在想不用变量,就把"notepad.exe"
字符串传递给函数,应该怎么做?
不用变量,直接用一行代码实现:)