在EVC中如何使用stract?30分相送

来源:百度知道 编辑:UC知道 时间:2024/06/19 12:11:02
在EVC中如何使用这一句:
strcat(tmp, "windows");

1、tmp应该如何定义?
2、需要加什么头文件吗?
3、strcat(tmp, "windows");应该怎么修改可以实现同样的功能?希望您能帮我修改一下,给出正确的程序段

谢谢~~~谢谢~~~

WINCE技术交流2群:23711792,欢迎您的加入
一楼的,你怎么把MSDN发上来呢,在EVC中是不能用stract的

楼上那位大哥,这就是你不对了~~

EVC中是不能用stract的,如果自己不懂就不要装懂,更没资格去批评别人,除非你是这方面的牛人,可惜你不是……让哥哥教教你:

evc使用unicode版本
代码如下:
TCHAR string[80];
wcscpy( string, L"Hello world " );
wcscat( string, L"windows " );
AfxMessageBox (string);

char *strcat(
char *strDestination,
const char *strSource
);
Parameters
strDestination
Null-terminated destination string.
strSource
Null-terminated source string.
Return Value
Each of these functions returns the destination string (strDestination). No return value is reserved to indicate an error.

Remarks
The strcat function appends strSource to strDestination and terminates the resulting string with a null character. The initial character of strSource overwrites the terminating null character of strDestination. The behavior of strcat is undefined if the source and destination strings overlap.

Security Note Because