API Help

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jul 2005
Posts: 67
Reputation: Quan Chi2 is an unknown quantity at this point 
Solved Threads: 1
Quan Chi2 Quan Chi2 is offline Offline
Junior Poster in Training

API Help

 
1
  #1
Sep 16th, 2006
I'm trying to use input from a text edit box to delete a file. The input from the textbox will be the file location and the delete button will use DeleteFile() to delete the file.

http://img436.imageshack.us/img436/5...leteboxvn0.png

Do you know what I mean?
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: API Help

 
0
  #2
Sep 16th, 2006
Yes. We understand what you mean. But where do you have the problem?
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 67
Reputation: Quan Chi2 is an unknown quantity at this point 
Solved Threads: 1
Quan Chi2 Quan Chi2 is offline Offline
Junior Poster in Training

Re: API Help

 
0
  #3
Sep 16th, 2006
Originally Posted by WolfPack View Post
Yes. We understand what you mean. But where do you have the problem?
I want to use the text that was put in the textbox(the file location) to be used in the DeleteFile function.

DeleteFile(FileName)

In FileName I want the text that the user input to be used. Just like I would use cin.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: API Help

 
0
  #4
Sep 16th, 2006
Use GetWindowText to copy the text in the edit box, and call DeleteFile for that text.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 67
Reputation: Quan Chi2 is an unknown quantity at this point 
Solved Threads: 1
Quan Chi2 Quan Chi2 is offline Offline
Junior Poster in Training

Re: API Help

 
0
  #5
Sep 16th, 2006
Thanks a lot man.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 67
Reputation: Quan Chi2 is an unknown quantity at this point 
Solved Threads: 1
Quan Chi2 Quan Chi2 is offline Offline
Junior Poster in Training

Re: API Help

 
0
  #6
Sep 16th, 2006
"The GetWindowText function copies the text of the specified window's title bar"

Thats not what I want.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: API Help

 
0
  #7
Sep 16th, 2006
If you read further it says that if it is a control it copies the text of the control.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 67
Reputation: Quan Chi2 is an unknown quantity at this point 
Solved Threads: 1
Quan Chi2 Quan Chi2 is offline Offline
Junior Poster in Training

Re: API Help

 
0
  #8
Sep 16th, 2006
Originally Posted by WolfPack View Post
If you read further it says that if it is a control it copies the text of the control.

You're right. lol. I over read. Sorry.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 67
Reputation: Quan Chi2 is an unknown quantity at this point 
Solved Threads: 1
Quan Chi2 Quan Chi2 is offline Offline
Junior Poster in Training

Re: API Help

 
0
  #9
Sep 16th, 2006
Okay, Im still confused. Can anyone else help?
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 1,496
Reputation: WolfPack has a spectacular aura about WolfPack has a spectacular aura about WolfPack has a spectacular aura about 
Solved Threads: 104
Moderator
WolfPack's Avatar
WolfPack WolfPack is offline Offline
Mentally Challenged Mod.

Re: API Help

 
0
  #10
Sep 16th, 2006
Okay then. Try sending the EM_GETLINE Message. That surely ought to work.
バルサミコ酢やっぱいらへんで
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC