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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime TOpenDialogs

Status
Not open for further replies.

Leroy1981

Programmer
Jul 22, 2002
46
0
0
US
I am building a component that has an open dialog
available for use.

the declaration in the header:
TOpenDialog* Fileloader;

in the components constructor:
Fileloader=new TOpenDialog;

i get this compile time error for some reason
Could not find a match for TOpenDialog::TOpenDialog(
 
Howdy,

Can you create a TOpenDialog dynamically? I've never tried it, but I would consider something a little different...

1) See if you can get it to compile with:
Code:
TOpenDialog Fileloader;
It may work similar to an AnsiString class and not need to be created with the new command.

2) You could use the file navigation components to create your own dialog if all else fails...

Hope I could help and if not good luck!
onrdbandit
 
I figured it out.

int the constructor:
WaveLoader=new TOpenDialog(this);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top