Quan Chi2
Junior Poster in Training
67 posts since Jul 2005
Reputation Points: 14
Solved Threads: 1
Yes. We understand what you mean. But where do you have the problem?
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
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.
Quan Chi2
Junior Poster in Training
67 posts since Jul 2005
Reputation Points: 14
Solved Threads: 1
Use GetWindowText to copy the text in the edit box, and call DeleteFile for that text.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
Quan Chi2
Junior Poster in Training
67 posts since Jul 2005
Reputation Points: 14
Solved Threads: 1
"The GetWindowText function copies the text of the specified window's title bar"
Thats not what I want.
Quan Chi2
Junior Poster in Training
67 posts since Jul 2005
Reputation Points: 14
Solved Threads: 1
If you read further it says that if it is a control it copies the text of the control.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
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.
Quan Chi2
Junior Poster in Training
67 posts since Jul 2005
Reputation Points: 14
Solved Threads: 1
Okay, Im still confused. Can anyone else help?
Quan Chi2
Junior Poster in Training
67 posts since Jul 2005
Reputation Points: 14
Solved Threads: 1
Okay then. Try sending the EM_GETLINE Message. That surely ought to work.
WolfPack
Postaholic
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115