救急,100分,再加送100分(100分)

  • 主题发起人 主题发起人 daileking
  • 开始时间 开始时间
D

daileking

Unregistered / Unconfirmed
GUEST, unregistred user!
在c++Builder中
怎么样把Opendialog1->Filename转换成Char的类型?
Edit1->Text怎么样转换成int的类型
我是这么使用的!如下:
if(OpenDialog1->Execute()){
fp=open(OpenDialog1->Filename,O_BINARY | O_RDONLY);
if(fp==-1) ShowMessage("Can not Open file");
 
1: if(OpenDialog1->Execute()){
fp=open(OpenDialog1->Filename.c_str(),O_BINARY | O_RDONLY);
if(fp==-1) ShowMessage("Can not Open file");

2: StrToInt
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
508
import
I
I
回复
0
查看
710
import
I
I
回复
0
查看
782
import
I
后退
顶部