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

Managed C++/CLI

 
GeneralRe: Using a forms based GUI as an interface for unmanged C++ code Pin
alzaeem2-Aug-09 12:13
alzaeem2-Aug-09 12:13 
AnswerRe: Using a forms based GUI as an interface for unmanged C++ code Pin
Adam Maras2-Aug-09 13:23
Adam Maras2-Aug-09 13:23 
GeneralRe: Using a forms based GUI as an interface for unmanged C++ code Pin
N a v a n e e t h2-Aug-09 16:24
N a v a n e e t h2-Aug-09 16:24 
QuestionHow to Parse a string to DATE datatype using Managed C++ Pin
Anitha N.K. Ramesh29-Jul-09 20:26
Anitha N.K. Ramesh29-Jul-09 20:26 
AnswerRe: How to Parse a string to DATE datatype using Managed C++ Pin
teejayem30-Jul-09 3:40
teejayem30-Jul-09 3:40 
GeneralRe: How to Parse a string to DATE datatype using Managed C++ Pin
Anitha N.K. Ramesh3-Aug-09 2:13
Anitha N.K. Ramesh3-Aug-09 2:13 
QuestionPassing multi-dimensional array from C# to Win32 C++ dll [modified] Pin
devvvy29-Jul-09 16:51
devvvy29-Jul-09 16:51 
AnswerRe: Passing multi-dimensional array from C# to Win32 C++ dll Pin
Luc Pattyn29-Jul-09 21:08
sitebuilderLuc Pattyn29-Jul-09 21:08 
Hi,

in native code all arrays are actually one-dimensional, i.e. all the elements are on consecutive addresses.
in managed code you have two kinds of multi-dimensional arrays, and their lay-out isn't what the native world needs at all. So if you manage to get it marshalled, all data will have to be copied.

If OTOH you declare a managed one-dimensionl array, you could use either the fixed keyword or the GCHandle class to obtain the data pointer and pass that, no copying involved.

So rather than using array[x][y] I would recommend something along the lines of aray[x*YDIM+y] (or is it y*XDIM+x, not sure).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

Questiondifficulty coming up with the right format. Pin
Member 315372122-Jul-09 8:56
Member 315372122-Jul-09 8:56 
QuestionRe: difficulty coming up with the right format. Pin
Mark Salsbery23-Jul-09 5:56
Mark Salsbery23-Jul-09 5:56 
AnswerRe: difficulty coming up with the right format. Pin
Member 315372123-Jul-09 7:49
Member 315372123-Jul-09 7:49 
AnswerRe: difficulty coming up with the right format. Pin
amatecki25-Jul-09 9:17
professionalamatecki25-Jul-09 9:17 
QuestionTo write in Status bar Pin
mikobi22-Jul-09 2:45
mikobi22-Jul-09 2:45 
AnswerRe: To write in Status bar Pin
led mike22-Jul-09 4:25
led mike22-Jul-09 4:25 
Questiondepth first search help.. Pin
neha_rai21-Jul-09 10:34
neha_rai21-Jul-09 10:34 
AnswerRe: depth first search help.. Pin
Adam Roderick J23-Jul-09 0:24
Adam Roderick J23-Jul-09 0:24 
QuestionHow to pass a pointer of data to the managed side on a C++ wrapper Pin
sinosoidal19-Jul-09 23:55
sinosoidal19-Jul-09 23:55 
AnswerRe: How to pass a pointer of data to the managed side on a C++ wrapper Pin
N a v a n e e t h20-Jul-09 15:25
N a v a n e e t h20-Jul-09 15:25 
AnswerRe: How to pass a pointer of data to the managed side on a C++ wrapper Pin
amatecki23-Jul-09 8:39
professionalamatecki23-Jul-09 8:39 
QuestionRegarding IWshRuntimeLibrary::IFileSystem Pin
V K 219-Jul-09 22:43
V K 219-Jul-09 22:43 
AnswerRe: Regarding IWshRuntimeLibrary::IFileSystem Pin
lakshman rao13-Jun-20 3:58
lakshman rao13-Jun-20 3:58 
GeneralRe: Regarding IWshRuntimeLibrary::IFileSystem Pin
Richard MacCutchan13-Jun-20 6:28
mveRichard MacCutchan13-Jun-20 6:28 
Questionneed help with "System.Runtime.InteropServices.SEHException" error Pin
UserNameless14-Jul-09 19:36
UserNameless14-Jul-09 19:36 
AnswerRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
Richard Andrew x6414-Jul-09 20:36
professionalRichard Andrew x6414-Jul-09 20:36 
GeneralRe: need help with "System.Runtime.InteropServices.SEHException" error Pin
UserNameless14-Jul-09 20:57
UserNameless14-Jul-09 20:57 

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.