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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...