Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
kinar18-Nov-08 3:20
kinar18-Nov-08 3:20 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
led mike18-Nov-08 5:41
led mike18-Nov-08 5:41 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
kinar18-Nov-08 7:53
kinar18-Nov-08 7:53 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
led mike18-Nov-08 8:22
led mike18-Nov-08 8:22 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
kinar18-Nov-08 9:11
kinar18-Nov-08 9:11 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
led mike18-Nov-08 10:16
led mike18-Nov-08 10:16 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
kinar18-Nov-08 11:43
kinar18-Nov-08 11:43 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
led mike18-Nov-08 11:57
led mike18-Nov-08 11:57 
kinar wrote:
However, doesn't that mean that my wrapper is required to use the PInvoke to use it?


No. In mixed mode C++/CLI your code is a first class citizen of both Managed and Native environments.

kinar wrote:
Or is it more of an issue that by using a mixed mode assembly, I can use the callback in the same way that I would from a standard C/C++ app and then I can expose some other methodology within the assembly to handle the .NET delegate reference that is set within the 3rd party .NET assembly?

Don't know what 3rd party .NET assembly you are talking about. Yes as I stated above. Using C++/CLI your assembly will publish .NET items to users of the assembly from the .NET platform. However internally you have Native C/C++ code access to any and all API's that you make visible by including the source or libraries same as with a pure Native source or library. All you have to account for is marshalling the memory which the .NET Base Class library provides mechansisms for doing so even that is simple.

kinar wrote:
Anyway, thanks for your help. I'm sure you've already spent far more time on this thread than you expected

Not a problem, you are welcome.


led mike

Questionscreen position of control Pin
Eli Nurman17-Nov-08 8:57
Eli Nurman17-Nov-08 8:57 
AnswerRe: screen position of control Pin
Samer Aburabie17-Nov-08 10:54
Samer Aburabie17-Nov-08 10:54 
QuestionHow to list Com Port usage and list of devices using those ports Pin
serkan197717-Nov-08 8:33
serkan197717-Nov-08 8:33 
AnswerRe: How to list Com Port usage and list of devices using those ports Pin
Samer Aburabie17-Nov-08 11:02
Samer Aburabie17-Nov-08 11:02 
GeneralRe: How to list Com Port usage and list of devices using those ports Pin
Rahul.RK17-Nov-08 20:03
Rahul.RK17-Nov-08 20:03 
Questioni am from greece and i want to write a file in greeks with data` from a textbox Pin
dianikol17-Nov-08 8:06
dianikol17-Nov-08 8:06 
AnswerRe: i am from greece and i want to write a file in greeks with data` from a textbox Pin
Pedram Behroozi17-Nov-08 8:38
Pedram Behroozi17-Nov-08 8:38 
GeneralRe: i am from greece and i want to write a file in greeks with data` from a textbox Pin
dianikol17-Nov-08 11:39
dianikol17-Nov-08 11:39 
GeneralRe: i am from greece and i want to write a file in greeks with data` from a textbox Pin
Pedram Behroozi17-Nov-08 19:42
Pedram Behroozi17-Nov-08 19:42 
Questionhow to make long time whit ConnectionTimeout Pin
E_Gold17-Nov-08 7:18
E_Gold17-Nov-08 7:18 
AnswerRe: how to make long time whit ConnectionTimeout Pin
Wendelius17-Nov-08 7:22
mentorWendelius17-Nov-08 7:22 
AnswerRe: how to make long time whit ConnectionTimeout Pin
PavanPareta17-Nov-08 19:11
PavanPareta17-Nov-08 19:11 
QuestionAll rows are not comming in dataset while filling from Excel.(when different datatype in excel column) Pin
ManojKumar1917-Nov-08 6:43
ManojKumar1917-Nov-08 6:43 
AnswerRe: All rows are not comming in dataset while filling from Excel.(when different datatype in excel column) Pin
leppie17-Nov-08 20:24
leppie17-Nov-08 20:24 
GeneralRe: All rows are not comming in dataset while filling from Excel.(when different datatype in excel column) Pin
ManojKumar1918-Nov-08 4:52
ManojKumar1918-Nov-08 4:52 
Questiona problem of multiple forms Pin
Seraph_summer17-Nov-08 5:18
Seraph_summer17-Nov-08 5:18 
AnswerRe: a problem of multiple forms Pin
Ennis Ray Lynch, Jr.17-Nov-08 5:35
Ennis Ray Lynch, Jr.17-Nov-08 5:35 

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.