Click here to Skip to main content
15,905,590 members
Home / Discussions / C#
   

C#

 
GeneralRe: function call from an c++ dll in c# Pin
Willow200818-Oct-13 0:54
Willow200818-Oct-13 0:54 
GeneralRe: function call from an c++ dll in c# Pin
OriginalGriff18-Oct-13 1:02
mveOriginalGriff18-Oct-13 1:02 
GeneralRe: function call from an c++ dll in c# Pin
Richard MacCutchan18-Oct-13 1:51
mveRichard MacCutchan18-Oct-13 1:51 
GeneralRe: function call from an c++ dll in c# Pin
_Erik_18-Oct-13 5:35
_Erik_18-Oct-13 5:35 
GeneralRe: function call from an c++ dll in c# Pin
Willow200822-Oct-13 4:02
Willow200822-Oct-13 4:02 
AnswerRe: function call from an c++ dll in c# Pin
Bernhard Hiller17-Oct-13 21:42
Bernhard Hiller17-Oct-13 21:42 
AnswerRe: function call from an c++ dll in c# Pin
OriginalGriff17-Oct-13 21:44
mveOriginalGriff17-Oct-13 21:44 
AnswerRe: function call from an c++ dll in c# Pin
Freak3017-Oct-13 21:58
Freak3017-Oct-13 21:58 
I think the problem is that byte[] in C# is a managed array, which is not equivalent to the address of the first member as it is in unmanaged C++. You will probably have to use a pointer type for this parameter as well. You will need an unsafe block and should probably also use the fixed keyword to prevent the Garbage Collector from moving the content of the array while the C++ function is using it.
The good thing about pessimism is, that you are always either right or pleasently surprised.

QuestionTreeview in menu + asp.net Pin
jojoba2017-Oct-13 5:41
jojoba2017-Oct-13 5:41 
AnswerRe: Treeview in menu + asp.net Pin
Eddy Vluggen17-Oct-13 6:50
professionalEddy Vluggen17-Oct-13 6:50 
AnswerRe: Treeview in menu + asp.net Pin
Abhinav S17-Oct-13 17:08
Abhinav S17-Oct-13 17:08 
GeneralRe: Treeview in menu + asp.net Pin
jojoba2018-Oct-13 19:04
jojoba2018-Oct-13 19:04 
Questioncursor Pin
litao517-Oct-13 4:29
litao517-Oct-13 4:29 
AnswerRe: cursor Pin
Eddy Vluggen17-Oct-13 5:12
professionalEddy Vluggen17-Oct-13 5:12 
GeneralRe: cursor Pin
litao517-Oct-13 18:10
litao517-Oct-13 18:10 
AnswerRe: cursor Pin
BillWoodruff17-Oct-13 16:19
professionalBillWoodruff17-Oct-13 16:19 
QuestionControl from scratch ? Pin
_Q12_16-Oct-13 21:16
_Q12_16-Oct-13 21:16 
AnswerRe: Control from scratch ? Pin
Chris Quinn16-Oct-13 21:37
Chris Quinn16-Oct-13 21:37 
GeneralRe: Control from scratch ? Pin
_Q12_16-Oct-13 21:43
_Q12_16-Oct-13 21:43 
GeneralRe: Control from scratch ? Pin
_Q12_16-Oct-13 22:04
_Q12_16-Oct-13 22:04 
AnswerRe: Control from scratch ? Pin
Mycroft Holmes16-Oct-13 22:07
professionalMycroft Holmes16-Oct-13 22:07 
GeneralRe: Control from scratch ? Pin
_Q12_16-Oct-13 22:10
_Q12_16-Oct-13 22:10 
AnswerRe: Control from scratch ? Pin
Pete O'Hanlon16-Oct-13 22:42
mvePete O'Hanlon16-Oct-13 22:42 
GeneralRe: Control from scratch ? Pin
_Q12_16-Oct-13 23:07
_Q12_16-Oct-13 23:07 
GeneralRe: Control from scratch ? Pin
Pete O'Hanlon16-Oct-13 23:13
mvePete O'Hanlon16-Oct-13 23:13 

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.