Mmmh, ja dat is gelukt, nu heb ik alleen het volgende probleem
C#:
1
2
3
4
5
6
7
8
| public class FilterCategory // uuids.h : CLSID_*
{
/// <summary> CLSID_AudioInputDeviceCategory, audio capture category </summary>
public static readonly Guid AudioInputDevice = new Guid( 0x33d9a762,0x90c8,0x11d0,0xbd,0x43,0x00,0xa0,0xc9,0x11,0xce,0x86 );
/// <summary> CLSID_VideoInputDeviceCategory, video capture category </summary>
public static readonly Guid VideoInputDevice = new Guid( 0x860BB310,0x5D01,0x11d0,0xBD,0x3B,0x00,0xA0,0xC9,0x11,0xCE,0x86 );
} |
converteerd hij naar
Visual Basic .NET:
1
2
3
4
| Public Class FilterCategory
Public Shared ReadOnly AudioInputDevice As Guid = New Guid (869902178, 37064, 4560, 189, 67, 0, 160, 201, 17, 206, 134)
Public Shared ReadOnly VideoInputDevice As Guid = New Guid (-2046053616, 23809, 4560, 189, 59, 0, 160, 201, 17, 206, 134)
End Class |
En dan kan de bovenste regel niet, dit komt omdat de getallen te lang zijn.
( Overload resolution failed because no accessible 'New' can be called with these arguments:
'Public Sub New(a As Integer, b As Short, c As Short, d As Byte, e As Byte, f As Byte, g As Byte, h As Byte, i As Byte, j As Byte, k As Byte)': Constant expression not representable in type 'Short'.
'Public Sub New(a As System.UInt32, b As System.UInt16, c As System.UInt16, d As Byte, e As Byte, f As Byte, g As Byte, h As Byte, i As Byte, j As Byte, k As Byte)': Value of type 'Integer' cannot be converted to 'System.UInt32'.
'Public Sub New(a As System.UInt32, b As System.UInt16, c As System.UInt16, d As Byte, e As Byte, f As Byte, g As Byte, h As Byte, i As Byte, j As Byte, k As Byte)': Value of type 'Integer' cannot be converted to 'System.UInt16'.
'Public Sub New(a As System.UInt32, b As System.UInt16, c As System.UInt16, d As Byte, e As Byte, f As Byte, g As Byte, h As Byte, i As Byte, j As Byte, k As Byte)': Value of type 'Integer' cannot be converted to 'System.UInt16'.
)
[
Voor 36% gewijzigd door
Scorpion1984 op 17-01-2005 21:10
]