Click here to Skip to main content
15,905,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReg. Printing Pin
murali_utr10-Sep-14 17:09
murali_utr10-Sep-14 17:09 
QuestionRe: Reg. Printing Pin
Richard MacCutchan10-Sep-14 21:01
mveRichard MacCutchan10-Sep-14 21:01 
Questionerror C2451: conditional expression of type 'std::_Tree_iterator<_Mytree>' is illegal Pin
kamal197710-Sep-14 8:30
kamal197710-Sep-14 8:30 
AnswerRe: error C2451: conditional expression of type 'std::_Tree_iterator<_Mytree>' is illegal Pin
Graham Breach10-Sep-14 8:36
Graham Breach10-Sep-14 8:36 
GeneralThank you Very Much Graham Breach! Pin
kamal197710-Sep-14 13:11
kamal197710-Sep-14 13:11 
QuestionStrange random behavior of TB_HIDEBUTTON on Win7 Notification Toolbar buttons Pin
Will580110-Sep-14 3:47
Will580110-Sep-14 3:47 
AnswerRe: Strange random behavior of TB_HIDEBUTTON on Win7 Notification Toolbar buttons Pin
Richard MacCutchan10-Sep-14 4:05
mveRichard MacCutchan10-Sep-14 4:05 
GeneralRe: Strange random behavior of TB_HIDEBUTTON on Win7 Notification Toolbar buttons Pin
Will580110-Sep-14 6:56
Will580110-Sep-14 6:56 
QuestionMATLAB C/C++ Pin
mohamed sabri8-Sep-14 7:18
mohamed sabri8-Sep-14 7:18 
AnswerRe: MATLAB C/C++ Pin
Kenneth Haugland8-Sep-14 8:02
mvaKenneth Haugland8-Sep-14 8:02 
QuestionIs Edit and continue support available for X64 application in VS2010 ? Pin
sma123#4-Sep-14 21:01
sma123#4-Sep-14 21:01 
AnswerRe: Is Edit and continue support available for X64 application in VS2010 ? Pin
Richard MacCutchan4-Sep-14 21:15
mveRichard MacCutchan4-Sep-14 21:15 
GeneralRe: Is Edit and continue support available for X64 application in VS2010 ? Pin
sma123#4-Sep-14 22:24
sma123#4-Sep-14 22:24 
GeneralRe: Is Edit and continue support available for X64 application in VS2010 ? Pin
Richard MacCutchan4-Sep-14 23:58
mveRichard MacCutchan4-Sep-14 23:58 
GeneralRe: Is Edit and continue support available for X64 application in VS2010 ? Pin
sma123#5-Sep-14 3:14
sma123#5-Sep-14 3:14 
GeneralRe: Is Edit and continue support available for X64 application in VS2010 ? Pin
Richard MacCutchan5-Sep-14 3:28
mveRichard MacCutchan5-Sep-14 3:28 
GeneralRe: Is Edit and continue support available for X64 application in VS2010 ? Pin
Albert Holguin5-Sep-14 5:29
professionalAlbert Holguin5-Sep-14 5:29 
GeneralRe: Is Edit and continue support available for X64 application in VS2010 ? Pin
jschell5-Sep-14 10:02
jschell5-Sep-14 10:02 
GeneralRe: Is Edit and continue support available for X64 application in VS2010 ? Pin
Albert Holguin8-Sep-14 2:50
professionalAlbert Holguin8-Sep-14 2:50 
GeneralRe: Is Edit and continue support available for X64 application in VS2010 ? Pin
Stefan_Lang11-Sep-14 3:05
Stefan_Lang11-Sep-14 3:05 
GeneralRe: Is Edit and continue support available for X64 application in VS2010 ? Pin
Albert Holguin11-Sep-14 3:26
professionalAlbert Holguin11-Sep-14 3:26 
AnswerRe: Is Edit and continue support available for X64 application in VS2010 ? Pin
Randor 5-Sep-14 10:29
professional Randor 5-Sep-14 10:29 
QuestionReturn bidimensional array Pin
_Flaviu4-Sep-14 2:07
_Flaviu4-Sep-14 2:07 
I have a class (taken from somewhere). Here, I have a member like this:
C++
public:
	void SetBitmapDataSize(const int x, const int y);

private:
	int m_PixelNumberX;
	int m_PixelNumberY;
	vector<vector<COLORREF> > BitmapData; 

and SetBitmapDataSize is implemented:
C++
void CBitmapOp::SetBitmapDataSize(const int x, const int y)
{
	m_PixelNumberX = x;
	m_PixelNumberY = y;
	if((x>=0) && (y>=0))
	{		
		BitmapData.resize(m_PixelNumberX); 
		for(int x = 0; x < m_PixelNumberX; x++) 
			BitmapData[x].resize(m_PixelNumberY); 
	}
}


Now, I want to replace vector<vector<colorref> > with this CArray:
I had tried:
C++
private:
	int m_PixelNumberX;
	int m_PixelNumberY;
	CArray< CArray<COLORREF, COLORREF&>, CArray<COLORREF, COLORREF&> > m_arrBitmapData;

my question is, how can replace vector.resize method, and how can I return CArray< CArray<COLORREF, COLORREF&>, CArray<COLORREF, COLORREF&> > data type ?

Thank you.

modified 4-Sep-14 8:17am.

QuestionRe: Return bidimensional array Pin
David Crow4-Sep-14 3:33
David Crow4-Sep-14 3:33 
AnswerRe: Return bidimensional array Pin
_Flaviu4-Sep-14 21:31
_Flaviu4-Sep-14 21: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.