By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,333 Members | 1,389 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,333 IT Pros & Developers. It's quick & easy.

Call a DLL from C# with structure of callback routine

P: n/a
Hi all, I am new to C#, I am trying to use a 3-party dll that require
me to setup my own call back routine in a structure. All is good with
in C++ if caller in c++ but in C# I am lost.

The dll require me to pass in the following:

typedef struct my_fn_in_dll {
unsigned short version;
char * caller;
my_call_back_fn_ptr errorr_call_back;
}

Now I have a need to call the dll in C#. I would like to pass in my
call back function from by c# how would I do this?
Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.