CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - getfilename
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - getfilename - List
[
File Operate
]
ReadFile
DL : 0
打开一个TXT文件并显示在EDIT控件中 步骤: 1.新建一个基于对话框的工程,名称为ReadFile 2.在界面上添加一个按钮(IDC_BUTTON1)和一个文本编辑(IDC_EDIT1) IDC_EDIT1的属性:多行、可下拉滚动条. 3.编辑按钮触发事件(void CReadFileDlg::OnButton1()) void CReadFileDlg::OnButton1() { // TODO: Add your control notification handler code here CString sFileFilter=\"*.hex|*.hex\" CString sFileName CFileDialog fDlg(true,NULL,NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,sFileFilter,NULL) fDlg.DoModal() sFileName=fDlg.GetFileName() if(sFileName!=\"\") { CFile file(sFileName,CFile::modeRead) int nFileLength=file.GetLength() char *buffer HGLOBAL hgl=::GlobalAlloc(GMEM_MOVEABLE,nFileLength+1) buffer=(char *)::GlobalLock(hgl) file.Read(buffer,nFileLength) SetDlgItemText(IDC_EDIT1,buffer) ::GlobalUnlock(hgl) ::GlobalFree(hgl) } UpdateData(false) }
Date
: 2008-10-13
Size
: 25.48kb
User
:
这程子
[
File Operate
]
getfilename
DL : 0
获取目录中文件名及属性
Date
: 2008-10-13
Size
: 91.13kb
User
:
fenglu
[
File Operate
]
ReadFile
DL : 0
打开一个TXT文件并显示在EDIT控件中 步骤: 1.新建一个基于对话框的工程,名称为ReadFile 2.在界面上添加一个按钮(IDC_BUTTON1)和一个文本编辑(IDC_EDIT1) IDC_EDIT1的属性:多行、可下拉滚动条. 3.编辑按钮触发事件(void CReadFileDlg::OnButton1()) void CReadFileDlg::OnButton1() { // TODO: Add your control notification handler code here CString sFileFilter="*.hex|*.hex" CString sFileName CFileDialog fDlg(true,NULL,NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,sFileFilter,NULL) fDlg.DoModal() sFileName=fDlg.GetFileName() if(sFileName!="") { CFile file(sFileName,CFile::modeRead) int nFileLength=file.GetLength() char *buffer HGLOBAL hgl=::GlobalAlloc(GMEM_MOVEABLE,nFileLength+1) buffer=(char *)::GlobalLock(hgl) file.Read(buffer,nFileLength) SetDlgItemText(IDC_EDIT1,buffer) ::GlobalUnlock(hgl) ::GlobalFree(hgl) } UpdateData(false) } -Open a TXT file and displayed in the EDIT control steps: 1. Create a new dialog-based project, known as the ReadFile2. In the interface to add a button (IDC_BUTTON1) and a text editor (IDC_EDIT1) IDC_EDIT1 properties: multi-line, can be drop-down scroll bar .3. Edit button trigger events (void CReadFileDlg:: OnButton1 ()) void CReadFileDlg:: OnButton1 () (//TODO: Add your control notification handler code here CString sFileFilter =*. hex |*. hex CString sFileName CFileDialog fDlg (true, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, sFileFilter, NULL) fDlg.DoModal () sFileName = fDlg.GetFileName () if (sFileName! =) (CFile file (sFileName, CFile:: modeRead) int nFileLength = file.GetLength () char* buffer HGLOBAL hgl =:: GlobalAlloc (GMEM_MOVEABLE, nFileLength+ 1) buffer = (char*):: GlobalLock (hgl) file.Read (buffer, nFileLength) SetDlgItemText (IDC_EDIT1, buffer):: GlobalUnlock (hgl):: GlobalFree (hgl)) UpdateData (false))
Date
: 2025-07-02
Size
: 1.8mb
User
:
这程子
[
File Operate
]
getfilename
DL : 0
获取目录中文件名及属性-Access to directory file name and attributes
Date
: 2025-07-02
Size
: 316kb
User
:
fenglu
[
Ftp Client
]
getfilename
DL : 0
这是一个可以获得文件名的源代码。可以用来获取文件的名称和路径~-This is a file name can get the source code. Can be used to obtain the file name and path ~
Date
: 2025-07-02
Size
: 1kb
User
:
肖宪
[
Other
]
getfilename
DL : 0
使用Labview能获取输入文件的文件名,可根据自己的需要修改,使用版本为Lv8.5.-Use Labview to obtain input file file name ,can be modified according to your needs, the version is Lv8.5.
Date
: 2025-07-02
Size
: 7kb
User
:
Libra Chow
[
Other
]
getfilename
DL : 0
本软件可以实现获得你选取文件的文件名,并将每个文件名自动带上单引号,同时将结果放入剪贴板,这样利于matlab对多文件处理。-daf
Date
: 2025-07-02
Size
: 8kb
User
:
yo
[
File Operate
]
getfilename
DL : 0
读取 文件夹下所有文件名 整理到一个TXT文档中-read file and file name input txt
Date
: 2025-07-02
Size
: 20kb
User
:
lbb
[
File Operate
]
GetFileName
DL : 0
get file s name in recursively
Date
: 2025-07-02
Size
: 15kb
User
:
luy
[
Internet-Network
]
getfilename
DL : 0
这是一个可以获得文件名的源代码。可以用来获取文件的名称和路径~-This is a file name can get the source code. Can be used to obtain the file name and path ~
Date
: 2025-07-02
Size
: 1kb
User
:
rkingt
[
JSP/Java
]
getFileName
DL : 0
获取带存放文件路径中的文件名称,主要可以用于获取上传路径里的文件或做其他用途-FOR GET FILE NAME
Date
: 2025-07-02
Size
: 1kb
User
:
米米
[
OS program
]
getFileName
DL : 0
使用C++实现提取文件夹中所有文件的名字,可以得到名字的全称或者名字+扩展名-get all the file name in the folder
Date
: 2025-07-02
Size
: 2kb
User
:
尹创业
[
GUI Develop
]
getfilename
DL : 0
非常简单的一个关于BCB文件拖拽的简单例子-A simple example of BCB on file drag
Date
: 2025-07-02
Size
: 102kb
User
:
傅伟
[
Browser Client
]
getfilename
DL : 0
当我们拿着一个URL从百度音乐下载歌曲时候,URL中没有歌曲名,但是迅雷什么的下载工具却能知道这首歌曲的名字,我用CURL库下载怎么才能知道这个歌曲名称呢,断断续续研究了好几次都未果,这次终于找到方法了。 用CURLOPT_DEBUGFUNCTION > CURLINFO_HEADER_IN中检索到想到的数据了。-CURLOPT_DEBUGFUNCTION CURLINFO_HEADER_IN fetch Content-Dispostion: attachment filename
Date
: 2025-07-02
Size
: 5kb
User
:
朱洪祥
[
File Operate
]
GetFileName
DL : 0
本例用于实现从文件路径中获取文件名的功能。通过使用Dir函数从路径中提取文件名。-This example uses the filename and achieve access to functions the file path.
Date
: 2025-07-02
Size
: 5kb
User
:
孙联合
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.