Depends - is the DSP a COM object or exported functions (perhaps even a class - but that gets more complicated; see the CallingConvention.ThisCall for details - and you'll need to implement an exported class factory function). If it's COM, declare your RCW (don't forget all the attributes: ComImportAttribute, GuidAttribute, etc.), or use tlbimp.exe or VS.NET's Add Reference if you're COM server has a typelib (or you have a detached typelib). If you're using exported functions, you'll need to use P/Invoke (see DllImportAttribute) to call the functions. With CallingConvention.ThisCall, you declare your functions with an extra parameter (the first parameter!) that is an IntPtr, which is a handle to your object. You should also define and export a class factory function, as well as a destruction function to tear-down the object. See a previous reply I wrote for more details about ThisCall: http://www.codeproject.com/script/comments/forums.asp?msg=771919&forumid=1649#xx771919xx[^].
Software Design Engineer Developer Division Sustained Engineering, Microsoft My Articles