Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using TOpendialog in a CLX App.

Status
Not open for further replies.

Araneous

Programmer
Oct 22, 2003
1
ZA
I am writing an application which converts an exe file to text and displays it in a TextViewer component (only available when programming under CLX).
(I am aware of No other Delphi component that is able to display the text - the final result of converting exe to string - fully -like notepad)

When I try use a CLX opendialog to open a file say 'C:\Project1.exe' , it works fine, however if I try to open 'C:\Program Files\Project1.exe' it gives me the following error: 'Drive 'C:' does not exist. Please verify the correct drive whas given.'
This happens if I try to open any file 'deeper' than the simplist directory in the specified drive (eg. 'C:\' 'D:\' etc.). I can still browse and see all the files and folders on the disk with the CLX opendialog.

Can anyone please tell me how to successfully use Opendialog under CLX effectively, else an alternative to opendialog would also be appreciated.

Is it possible to gain access to TTextViewer in VCL?

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top