G
Guest
I've added a library to the project I'm currently working on which contains
the following function:
ConfigureFilterUsingProfile(ByVal pProfile As System.IntPtr) As Integer
pProfile is a pointer to the Windows Media Encoder interface IWMEncProfile.
If I create a profile -- Dim EncProfile As IWMEncProfile -- and try and pass
this to the function -- ASFConfig.ConfigureFilterUsingProfile(EncProfile) --
I (obviously) get the following error message:
Value of type 'WMEncoderLib.IWMEncProfile' cannot be converted to
'System.IntPtr'.
How can I get a pointer to my EncProfile object? I'd be much obliged to
anyone who can point me in the right direction (lame joke, but what the heck).
the following function:
ConfigureFilterUsingProfile(ByVal pProfile As System.IntPtr) As Integer
pProfile is a pointer to the Windows Media Encoder interface IWMEncProfile.
If I create a profile -- Dim EncProfile As IWMEncProfile -- and try and pass
this to the function -- ASFConfig.ConfigureFilterUsingProfile(EncProfile) --
I (obviously) get the following error message:
Value of type 'WMEncoderLib.IWMEncProfile' cannot be converted to
'System.IntPtr'.
How can I get a pointer to my EncProfile object? I'd be much obliged to
anyone who can point me in the right direction (lame joke, but what the heck).