Click here to Skip to main content
15,921,990 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Why can't read every value from MRU ? Pin
David Crow9-Aug-11 3:49
David Crow9-Aug-11 3:49 
AnswerRe: Why can't read every value from MRU ? [modified] Pin
_Flaviu9-Aug-11 5:16
_Flaviu9-Aug-11 5:16 
AnswerRe: Why can't read every value from MRU ? Pin
Richard MacCutchan9-Aug-11 4:53
mveRichard MacCutchan9-Aug-11 4:53 
GeneralRe: Why can't read every value from MRU ? [modified] Pin
_Flaviu9-Aug-11 5:29
_Flaviu9-Aug-11 5:29 
QuestionDebug Assertion Failed Error ! Help me please. Pin
Nguyen Huy Tuan8-Aug-11 22:13
Nguyen Huy Tuan8-Aug-11 22:13 
AnswerRe: Debug Assertion Failed Error ! Help me please. Pin
Code-o-mat9-Aug-11 0:29
Code-o-mat9-Aug-11 0:29 
QuestionRe: Debug Assertion Failed Error ! Help me please. Pin
David Crow9-Aug-11 4:01
David Crow9-Aug-11 4:01 
AnswerRe: Debug Assertion Failed Error ! Help me please. Pin
Nguyen Huy Tuan10-Aug-11 20:47
Nguyen Huy Tuan10-Aug-11 20:47 
QuestionHow to extract only text information from html file? Pin
Le@rner8-Aug-11 20:03
Le@rner8-Aug-11 20:03 
AnswerRe: How to extract only text information from html file? Pin
ThatsAlok8-Aug-11 21:12
ThatsAlok8-Aug-11 21:12 
GeneralRe: How to extract only text information from html file? Pin
Le@rner8-Aug-11 21:32
Le@rner8-Aug-11 21:32 
GeneralRe: How to extract only text information from html file? Pin
ThatsAlok9-Aug-11 2:01
ThatsAlok9-Aug-11 2:01 
Question[solved]Still trying to hunt down a runtime error in VS 2010, need suggestions [modified] Pin
AndrewG12318-Aug-11 9:35
AndrewG12318-Aug-11 9:35 
QuestionRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
Albert Holguin8-Aug-11 10:19
professionalAlbert Holguin8-Aug-11 10:19 
AnswerRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
AndrewG12318-Aug-11 10:48
AndrewG12318-Aug-11 10:48 
GeneralRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
Richard MacCutchan8-Aug-11 21:18
mveRichard MacCutchan8-Aug-11 21:18 
QuestionRe: Still trying to hunt down a runtime error in VS 2010, need suggestions [modified] Pin
AndrewG12319-Aug-11 7:10
AndrewG12319-Aug-11 7:10 
AnswerRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
Richard MacCutchan9-Aug-11 8:52
mveRichard MacCutchan9-Aug-11 8:52 
GeneralRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
AndrewG12319-Aug-11 9:58
AndrewG12319-Aug-11 9:58 
GeneralRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
Charles Oppermann9-Aug-11 10:37
Charles Oppermann9-Aug-11 10:37 
GeneralRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
AndrewG12319-Aug-11 14:04
AndrewG12319-Aug-11 14:04 
SuggestionRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
Charles Oppermann10-Aug-11 2:45
Charles Oppermann10-Aug-11 2:45 
QuestionRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
AndrewG123110-Aug-11 9:49
AndrewG123110-Aug-11 9:49 
AnswerRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
Charles Oppermann10-Aug-11 10:15
Charles Oppermann10-Aug-11 10:15 
GeneralRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
AndrewG123110-Aug-11 10:29
AndrewG123110-Aug-11 10:29 
There may be a problem with the first line, but I can't figure out why it initializes the first time I open the file but not when I try to use it. Regarding the second line..is that the same as the HBITMAP(m_Bitmap)? Is what you have shown the proper way to code the line?

As far as I can tell in the header file m_Bitmap is of type HBITMAP, see below:
class CWinSTMBmp
{
public:
	CWinSTMBmp(void);
	~CWinSTMBmp(void);
	bool		Init(int sizex, int sizey, RGBQUAD* Pal);
	void		SetLineDC(bool enable);
	void		SetInversion(bool enable);
	void		SetDer(bool enable);
	void		UpdatePallet(RGBQUAD* Pal);
	HBITMAP		GetHBitmap(void);
	BITMAPINFO*	GetBmpInfo(void);
	RGBQUAD*	GetBmpBits(void);
	void		SetProperties(bool Derivative, bool LineDC, int Direction, bool Invert);	// Sets all rendering parameters
	void		DeleteBmp(void);
	bool		Render(int* Data, int Min, int Max);
	bool		RenderUI(unsigned short* Data, int Min, int Max);
	bool		RenderMetaBmp(int * Data, int Min = 0, int Max = 0);
	int*		GetHistogramData(void);

	bool		m_Render;				// true it bmp needs to be drawn
	bool		m_Derivative;			// derivative shading
	bool		m_LineDC;				// Linear DC filter
	bool		m_Inversion;			// colormap inversion
	RGBQUAD		m_RGB[256];				// colors for drawing
	HBITMAP		m_Bitmap;				// bitmap for 'the image'
	RGBQUAD		*m_BmpBits;				// pointer to the bits in the bitmap
	BITMAPINFO	m_ImageInfo;			// struct for creating m_Bitmap
	int			*m_DataPtr;				// pointer to data
	int			m_HistogramData[256];	// histogram data
	int			m_SizeX,
				m_SizeY;
	int			m_ImageMode;
	int			m_Max,
				m_Min;


	void NewLUT(RGBQUAD* newRGB);
};

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.