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

Managed C++/CLI

 
AnswerRe: How to change the change the startup type of a Windows Service from a program? Pin
Mark Salsbery27-Sep-07 6:10
Mark Salsbery27-Sep-07 6:10 
GeneralRe: How to change the change the startup type of a Windows Service from a program? Pin
Rocky#27-Sep-07 18:05
Rocky#27-Sep-07 18:05 
GeneralRe: How to change the change the startup type of a Windows Service from a program? Pin
Mark Salsbery28-Sep-07 6:37
Mark Salsbery28-Sep-07 6:37 
QuestionHow to remove an ambiguity in namespace in .NET 1.1 Pin
Rocky#26-Sep-07 19:17
Rocky#26-Sep-07 19:17 
AnswerRe: How to remove an ambiguity in namespace in .NET 1.1 Pin
DanB198329-Sep-07 10:29
DanB198329-Sep-07 10:29 
GeneralRe: How to remove an ambiguity in namespace in .NET 1.1 Pin
Rocky#30-Sep-07 0:04
Rocky#30-Sep-07 0:04 
GeneralRe: How to remove an ambiguity in namespace in .NET 1.1 Pin
DanB198330-Sep-07 9:16
DanB198330-Sep-07 9:16 
QuestionPassing a list of structures from managed c++ to c# Pin
slkr17126-Sep-07 2:42
slkr17126-Sep-07 2:42 
Hello,

I wrote a managed C++ wrapper to integrate an unmanaged DLL into my C# application. From within this wrapper I have to pass a list of structures to C#:

struct structTwo{
int signal_value;
char text_info[PARSER_MAXSTRLEN];
};

struct structOne
{
int num_of_logical_values;
structTwo* logical_value; //<-- This is the list of the above structure
int num_of_physical_ranges;
int num_of_bcd_ranges;
int num_of_ascii_ranges;
};


So with one call to C# I would like to pass the whole structOne including the list of structTwos. Ok?

Passing a list of strings or INTs works fine using an ArrayList as parameter type:

ArrayList* stringList= new ArrayList();
for (int i=0; i<sporadic_frame_entries->num_of_frame_entries; i++)
{
stringList->Add(new String(theString));
}


Can I do this with the structure too? I tried several things but somehow I can't figure out.Confused | :confused:

Can someone suggest an appropriate solution?


thx

Steffen
AnswerRe: Passing a list of structures from managed c++ to c# Pin
led mike26-Sep-07 4:55
led mike26-Sep-07 4:55 
GeneralRe: Passing a list of structures from managed c++ to c# Pin
slkr17126-Sep-07 20:55
slkr17126-Sep-07 20:55 
Questionusing unmanaged dlls asserts Pin
dedil26-Sep-07 1:13
dedil26-Sep-07 1:13 
QuestionWhat is resposible for Painting DataGridView Pin
BuckBrown24-Sep-07 12:33
BuckBrown24-Sep-07 12:33 
AnswerRe: What is resposible for Painting DataGridView Pin
Luc Pattyn24-Sep-07 14:15
sitebuilderLuc Pattyn24-Sep-07 14:15 
GeneralRe: What is resposible for Painting DataGridView Pin
BuckBrown25-Sep-07 6:05
BuckBrown25-Sep-07 6:05 
GeneralRe: What is resposible for Painting DataGridView Pin
BuckBrown25-Sep-07 7:19
BuckBrown25-Sep-07 7:19 
GeneralRe: What is resposible for Painting DataGridView Pin
BuckBrown25-Sep-07 9:26
BuckBrown25-Sep-07 9:26 
GeneralRe: What is resposible for Painting DataGridView [modified] Pin
Luc Pattyn26-Sep-07 7:31
sitebuilderLuc Pattyn26-Sep-07 7:31 
GeneralRe: What is resposible for Painting DataGridView Pin
Luc Pattyn26-Sep-07 10:04
sitebuilderLuc Pattyn26-Sep-07 10:04 
AnswerRe: What is resposible for Painting DataGridView Pin
led mike25-Sep-07 5:01
led mike25-Sep-07 5:01 
GeneralRe: What is resposible for Painting DataGridView Pin
BuckBrown25-Sep-07 6:10
BuckBrown25-Sep-07 6:10 
GeneralRe: What is resposible for Painting DataGridView Pin
BuckBrown25-Sep-07 7:19
BuckBrown25-Sep-07 7:19 
AnswerRe: What is resposible for Painting DataGridView Pin
KarstenK26-Sep-07 4:02
mveKarstenK26-Sep-07 4:02 
QuestionReading and writing to a named pipe C, C++, C# Pin
higgsbo23-Sep-07 7:41
higgsbo23-Sep-07 7:41 
AnswerRe: Reading and writing to a named pipe C, C++, C# Pin
led mike24-Sep-07 4:57
led mike24-Sep-07 4:57 
AnswerRe: Reading and writing to a named pipe C, C++, C# Pin
KarstenK26-Sep-07 4:06
mveKarstenK26-Sep-07 4:06 

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.