Original Post
For some odd reason my CBitmap class doesn''t seem to like the following line (m_strFileName is a std::string):
cout << "Loading bitmap: " << m_strFileName.c_str() << endl;
Everytime it throws a System.NullReferenceException on the first line that uses m_strFileName.c_str() (if i take out that line the error is on the line hBitmap = (HBITMAP)LoadImage(NULL, m_strFileName.c_str(), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_CREATEDIBSECTION)
Any ideas as to why or how to fix it?
P.S. If it means anything sometimes I get errors(from my debugger) saying that it can''t find media file cbàààà~ or can''t find media file [white background, black dot(bullet) that i think is like ASCII char 2].