Sort of.
I'm using Visual Studio 2005 and coding in Visual c++. The problem I'm having is linking my browse button to a text box. I'd like a file selected in the browse window to display in a textbox next to it (the file's path, if you will). If anyone could help me out here, it'd be much appreciated.
Thanks in advanced.
Linking button to textbox
Started by BrasilianBR, Aug 27 2008 03:47 PM
21 replies to this topic
#1
Posted 27 August 2008 - 03:47 PM
|
|
|
#2
Posted 27 August 2008 - 07:43 PM
It depends on how you opened the file. If you have a string variable somewhere, then just use that. If you used the CommonDialog object, there's a LPSTR field in the OFNSTRUCT that you can read. Otherwise you'll have to post more information.
#3
Posted 29 August 2008 - 11:09 AM
I will try as i am a new here i heve to get some knowledge ...
medifast weight lossLas vegas hotels
#4
Posted 30 August 2008 - 02:37 PM
How did you open the file, anyway?
#6
Posted 08 September 2008 - 04:51 PM
I don't get it.
#7
Posted 08 September 2008 - 07:48 PM
Xav meant a file scanner. In order to read text out of a file, you need to read it using a text scanner from the standard libraries provided :)
#8
Posted 08 September 2008 - 08:01 PM
morefood2001 said:
Xav meant a file scanner. In order to read text out of a file, you need to read it using a text scanner from the standard libraries provided :)
Once again your wrong.... You don't have to use a 'standard library' to read a text file.
You can use APIs. CreateFile() ReadFile()
Sigh... Please stop.
#9
Posted 08 September 2008 - 08:09 PM
MeTh0Dz|Reb0rn said:
Once again your wrong.... You don't have to use a 'standard library' to read a text file.
You can use APIs. CreateFile() ReadFile()
Sigh... Please stop.
You can use APIs. CreateFile() ReadFile()
Sigh... Please stop.
I have always used the standard template library to read a file. I have never seen the APIs such as ReadFile() read files.
Programming has many approaches which are all right, it all depends on which method you like more (or are more familiar with).
#10
Posted 08 September 2008 - 08:21 PM
If you aren't educated on something, then don't say you have to do it a certain way...
#11
Posted 09 September 2008 - 04:11 AM
morefood2001 said:
Xav meant a file scanner. In order to read text out of a file, you need to read it using a text scanner from the standard libraries provided :)
#12
Posted 09 September 2008 - 06:05 AM
Methodz: I never did, did I? :/
And xav, I know that file scanners exist in c++ because i've used them, so I figured you made a typo :P
And xav, I know that file scanners exist in c++ because i've used them, so I figured you made a typo :P


Sign In
Create Account

Back to top









