|
From: James G. <Jam...@Cl...> - 2001-03-28 13:21:21
|
I assume that you have included the line 'including namespace std;' or
'including std::list;' in there?
Regards,
James.
-----Original Message-----
From: Richard Asbury [mailto:dic...@ho...]
Sent: Monday, March 26, 2001 2:30 AM
To: dev...@li...
Subject: [Dev-C++] stl and windows apps
posted this on the forum but hoping that more people will read it here...
i've had some real problems using the stl in programs compiled for windows
(i.e. no console)... vector::push_back, the string constructor and the list
constructor will all cause runtime errors...
does anyone know how to sort this out, or am i going to have to write my own
stl?
here's an example of some code that will die
#include <list>
#include "windows.h"
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
list<int> li;
return 0;
}
thanks in advance,
richard
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This electronic message and any attachment is intended to be
read by the named addressee(s) only.
Any other recipient should be aware that its contents may be
legally privileged and/or confidential and that its use,
disclosure, copying or distribution may be unlawful.
Unless you are a named addressee, please delete this message
Whilst C. & J. Clark International Limited has taken steps
to prevent the transmission of computer viruses with electronic mail,
responsibility for screening incoming messages and the risk of such
transmission and its consequences lies with the recipient.
C. & J. Clark International Limited
Registered in England and Wales
Company No. 141015
Registered Office: 40 High Street, Street, Somerset BA16 0YA
Telephone: +44 (0) 1458 443131
Fax: +44 (0) 1458 447547
|