Click here to Skip to main content
16,004,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
kinar17-Nov-08 10:10
kinar17-Nov-08 10:10 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
led mike17-Nov-08 11:02
led mike17-Nov-08 11:02 
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 
kinar wrote:
From what I understand the concept of using callbacks to call into a .NET app doesn't work well.


Then you misunderstand, it works perfectly well.

There are any number of mechanisms that can be used. interface, delegate, event. interface works just like it does in C++, you can start learning about delegates and events in this link.[^]

By developing which ever mechanisms you need in a C++/CLI mixed mode assembly, you greatly simplify the users job since you are providing .NET Managed items for them to work with rather than Native C functions they have to use PInvoke to use. You handle all the marshaling internally and the user is not burdened with any of it. As I stated earlier, IMHO, that's what you do if you build a library.


led mike

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 
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 

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.