|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 07/15/2009 at 03:28PM PDT, ID: 24574066 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: |
Private Structure typGUID ' 10h/16 bytes, no paddings
Public lData1 As Integer ' +00-03: DWORD
Public iData2 As Short ' +04-05: WORD
Public iData3 As Short ' +06-07: WORD
<VBFixedString(8), System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValTStr, SizeConst:=8)> Public abData4() As Byte
End Structure
.....
.....
GUID_CLASS_USBHUB = DEFINE_GUID(&HF18A0E88, &HC30C, &H11D0, &H88, &H15, &H0, &HA0, &HC9, &H6, &HBE, &HD8)
....
.....
Private Function DEFINE_GUID(ByVal lData1 As Integer, ByVal iData2 As Integer, ByVal iData3 As Short, ByVal bData4_1 As Byte, ByVal bData4_2 As Byte, ByVal bData4_3 As Byte, ByVal bData4_4 As Byte, ByVal bData4_5 As Byte, ByVal bData4_6 As Byte, ByVal bData4_7 As Byte, ByVal bData4_8 As Byte) As typGUID
Dim GUIDTMP As typGUID
'following 1 line added to resolve null pointer error
GUIDTMP.abData4 = New Byte() {0, 0, 0, 0, 0, 0, 0, 0}
With GUIDTMP
.lData1 = lData1
.iData2 = iData2 ' <----- geting overflow error here
.iData3 = iData3
.abData4(0) = bData4_1
.abData4(1) = bData4_2
.abData4(2) = bData4_3
.abData4(3) = bData4_4
.abData4(4) = bData4_5
.abData4(5) = bData4_6
.abData4(6) = bData4_7
.abData4(7) = bData4_8
End With
DEFINE_GUID = GUIDTMP
End Function
|
Advertisement