-
types in C++
wheres the best place to find the type equivalents for some of the C++ #define types like for instance WORD
also what would be the best way to make this c++ struct member a c# struct member??
void (CALLBACK *ncb_post)( struct _NCB * );
it's from the NCB structure in nb30.h
-
check this out,
Keyword Equals - MSDN topic
call backs can be solved by using proper use of delegates.
for example when you write a thread or
when u implement a event then its really a call back to method just like
envoking Pointer to a Function. and invoking method. in C++ its usually known as callbacks. in C# its been implemented as Delegates.
Paresh
-
could u give an example of how to use a delegate for it? :D
also from NCB struct of nb30.h
HANDLE ncb_event;
how would u redifine HANDLE type in c#, my guess is IntPtr, however I looked at the definition for HANDLE in C++ and it looks complicated :confused: so I'm not sure
-
-
do you still want the sample of delegate or u got it.
Paresh
-
1 Attachment(s)
I think I got it however now I'm stumped on something else, I'm tryin to make a c# class that has functions that use the Netbios API call but it won't let me do what I wanted, how would I get it to work, the code is attatched