rt 3ks
解决方案 »
- CButtonST按钮中插入图片的疑问,求帮助
- 急,Debug居然在断点断不下来?
- 从一个文件夹中读入多幅图像并进行处理
- 关于Messagebox的问题,基础
- 怎样创建一个能够在.NET的service程序中使用的ActiveX控件?
- 如何实现枚举网络上的计算机?
- 通过Crecordset在ACCESS数据库的表中添加第一条记录出现的问题
- 请教关于输入框的问题!在线等,几简单,不过我不会,解决了就加分
- 那位高手知道如何在c/c++下,实现微秒级的精确计时???,知道原码下载的也可以!!!
- 当用c++编程时,能不能不用回收内存?100分
- 请palyyuer(小干部儿)、勇、阿风来领分,你们回答的问题经过验证正确!
- 如何在程序中注册一个控件
GetWindowsDirectory(m_syspath,MAX_PATH);
The GetSystemDirectory function retrieves the path of the system directory. The system directory contains such files as dynamic-link libraries, drivers, and font files. UINT GetSystemDirectory(
LPTSTR lpBuffer, // address of buffer for system directory
UINT uSize // size of directory buffer
);
Parameters
lpBuffer
Pointer to the buffer to receive the null-terminated string containing the path. This path does not end with a backslash unless the system directory is the root directory. For example, if the system directory is named WINDOWS\SYSTEM on drive C, the path of the system directory retrieved by this function is C:\WINDOWS\SYSTEM.
uSize
Specifies the maximum size of the buffer, in characters. This value should be set to at least MAX_PATH.
LPTSTR lpBuffer, // buffer for Windows directory
UINT uSize // size of directory buffer
);
===========================================================
我要学好C++啊 \(-o-)/
===========================================================
str :接受字符串,结果为:C:\WINDOWS\SYSTEM