给个例子吧,实在没时间写了 ,写ini或者写注册表都可以。
解决方案 »
- 车牌切割 以及二值化图片去噪 求OpenCv 函数
- 浮动提示信息
- CButton上的文字如何让它竖着显示
- 请问CString 和char []轮换之后会有不同吗?
- 《VC数字图像处理》书上的一个疑问
- 求类似于IM(QQ,MSN,ICQ)这样的后台服务器设计思想
- occsite.cpp来自于哪里?和我的代码有什么联系?
- 谁有zmodem 文件传输协议的资源代码,当然是VC++的
- 想做一个读取本地机器码的插件,ie可以用activex,但firefox没法调activex,如果要在firefox下都本机机器码这样的功能,用什么方法?
- 想成立一个vc++的网站!谁与我同行?
- 请教高手
- 请叫光盘的文件格式是什么样的
而且很多还用它原来的东东
帮你顶一下
{
static OPENFILENAME ofn={0};
static BOOL bSetInitialDir = FALSE; // Reset filename
*szName = 0; // Fill in standard structure fields
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = ghApp;//ghVideo;//ghApp;
ofn.lpstrFilter = NULL;
ofn.lpstrFilter = FILE_FILTER_TEXT;
ofn.lpstrCustomFilter = NULL;
ofn.nFilterIndex = 1;
ofn.lpstrFile = szName;
ofn.nMaxFile = MAX_PATH;
ofn.lpstrTitle = TEXT("Open Material File...\0");
ofn.lpstrFileTitle = NULL;
ofn.lpstrDefExt = TEXT("*\0");
ofn.Flags = OFN_FILEMUSTEXIST | OFN_READONLY | OFN_PATHMUSTEXIST; // Remember the path of the first selected file
if (bSetInitialDir == FALSE)
{
ofn.lpstrInitialDir = DEFAULT_MEDIA_PATH;
bSetInitialDir = TRUE;
}
else
ofn.lpstrInitialDir = NULL; // Create the standard file open dialog and return its result
return GetOpenFileName((LPOPENFILENAME)&ofn);
}