Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: Marshaling between managed and unmanaged Pin
Luc Pattyn28-Sep-09 10:45
sitebuilderLuc Pattyn28-Sep-09 10:45 
GeneralRe: Marshaling between managed and unmanaged Pin
akhanal28-Sep-09 11:03
akhanal28-Sep-09 11:03 
GeneralRe: Marshaling between managed and unmanaged Pin
akhanal28-Sep-09 12:01
akhanal28-Sep-09 12:01 
GeneralRe: Marshaling between managed and unmanaged Pin
Luc Pattyn28-Sep-09 12:18
sitebuilderLuc Pattyn28-Sep-09 12:18 
GeneralRe: Marshaling between managed and unmanaged Pin
akhanal29-Sep-09 4:04
akhanal29-Sep-09 4:04 
GeneralRe: Marshaling between managed and unmanaged Pin
Luc Pattyn29-Sep-09 4:17
sitebuilderLuc Pattyn29-Sep-09 4:17 
GeneralRe: Marshaling between managed and unmanaged [modified] Pin
akhanal29-Sep-09 5:02
akhanal29-Sep-09 5:02 
GeneralRe: Marshaling between managed and unmanaged Pin
Luc Pattyn29-Sep-09 5:36
sitebuilderLuc Pattyn29-Sep-09 5:36 
seeing the real function name, and example code using it, I now know the native function is allocating an array and setting its pointer through arg3 (which you later must free again). So you don't need any fixed nor GCHandle and this code of yours[^] should be pretty close. However your int [] managedArray = new int[1] is still wrong, they are 16-bit numbers, so use short!

Check again in the way I indicated here[^].

When in doubt, compare results for a native caller and your managed caller.

Smile | :)

Luc Pattyn

Local announcement (Antwerp region): Lange Wapper? Neen!


GeneralRe: Marshaling between managed and unmanaged Pin
akhanal29-Sep-09 5:32
akhanal29-Sep-09 5:32 
GeneralRe: Marshaling between managed and unmanaged Pin
Luc Pattyn29-Sep-09 5:37
sitebuilderLuc Pattyn29-Sep-09 5:37 
GeneralRe: Marshaling between managed and unmanaged [modified] Pin
akhanal29-Sep-09 6:01
akhanal29-Sep-09 6:01 
GeneralRe: Marshaling between managed and unmanaged Pin
Luc Pattyn29-Sep-09 6:15
sitebuilderLuc Pattyn29-Sep-09 6:15 
GeneralRe: Marshaling between managed and unmanaged Pin
akhanal29-Sep-09 6:27
akhanal29-Sep-09 6:27 
QuestionGetting the selected items from a radioButton group Pin
Twyce28-Sep-09 6:42
Twyce28-Sep-09 6:42 
AnswerRe: Getting the selected items from a radioButton group Pin
Michael Eber28-Sep-09 7:04
Michael Eber28-Sep-09 7:04 
QuestionCrystal Report at User's Computer Pin
Said Ali Jalali28-Sep-09 5:05
Said Ali Jalali28-Sep-09 5:05 
AnswerRe: Crystal Report at User's Computer Pin
Not Active28-Sep-09 5:12
mentorNot Active28-Sep-09 5:12 
AnswerRe: Crystal Report at User's Computer Pin
hosseinghazanfary28-Sep-09 6:08
hosseinghazanfary28-Sep-09 6:08 
AnswerRe: Crystal Report at User's Computer Pin
Paramhans Dubey29-Sep-09 2:45
professionalParamhans Dubey29-Sep-09 2:45 
QuestionSelect Row in DataGridView By Using Code (Physically) Pin
Thaer Hamael28-Sep-09 5:02
Thaer Hamael28-Sep-09 5:02 
AnswerRe: Select Row in DataGridView By Using Code (Physically) Pin
Not Active28-Sep-09 5:10
mentorNot Active28-Sep-09 5:10 
GeneralRe: Select Row in DataGridView By Using Code (Physically) Pin
Thaer Hamael28-Sep-09 5:20
Thaer Hamael28-Sep-09 5:20 
GeneralRe: Select Row in DataGridView By Using Code (Physically) Pin
MickCurley28-Sep-09 7:20
MickCurley28-Sep-09 7:20 
GeneralRe: Select Row in DataGridView By Using Code (Physically) Pin
Thaer Hamael28-Sep-09 20:48
Thaer Hamael28-Sep-09 20:48 
AnswerRe: Select Row in DataGridView By Using Code (Physically) Pin
bscaer28-Sep-09 5:39
bscaer28-Sep-09 5:39 

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.