Click here to Skip to main content
15,917,795 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Generalc++ template compile error c2975 Pin
i--11-Aug-03 22:52
i--11-Aug-03 22:52 
GeneralRe: c++ template compile error c2975 Pin
geo_m12-Aug-03 1:24
geo_m12-Aug-03 1:24 
GeneralRe: c++ template compile error c2975 Pin
i--12-Aug-03 2:32
i--12-Aug-03 2:32 
GeneralRe: c++ template compile error c2975 Pin
i--12-Aug-03 2:34
i--12-Aug-03 2:34 
GeneralSTL - lower_bound() w/vector of pointers Pin
pfoo11-Aug-03 8:31
pfoo11-Aug-03 8:31 
Generalnevermind Pin
pfoo11-Aug-03 9:05
pfoo11-Aug-03 9:05 
GeneralRe: nevermind Pin
Jörgen Sigvardsson12-Aug-03 13:47
Jörgen Sigvardsson12-Aug-03 13:47 
Questiondebug assertions : wierd or not?? Pin
Senkwe Chanda6-Aug-03 8:44
Senkwe Chanda6-Aug-03 8:44 
Hi guys, I really wasn't sure whether or not to post this here as it might be generic to C++. Anyway, I have a WTL project.

I have some generic set up code like so...

LRESULT CMainFrame::OnCreate(...)
{
//toolbars get created here etc
lfh = new LogFileHandler();
lfh->ReadLogFile();
}

Now in the header file I have declared LogFileHandler lfh.

I have nothing yet in this class except

LogFileHandler::LogFileHandler()
{
int i = 0; //i have a breakpoint here
}

whats strange is that I get a "debug assertion failed" prompt whenever I step through the code. It tells me "m_hImageList != 0" in atlctrs.h (line 1533)

I have no idea why this happens. The app runs fine though when you hit Ctrl+F5.

Is there something I didn't pick up?

Thanks guys.

Senkwe

What's the difference between a C++ programmer and God? God knows he's not a C++ programmer :
anon

Answerjust me being stupid Pin
Senkwe Chanda6-Aug-03 13:46
Senkwe Chanda6-Aug-03 13:46 
GeneralC++ ATL Server project Pin
devvvy5-Aug-03 23:43
devvvy5-Aug-03 23:43 
GeneralRe: C++ ATL Server project Pin
Steve S6-Aug-03 5:43
Steve S6-Aug-03 5:43 
GeneralRe: C++ ATL Server project Pin
Nemanja Trifunovic6-Aug-03 6:13
Nemanja Trifunovic6-Aug-03 6:13 
GeneralRe: C++ ATL Server project Pin
devvvy6-Aug-03 14:56
devvvy6-Aug-03 14:56 
GeneralRe: C++ ATL Server project Pin
nativespirits30-Dec-03 10:04
nativespirits30-Dec-03 10:04 
GeneralSTL, "upgrade" from sprintf to ostream in a logclass Pin
justin2235-Aug-03 21:01
justin2235-Aug-03 21:01 
GeneralRe: STL, "upgrade" from sprintf to ostream in a logclass Pin
Anonymous5-Aug-03 21:25
Anonymous5-Aug-03 21:25 
GeneralRe: STL, "upgrade" from sprintf to ostream in a logclass Pin
justin2235-Aug-03 21:32
justin2235-Aug-03 21:32 
GeneralATL and ADO Problem Pin
Popeye Doyle Murray5-Aug-03 2:39
Popeye Doyle Murray5-Aug-03 2:39 
GeneralRe: ATL and ADO Problem Pin
Steve S5-Aug-03 23:17
Steve S5-Aug-03 23:17 
GeneralRe: ATL and ADO Problem Pin
Popeye Doyle Murray6-Aug-03 2:27
Popeye Doyle Murray6-Aug-03 2:27 
GeneralRe: ATL and ADO Problem Pin
Steve S6-Aug-03 5:39
Steve S6-Aug-03 5:39 
GeneralWindows Installer MSI file problem Pin
darseh5-Aug-03 0:03
darseh5-Aug-03 0:03 
GeneralIPropertySheet Pin
Subbu Viji4-Aug-03 5:18
Subbu Viji4-Aug-03 5:18 
GeneralATL ActiveX composite control Pin
Subbu Viji4-Aug-03 5:15
Subbu Viji4-Aug-03 5:15 
GeneralI need a good ATL book; Common Controls and Active X Pin
Stormwind3-Aug-03 21:44
Stormwind3-Aug-03 21:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.