Click here to Skip to main content
15,914,943 members
Home / Discussions / C#
   

C#

 
AnswerRe: Base64 strings Pin
BoneSoft26-Sep-07 5:55
BoneSoft26-Sep-07 5:55 
AnswerRe: Base64 strings Pin
Scott Dorman26-Sep-07 6:43
professionalScott Dorman26-Sep-07 6:43 
QuestionWriting column names in Excel file Pin
topksharma198226-Sep-07 4:34
topksharma198226-Sep-07 4:34 
AnswerRe: Writing column names in Excel file Pin
Justin Perez26-Sep-07 4:57
Justin Perez26-Sep-07 4:57 
Questionarray of integers C++/C# Pin
alispas26-Sep-07 4:26
alispas26-Sep-07 4:26 
AnswerRe: array of integers C++/C# Pin
snorkie26-Sep-07 4:44
professionalsnorkie26-Sep-07 4:44 
GeneralRe: array of integers C++/C# Pin
alispas26-Sep-07 4:54
alispas26-Sep-07 4:54 
AnswerRe: array of integers C++/C# Pin
Luc Pattyn26-Sep-07 4:59
sitebuilderLuc Pattyn26-Sep-07 4:59 
Hi,

if possible I would create the array of the right size using managed code, use the
GCHandle class to pin it in memory and get its IntPtr, then pass that to the unmanaged code
which can read and/or write the array; afterwards apply GCHandle.Free().

That is much easier than trying to have unmanaged code create an object, and it avoids
copying all the data while marshaling.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


AnswerRe: array of integers C++/C# Pin
led mike26-Sep-07 5:06
led mike26-Sep-07 5:06 
GeneralRe: array of integers C++/C# Pin
#realJSOP26-Sep-07 5:58
professional#realJSOP26-Sep-07 5:58 
GeneralRe: array of integers C++/C# Pin
led mike26-Sep-07 7:25
led mike26-Sep-07 7:25 
QuestionProcess.GetProcesses(); fail Pin
H.R26-Sep-07 3:14
H.R26-Sep-07 3:14 
AnswerRe: Process.GetProcesses(); fail Pin
Pete O'Hanlon26-Sep-07 4:07
mvePete O'Hanlon26-Sep-07 4:07 
QuestioncheckBox & TreeView Pin
half-life26-Sep-07 3:12
half-life26-Sep-07 3:12 
AnswerRe: checkBox & TreeView Pin
TJoe26-Sep-07 3:28
TJoe26-Sep-07 3:28 
GeneralRe: checkBox & TreeView Pin
half-life26-Sep-07 3:42
half-life26-Sep-07 3:42 
QuestionWho am I? Detecting the "current" control for a handler [modified] Pin
JoeRip26-Sep-07 2:31
JoeRip26-Sep-07 2:31 
AnswerRe: Who am I? Detecting the "current" control for a handler Pin
Malcolm Smart26-Sep-07 2:35
Malcolm Smart26-Sep-07 2:35 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 2:41
JoeRip26-Sep-07 2:41 
AnswerRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 2:48
TJoe26-Sep-07 2:48 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 2:52
JoeRip26-Sep-07 2:52 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 3:01
TJoe26-Sep-07 3:01 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 3:07
JoeRip26-Sep-07 3:07 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
TJoe26-Sep-07 3:16
TJoe26-Sep-07 3:16 
GeneralRe: Who am I? Detecting the "current" control for a handler Pin
JoeRip26-Sep-07 3:18
JoeRip26-Sep-07 3:18 

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.