Click here to Skip to main content
15,885,278 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Hi Alls Pin
Jun Du26-Jun-06 16:51
Jun Du26-Jun-06 16:51 
GeneralRe: Hi Alls Pin
vassilux@27-Jun-06 2:12
vassilux@27-Jun-06 2:12 
GeneralRe: Hi Alls Pin
Jun Du27-Jun-06 3:40
Jun Du27-Jun-06 3:40 
QuestionNeed help to return string value from COM Pin
agarunk19-Jun-06 4:41
agarunk19-Jun-06 4:41 
AnswerRe: Need help to return string value from COM Pin
Milton Karimbekallil19-Jun-06 21:58
Milton Karimbekallil19-Jun-06 21:58 
QuestionStack problem with setting callback in native code. Pin
dbriggs19-Jun-06 4:15
dbriggs19-Jun-06 4:15 
AnswerRe: Stack problem with setting callback in native code. Pin
Jun Du27-Jun-06 7:27
Jun Du27-Jun-06 7:27 
QuestionMultidimension arrays Pin
Preminition18-Jun-06 11:57
Preminition18-Jun-06 11:57 
Multidimension arrays

Read dozens of examples given on website how to do an single array with
the System::Array etc. But I can't get the hang of it how to use it properly.
I keep getting error messages when I hit the build button.

For example I want a simple 2 dimension array of the integer type.
in the old code it was:
int board[16][16];
board[3][3] = 5;

if i try to use the managed version:
array<int^,2>^ m_Board = gcnew array<int^,2>(16,16);
for (int row = 0; row < 16;row++)
{
for (int col = 0; col < 16;col++)
{
m_Board[row][col] = 0;
}
}

Confused | :confused: I get error message on my screen.

Also I can't find anything about freeing the memory in the articles.
Is it neccessary if you use it in a class.
How do I free it if it's necessary?
Can I change the size of the area dynamically?



"Knowledge shouldn't be preserved by one, but shared with others."
-- Preminition
AnswerRe: Multidimension arrays Pin
Michael Dunn18-Jun-06 13:38
sitebuilderMichael Dunn18-Jun-06 13:38 
AnswerRe: Multidimension arrays Pin
2bee 18-Jun-06 20:14
2bee 18-Jun-06 20:14 
QuestionDataGrid/DataGridView within a MFC dialog Pin
Kulch4216-Jun-06 11:10
Kulch4216-Jun-06 11:10 
QuestionConver Data Type Problem Pin
dataminers16-Jun-06 5:17
dataminers16-Jun-06 5:17 
AnswerRe: Conver Data Type Problem Pin
2bee 16-Jun-06 6:58
2bee 16-Jun-06 6:58 
GeneralRe: Conver Data Type Problem Pin
dataminers16-Jun-06 12:58
dataminers16-Jun-06 12:58 
QuestionHow to Create Array of Labels on the Run-Time ? Pin
dataminers16-Jun-06 2:34
dataminers16-Jun-06 2:34 
AnswerRe: How to Create Array of Labels on the Run-Time ? [modified] Pin
2bee 16-Jun-06 2:46
2bee 16-Jun-06 2:46 
GeneralRe: How to Create Array of Labels on the Run-Time ? Pin
dataminers16-Jun-06 3:58
dataminers16-Jun-06 3:58 
GeneralRe: How to Create Array of Labels on the Run-Time ? [modified] Pin
2bee 16-Jun-06 4:08
2bee 16-Jun-06 4:08 
GeneralRe: How to Create Array of Labels on the Run-Time ? Pin
dataminers16-Jun-06 5:31
dataminers16-Jun-06 5:31 
AnswerRe: How to Create Array of Labels on the Run-Time ? [modified] Pin
2bee 16-Jun-06 6:50
2bee 16-Jun-06 6:50 
GeneralRe: How to Create Array of Labels on the Run-Time ? Pin
dataminers16-Jun-06 13:11
dataminers16-Jun-06 13:11 
AnswerRe: How to Create Array of Labels on the Run-Time ? Pin
2bee 16-Jun-06 21:29
2bee 16-Jun-06 21:29 
GeneralRe: How to Create Array of Labels on the Run-Time ? Pin
dataminers18-Jun-06 11:21
dataminers18-Jun-06 11:21 
QuestionStill Image Architecture Pin
allenmpcx15-Jun-06 22:06
allenmpcx15-Jun-06 22:06 
QuestionRe: Still Image Architecture Pin
Jun Du16-Jun-06 8:54
Jun Du16-Jun-06 8:54 

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.