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

Managed C++/CLI

 
QuestionTextbox Difficult Pin
mikobi27-Jun-07 3:54
mikobi27-Jun-07 3:54 
AnswerRe: Textbox Difficult Pin
Christian Graus27-Jun-07 12:20
protectorChristian Graus27-Jun-07 12:20 
GeneralRe: Textbox Difficult Pin
mikobi27-Jun-07 21:04
mikobi27-Jun-07 21:04 
GeneralRe: Textbox Difficult Pin
mikobi28-Jun-07 22:02
mikobi28-Jun-07 22:02 
GeneralRe: Textbox Difficult Pin
mikobi3-Jul-07 6:42
mikobi3-Jul-07 6:42 
Questiondeterministic cleanup in C++/CLI Pin
rockonedge26-Jun-07 21:48
rockonedge26-Jun-07 21:48 
AnswerRe: deterministic cleanup in C++/CLI Pin
Geo Pa27-Jun-07 3:52
Geo Pa27-Jun-07 3:52 
Questionbyte C# to C++ Pin
C#Coudou26-Jun-07 19:22
C#Coudou26-Jun-07 19:22 
Whats wrong with my C++ code, it gets me an error.
How to use byte array in C++ by the way?

C# code:

int data_size = 146000;
int data_loop = 4096;
byte[] data_sent= new byte[data_size];
Random rnd = new Random();
rnd.NextBytes(data_sent);

for (int x = 0; x < data_size; x++)
if (data_sent[x] == 0x3f){
data_sent[x] = 0;
}

C++ code:

int data_size = 146000;
int data_loop = 4096;
Byte[] data_sent = gcnew Byte[data_size]; //Gets me error
Random^ myrandom = gcnew Random;
myrandom->NextBytes(data_sent);
for (int x = 0; x < data_size; x++)
if (data_sent[x] == 0x3f){
data_sent[x] = 0;
}

note: the c# is working and compiled but the c++ code stuck me from that error. Confused | :confused:



******************************
I just want to
know everything


AnswerRe: byte C# to C++ Pin
C#Coudou26-Jun-07 19:39
C#Coudou26-Jun-07 19:39 
QuestionNetwork speed detection Pin
C#Coudou26-Jun-07 18:36
C#Coudou26-Jun-07 18:36 
AnswerRe: Network speed detection Pin
Paul Conrad14-Jul-07 13:41
professionalPaul Conrad14-Jul-07 13:41 
QuestionConnectionString Pin
mikobi26-Jun-07 4:53
mikobi26-Jun-07 4:53 
AnswerRe: ConnectionString Pin
led mike26-Jun-07 5:26
led mike26-Jun-07 5:26 
AnswerRe: ConnectionString Pin
Mark Salsbery26-Jun-07 5:55
Mark Salsbery26-Jun-07 5:55 
GeneralRe: ConnectionString Pin
mikobi27-Jun-07 5:37
mikobi27-Jun-07 5:37 
GeneralRe: ConnectionString Pin
Mark Salsbery27-Jun-07 6:35
Mark Salsbery27-Jun-07 6:35 
GeneralRe: ConnectionString Pin
mikobi27-Jun-07 21:06
mikobi27-Jun-07 21:06 
QuestionQuery with parameters Pin
mikobi26-Jun-07 3:36
mikobi26-Jun-07 3:36 
AnswerRe: Query with parameters Pin
mikobi27-Jun-07 5:34
mikobi27-Jun-07 5:34 
QuestionMVPs Pin
vibindia25-Jun-07 18:11
vibindia25-Jun-07 18:11 
AnswerRe: MVPs Pin
Giorgi Dalakishvili25-Jun-07 20:35
mentorGiorgi Dalakishvili25-Jun-07 20:35 
AnswerRe: MVPs Pin
Mark Salsbery25-Jun-07 20:45
Mark Salsbery25-Jun-07 20:45 
QuestionImage GDI+ from a buffer Pin
Ahmed_Barakat25-Jun-07 5:56
Ahmed_Barakat25-Jun-07 5:56 
AnswerRe: Image GDI+ from a buffer Pin
led mike25-Jun-07 6:04
led mike25-Jun-07 6:04 
AnswerRe: Image GDI+ from a buffer Pin
Mark Salsbery25-Jun-07 8:56
Mark Salsbery25-Jun-07 8:56 

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.