Re: [Dev-C++] Antw: Debugsession does not open a console window
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2007-04-16 08:30:59
|
The console window have nothing to do with your use of cout or printf() or
similar. The console window is caused by one of the settings to the
linker. Alas, I don't have Dev-C++ available right now, to check exactly
which setting it is.
If I remember correctly, you have something like --subsystem,console or
something like that to specify to the linker that it should create a
console.
If you play around a bit, you can also manage the reverse, i.e. getting a
graphical application that also have a console.
/pwm
On Mon, 16 Apr 2007, Frank Wagner wrote:
> Hi again,
>
> and thanks to churin for his reply, but I still get the problem.
>
> For a little more information my code looks like this:
>
> #include <string>
> #include <fstream>
> #include <iostream>
>
> using namespace std;
>
> char zeichen, endchar;
> int line =3D 1, ans, mess, conf, mode, ANA_SW;
> main()
> {
> string=09infilename;
> =09ifstream infile;
>
> =09cout << "Dateiname? " << flush;
> =09cin >> infilename;
> =09infile.open(infilename.c_str(), ios::binary | ios::in);
> =09while(infile.get(zeichen))
> =09{
> ......so something
> }
>
> }
>
> At normal execution at the line cout << ... a console window opens but no=
t in debug mode.
> I set breakpoints to at this line and at lines before and steped through =
the code in single step mode but when I reach the cout, cin line no console=
window appear so I'm not able to input a infilename.
>
> I can't imagine where the problem is, maybe someone has a hint to look at=
=2E
>
> Greetings
>
> Frank
>
>
> WIKA Alexander Wiegand GmbH & Co. KG
> Alexander-Wiegand-Stra=DFe 30 - 63911 Klingenberg - Germany
> Kommanditgesellschaft: Sitz Klingenberg - Amtsgericht Aschaffenburg HRA 1=
819
> Komplement=E4rin: WIKA Alexander Wiegand Verwaltungs GmbH - Sitz Klingenb=
erg -
> Amtsgericht Aschaffenburg HRB 306
> Gesch=E4ftsf=FChrer: Alexander Wiegand
> Telefon: (09372) 132-0
> Internet: www.wika.com
> -------------------------------------------------------------------------=
-----------------------
> The information contained in this E-mail and any attached files are stric=
tly
> confidential and may be subject to legal privilege. If you are not the
> intended recipient, his representative or the person responsible for deli=
vering
> the message to the intended recipient, be advised that you have received =
this
> message in error and that any dissemination, copying or use of this messa=
ge
> or attachment is strictly forbidden, as is the disclosure of the informat=
ion
> therein. If you have received this E-mail in error, please notify us imme=
diately
> by E-mail or telephone and delete this message and all its attachments
> subsequently. All reasonable precautions have been taken to ensure no
> viruses are present in this E-mail.
> -------------------------------------------------------------------------=
-----------------------
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|