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

Managed C++/CLI

 
QuestionMarshal::Copy fails when trying to copy from a char* to a System::Char[] Pin
Cyrilix25-Sep-08 10:50
Cyrilix25-Sep-08 10:50 
GeneralRe: Marshal::Copy fails when trying to copy from a char* to a System::Char[] Pin
George L. Jackson25-Sep-08 11:54
George L. Jackson25-Sep-08 11:54 
GeneralRe: Marshal::Copy fails when trying to copy from a char* to a System::Char[] Pin
Cyrilix25-Sep-08 12:27
Cyrilix25-Sep-08 12:27 
GeneralRe: Marshal::Copy fails when trying to copy from a char* to a System::Char[] Pin
Mark Salsbery25-Sep-08 13:00
Mark Salsbery25-Sep-08 13:00 
QuestionGames and C++/CLI Pin
Cyon11125-Sep-08 0:50
Cyon11125-Sep-08 0:50 
GeneralRe: Games and C++/CLI Pin
George L. Jackson25-Sep-08 4:07
George L. Jackson25-Sep-08 4:07 
Questionarray initilization Pin
staticv24-Sep-08 23:27
staticv24-Sep-08 23:27 
AnswerRe: array initilization Pin
George L. Jackson25-Sep-08 4:00
George L. Jackson25-Sep-08 4:00 
I don't believe there is a simple way to initialize each item in a array<T> to a custom default value. However, if you are desperate, you could use the following:

#include <cliext/vector>
 
using namespace System;
using namespace cliext;
 
int main(array<System::String ^> ^args)
{
	array<wchar_t>^ vals = (gcnew vector<wchar_t>(10, L'a'))->to_array();
 
	for each(wchar_t val in vals)
		Console::WriteLine(val);
 
	return 0;
}


"We make a living by what we get, we make a life by what we give." --Winston Churchill

QuestionAttach DLL to Program Pin
DemonPT24-Sep-08 14:03
DemonPT24-Sep-08 14:03 
QuestionUnmanaged string to managed string Pin
N a v a n e e t h23-Sep-08 17:08
N a v a n e e t h23-Sep-08 17:08 
AnswerRe: Unmanaged string to managed string Pin
George L. Jackson23-Sep-08 17:33
George L. Jackson23-Sep-08 17:33 
Question.net runtime eror Pin
balu1234522-Sep-08 9:18
balu1234522-Sep-08 9:18 
AnswerCross Post Pin
led mike23-Sep-08 4:45
led mike23-Sep-08 4:45 
QuestionCalling Windows.Form from MFC with /cli [modified] Pin
ToSchi9819-Sep-08 1:43
ToSchi9819-Sep-08 1:43 
AnswerRe: Calling Windows.Form from MFC with /cli Pin
Mark Salsbery19-Sep-08 6:58
Mark Salsbery19-Sep-08 6:58 
GeneralRe: Calling Windows.Form from MFC with /cli Pin
ToSchi9819-Sep-08 8:58
ToSchi9819-Sep-08 8:58 
GeneralRe: Calling Windows.Form from MFC with /cli Pin
Mark Salsbery19-Sep-08 10:44
Mark Salsbery19-Sep-08 10:44 
GeneralRe: Calling Windows.Form from MFC with /cli Pin
ToSchi9822-Sep-08 3:18
ToSchi9822-Sep-08 3:18 
GeneralRe: Calling Windows.Form from MFC with /cli Pin
Mark Salsbery22-Sep-08 4:50
Mark Salsbery22-Sep-08 4:50 
GeneralRe: Calling Windows.Form from MFC with /cli [modified] Pin
ToSchi9824-Sep-08 3:27
ToSchi9824-Sep-08 3:27 
QuestionRe: Calling Windows.Form from MFC with /cli Pin
Mark Salsbery24-Sep-08 5:55
Mark Salsbery24-Sep-08 5:55 
GeneralRe: Calling Windows.Form from MFC with /cli Pin
Mark Salsbery24-Sep-08 6:21
Mark Salsbery24-Sep-08 6:21 
GeneralRe: Calling Windows.Form from MFC with /cli Pin
ToSchi9824-Sep-08 20:56
ToSchi9824-Sep-08 20:56 
QuestionHow to create C# Control for any language Pin
Andy Rama17-Sep-08 23:16
Andy Rama17-Sep-08 23:16 
AnswerRe: How to create C# Control for any language Pin
Mark Salsbery18-Sep-08 4:14
Mark Salsbery18-Sep-08 4:14 

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.