Subj : Re: no output window To : borland.public.cpp.borlandcpp From : "Dr. S. T. Koay" Date : Thu Aug 21 2003 10:01 am Andrue Cope wrote: >Dr. S. T. Koay, > >> I have compiled a C++ program and it compiles. However, when I >> try to run it, I get a blank gray window with the title 'Form1'. >> I don't see the program output. How do I get the output? >> > >That sounds like you are using C++ Builder in which case this isn't >really the right place to ask your question. C++ Builder has it's own >newsgroup sections and they have "CPPBUILDER" in their name. > >How exactly are you producing your output? It sounds like you have >created a VCL based application in which case there is no simple >concept of output. Instead you have forms (windows) onto which you >place components. To communicate information with the user you get >the components to change some aspect of their visualisation. > >Some examples are: > > TLabel - change the 'Caption' property. > TMemo - Modify the 'Lines' property. > >In both cases when you change the property the component will redraw >itself. You can use a 'TMemo' to simulate a console by adding strings >to its 'Lines' property but not many applications use that >functionality as it looks rather dated. > >If you are trying to use printf() or puts() or 'cout' then you need >to create a console application. > >For more details you might want to repost to CPPBUILDER.NON-TECHNICAL >-- >Andrue Cope >[Bicester, UK] > Hi, Andrue: You are quite clever. I am trying to use 'cout' and 'cin'. So the question is: how do I create console application? By the way, I am using C++ Builder 5, which has the C++ 5.5 compiler. Dr. S. T. Koay .