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

Managed C++/CLI

 
GeneralRe: [REPOST] Convert From C# To Visual C++ 2015 Pin
Paramu197316-Dec-21 22:14
Paramu197316-Dec-21 22:14 
AnswerRe: Convert From C# To Visual C++ 2015 Pin
Richard MacCutchan13-Dec-21 22:58
mveRichard MacCutchan13-Dec-21 22:58 
GeneralRe: Convert From C# To Visual C++ 2015 Pin
Paramu197316-Dec-21 22:35
Paramu197316-Dec-21 22:35 
AnswerRe: Convert From C# To Visual C++ 2015 Pin
Dave Kreskowiak14-Dec-21 6:05
mveDave Kreskowiak14-Dec-21 6:05 
QuestionopenFileDialog - AccessViolationException was unhandled Pin
Paramu19734-Oct-21 13:28
Paramu19734-Oct-21 13:28 
AnswerRe: openFileDialog - AccessViolationException was unhandled Pin
Victor Nijegorodov5-Oct-21 22:26
Victor Nijegorodov5-Oct-21 22:26 
GeneralRe: openFileDialog - AccessViolationException was unhandled Pin
Paramu19736-Oct-21 4:17
Paramu19736-Oct-21 4:17 
QuestionConvert/cast System::Array class to List Pin
yehiga146710-Jun-21 18:51
yehiga146710-Jun-21 18:51 
How do I convert array to list?

array<System::Byte>^ My1DArray = gcnew array<System::Byte>(100);


to

List<System::Byte>^ temp

temp = My1DArray.ToList(); //doesn't work


Update:

I am currently using a for loop to copy data 1 by 1, if there's no other faster way ,i'll stick with this for now . Thanks!
array<System::Byte>^ My1DArray = gcnew array<System::Byte>(100);

int^ bytesToRead = gcnew(int);
*bytesToRead = SerialPort->BytesToRead;
SerialPort->Read(My1DArray, 0, *bytesToRead);
SerialPort->DiscardInBuffer();

List<System::Byte>^ temp = gcnew List<System::Byte>;

int^ counter = gcnew (int);
for (*counter = 0; *counter < *bytesToRead; (*counter)++) {
    temp->Add(My1DArray[*counter]);
}


modified 11-Jun-21 1:53am.

AnswerRe: Convert/cast System::Array class to List Pin
Victor Nijegorodov10-Jun-21 21:27
Victor Nijegorodov10-Jun-21 21:27 
AnswerRe: Convert/cast System::Array class to List Pin
Richard Andrew x6427-Jun-21 7:52
professionalRichard Andrew x6427-Jun-21 7:52 
QuestionC# and c++/cli problem on x86 OS Pin
Duc Axenn30-May-21 11:25
Duc Axenn30-May-21 11:25 
AnswerRe: C# and c++/cli problem on x86 OS Pin
Dave Kreskowiak10-Jun-21 19:51
mveDave Kreskowiak10-Jun-21 19:51 
QuestionManaged c++ how to memcpy a handle reference Pin
yehiga146728-May-21 0:25
yehiga146728-May-21 0:25 
AnswerRe: Managed c++ how to memcpy a handle reference Pin
Victor Nijegorodov28-May-21 1:25
Victor Nijegorodov28-May-21 1:25 
GeneralRe: Managed c++ how to memcpy a handle reference Pin
yehiga146728-May-21 1:55
yehiga146728-May-21 1:55 
GeneralRe: Managed c++ how to memcpy a handle reference Pin
Victor Nijegorodov28-May-21 2:45
Victor Nijegorodov28-May-21 2:45 
GeneralRe: Managed c++ how to memcpy a handle reference Pin
Richard MacCutchan28-May-21 3:01
mveRichard MacCutchan28-May-21 3:01 
GeneralRe: Managed c++ how to memcpy a handle reference Pin
yehiga146728-May-21 3:26
yehiga146728-May-21 3:26 
AnswerRe: Managed c++ how to memcpy a handle reference Pin
Fly Gheorghe25-Jan-22 10:15
Fly Gheorghe25-Jan-22 10:15 
QuestionHow to make Serial Port static from the designer? Pin
yehiga146726-May-21 18:11
yehiga146726-May-21 18:11 
SuggestionRe: How to make Serial Port static from the designer? Pin
Richard MacCutchan26-May-21 22:14
mveRichard MacCutchan26-May-21 22:14 
GeneralRe: How to make Serial Port static from the designer? Pin
yehiga146726-May-21 22:18
yehiga146726-May-21 22:18 
GeneralRe: How to make Serial Port static from the designer? Pin
Richard MacCutchan26-May-21 22:59
mveRichard MacCutchan26-May-21 22:59 
QuestionManaged c++ float/double/integer to String and vice-versa? Pin
yehiga146725-May-21 23:46
yehiga146725-May-21 23:46 
AnswerRe: Managed c++ float/double/integer to String and vice-versa? Pin
Victor Nijegorodov26-May-21 0:05
Victor Nijegorodov26-May-21 0:05 

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.