Jump to content

Windows app for C++


Recommended Posts

I know this is Windows stuff, not Linux but hopefully one of you knows what I am doing wrong. :)

 

I'm trying to write a small Windows app in C++ for Uni, using Borland Builder 5. the app is meant to have a main window with various components on. One of these is a button for creating a new file. When this button is clicked I wanted a new window to open, you type settings into it and then it closes. The program compiles and the main window displays (and works) properly, but the sub-window will not open.

 

The main window class is called TForm1 and is a decendant of the TForm class. The sub-window is called TFrame2 is a decendant of the TFrame class. Because its created dynamically (ie not there all the time) this is how I'm trying to get the new window to open.

 

TFrame2* NewDesign;

NewDesign = new TFrame2(this);

 

I know the function that runs this code is being executed, but no window appears. do I ahve to call some extra functions?

 

HELP!! :(

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...