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

Managed C++/CLI

 
AnswerEither that or... Pin
Fenix27-Oct-09 23:57
Fenix27-Oct-09 23:57 
GeneralRe: Either that or... Pin
Richard MacCutchan8-Oct-09 2:15
mveRichard MacCutchan8-Oct-09 2:15 
GeneralRe: Either that or... Pin
Fenix28-Oct-09 4:01
Fenix28-Oct-09 4:01 
GeneralRe: Either that or... Pin
Richard MacCutchan8-Oct-09 4:13
mveRichard MacCutchan8-Oct-09 4:13 
GeneralRe: Either that or... Pin
Fenix28-Oct-09 16:24
Fenix28-Oct-09 16:24 
GeneralRe: Either that or... Pin
Fenix28-Oct-09 16:32
Fenix28-Oct-09 16:32 
GeneralRe: Either that or... Pin
Richard MacCutchan8-Oct-09 22:11
mveRichard MacCutchan8-Oct-09 22:11 
GeneralRe: Either that or... Pin
N a v a n e e t h8-Oct-09 16:54
N a v a n e e t h8-Oct-09 16:54 
Fenix2 wrote:
I don't have a book,


Living in Canada and can't get a book? Confused | :confused:

Fenix2 wrote:
And furthermore, all the darn examples on C++ web browsers won't work.


You may be referring to incorrect links.

Fenix2 wrote:
But in a whole game programming I never used arrays.
And I'M not gonna start here


Interesting. So are you looking for a syntax of writing managed arrays? Here is how you write a simple integer array.
C++
array<int>^ arr = gcnew array<int>(2);

// Adding values
arr[0] = 26;
arr[1] = 18;
Fenix2 wrote:
How do I write a variable in a damn file??!


Here is how you write array of strings to a file.
C++
using namespace System;
using namespace System::IO;

typedef array<String^> StringArray;

void WriteArrayToFile(StringArray^ arr)
{
	StreamWriter writer("c:\\test.txt", false);
	for each(String^ str in arr)
	{
		writer.WriteLine(str);
	}
}
Use it like:
C++
StringArray^ arr = gcnew StringArray(2);
arr[0] = "You need";
arr[1] = "a good book";
WriteArrayToFile(arr);
All I can say is, grow up, read the posting guidelines and post your question nicely with relevant code and change your attitude if you expect help from this forums.

If you ever plan to read a book, try this[^]

Smile | :)


GeneralRe: Either that or... Pin
Fenix29-Oct-09 14:17
Fenix29-Oct-09 14:17 
GeneralRe: Either that or... Pin
Richard MacCutchan9-Oct-09 23:24
mveRichard MacCutchan9-Oct-09 23:24 
QuestionGetting "LINK : Fetal error LNK1561 : entry point must be defined" while creating managed C++ dll in VS2005 Pin
Cracked-Down7-Oct-09 21:27
Cracked-Down7-Oct-09 21:27 
AnswerRe: Getting "LINK : Fetal error LNK1561 : entry point must be defined" while creating managed C++ dll in VS2005 Pin
KarstenK7-Oct-09 22:21
mveKarstenK7-Oct-09 22:21 
AnswerRe: Getting "LINK : Fetal error LNK1561 : entry point must be defined" while creating managed C++ dll in VS2005 Pin
N a v a n e e t h7-Oct-09 22:31
N a v a n e e t h7-Oct-09 22:31 
GeneralRe: Getting "LINK : Fetal error LNK1561 : entry point must be defined" while creating managed C++ dll in VS2005 Pin
Cracked-Down7-Oct-09 22:39
Cracked-Down7-Oct-09 22:39 
GeneralRe: Getting "LINK : Fetal error LNK1561 : entry point must be defined" while creating managed C++ dll in VS2005 Pin
N a v a n e e t h7-Oct-09 22:52
N a v a n e e t h7-Oct-09 22:52 
GeneralRe: Getting "LINK : Fetal error LNK1561 : entry point must be defined" while creating managed C++ dll in VS2005 Pin
Cracked-Down7-Oct-09 23:24
Cracked-Down7-Oct-09 23:24 
GeneralRe: Getting "LINK : Fetal error LNK1561 : entry point must be defined" while creating managed C++ dll in VS2005 Pin
N a v a n e e t h7-Oct-09 23:41
N a v a n e e t h7-Oct-09 23:41 
AnswerRe: Getting "LINK : Fetal error LNK1561 : entry point must be defined" while creating managed C++ dll in VS2005 Pin
Cracked-Down7-Oct-09 23:19
Cracked-Down7-Oct-09 23:19 
QuestionHow do I get Image_click to work more than once? Pin
Fenix26-Oct-09 16:27
Fenix26-Oct-09 16:27 
AnswerRe: How do I get Image_click to work more than once? Pin
N a v a n e e t h6-Oct-09 17:17
N a v a n e e t h6-Oct-09 17:17 
GeneralRe: How do I get Image_click to work more than once? Pin
Fenix27-Oct-09 1:42
Fenix27-Oct-09 1:42 
GeneralRe: How do I get Image_click to work more than once? Pin
Richard MacCutchan7-Oct-09 4:17
mveRichard MacCutchan7-Oct-09 4:17 
GeneralRe: How do I get Image_click to work more than once? Pin
N a v a n e e t h7-Oct-09 5:06
N a v a n e e t h7-Oct-09 5:06 
GeneralRe: How do I get Image_click to work more than once? Pin
Richard MacCutchan7-Oct-09 6:57
mveRichard MacCutchan7-Oct-09 6:57 
AnswerRe: How do I get Image_click to work more than once? Pin
Luc Pattyn7-Oct-09 8:34
sitebuilderLuc Pattyn7-Oct-09 8:34 

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.