Click here to Skip to main content
15,886,963 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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);
};

GeneralRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
Charles Oppermann10-Aug-11 10:42
Charles Oppermann10-Aug-11 10:42 
QuestionRe: Still trying to hunt down a runtime error in VS 2010, need suggestions [modified] Pin
AndrewG123117-Aug-11 12:36
AndrewG123117-Aug-11 12:36 
GeneralRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
Charles Oppermann9-Aug-11 10:40
Charles Oppermann9-Aug-11 10:40 
GeneralRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
Code-o-mat8-Aug-11 22:15
Code-o-mat8-Aug-11 22:15 
AnswerRe: Still trying to hunt down a runtime error in VS 2010, need suggestions Pin
Rolf Kristensen9-Aug-11 10:30
Rolf Kristensen9-Aug-11 10:30 
QuestionWhat does WS_EX_TRANSPARENT really mean ? Pin
Cold_Fearing_Bird8-Aug-11 6:21
Cold_Fearing_Bird8-Aug-11 6:21 
AnswerRe: What does WS_EX_TRANSPARENT really mean ? Pin
«_Superman_»8-Aug-11 6:35
professional«_Superman_»8-Aug-11 6:35 
QuestionIn MFC, How to avoid GUI long time waiting? Pin
yu-jian8-Aug-11 4:57
yu-jian8-Aug-11 4:57 
AnswerRe: In MFC, How to avoid GUI long time waiting? Pin
BadJerry8-Aug-11 5:12
BadJerry8-Aug-11 5:12 
GeneralRe: In MFC, How to avoid GUI long time waiting? Pin
Albert Holguin8-Aug-11 9:22
professionalAlbert Holguin8-Aug-11 9:22 
GeneralRe: In MFC, How to avoid GUI long time waiting? Pin
pix_programmer9-Aug-11 20:45
pix_programmer9-Aug-11 20:45 
QuestionMFC in Xcode Pin
BadJerry8-Aug-11 3:45
BadJerry8-Aug-11 3:45 
JokeRe: MFC in Xcode Pin
Chris Meech8-Aug-11 4:32
Chris Meech8-Aug-11 4:32 
JokeRe: MFC in Xcode Pin
BadJerry8-Aug-11 5:14
BadJerry8-Aug-11 5:14 
QuestionRe: MFC in Xcode Pin
BadJerry8-Aug-11 5:15
BadJerry8-Aug-11 5:15 
AnswerRe: MFC in Xcode Pin
Code-o-mat8-Aug-11 7:22
Code-o-mat8-Aug-11 7:22 
GeneralRe: MFC in Xcode Pin
BadJerry8-Aug-11 23:31
BadJerry8-Aug-11 23:31 

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.