Hello,

Small problem I just run into. Having done my own share of COM interop,
I still dont know how to "change" the signature from PreserveSig to
something more convenient :-)

Like:
public interface IFileSinkFilter
{
        [PreserveSig]
        int SetFileName(
                [In, MarshalAs(UnmanagedType.LPWStr)]
string          pszFileName,
                [In, MarshalAs(UnmanagedType.LPStruct)]
AMMediaType     pmt );
        
}

How can I change this that I just have "void SetFileName (a, b)"? Just
skipping the PreserveSig, surely :-)

But what when there is an out parameter?

Thanks in advance.

Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to