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

Managed C++/CLI

 
QuestionHow to use C++ ATL-Template class in c# Pin
Chiman19-Oct-09 10:59
Chiman19-Oct-09 10:59 
AnswerRe: How to use C++ ATL-Template class in c# Pin
N a v a n e e t h9-Oct-09 18:42
N a v a n e e t h9-Oct-09 18:42 
QuestionConvert System::String* str[] to const char* chars[] array! Pin
Cracked-Down9-Oct-09 0:34
Cracked-Down9-Oct-09 0:34 
AnswerRe: Convert System::String* str[] to const char* chars[] array! Pin
N a v a n e e t h9-Oct-09 18:50
N a v a n e e t h9-Oct-09 18:50 
GeneralRe: Convert System::String* str[] to const char* chars[] array! Pin
Cracked-Down10-Oct-09 2:06
Cracked-Down10-Oct-09 2:06 
GeneralRe: Convert System::String* str[] to const char* chars[] array! Pin
N a v a n e e t h10-Oct-09 6:10
N a v a n e e t h10-Oct-09 6:10 
GeneralRe: Convert System::String* str[] to const char* chars[] array! Pin
Cracked-Down10-Oct-09 8:23
Cracked-Down10-Oct-09 8:23 
GeneralRe: Convert System::String* str[] to const char* chars[] array! Pin
N a v a n e e t h10-Oct-09 17:58
N a v a n e e t h10-Oct-09 17:58 
You want to accept managed array as parameter and pass that to a native function that expects a native double array, right? Here is how you do it:
C++
void Function(array<double, 2>^ doubleArray)
{
	double nativeArray[2][2];
	for(int i = 0; i < 2; i++)
	{
		for(int j = 0; j < 2; j++)
		{
			nativeArray[i][j] = doubleArray[i , j];
		}
	}
}
I reiterate, please avoid using the obsolete syntax and use C++/CLI style syntax. Compile with /clr switch rather than /clr:oldsyntax.


GeneralRe: Convert System::String* str[] to const char* chars[] array! Pin
Cracked-Down10-Oct-09 20:40
Cracked-Down10-Oct-09 20:40 
QuestionFile handling with "fstream" Pin
Fenix27-Oct-09 23:27
Fenix27-Oct-09 23:27 
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 
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 

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.