Advertisement
Advertisement
| 10.05.2008 at 09:24PM PDT, ID: 23789491 | Points: 200 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: |
Dim strFile As String, strXML As String
strXML = "<ParataRds_Msg>"
strXML = strXML & "<Msg_Header>"
strXML = strXML & "<Version>6.6</Version>"
strXML = strXML & "<Msg_ID>foo</Msg_ID>"
strXML = strXML & "<MsgType>REQUEST</MsgType>"
strXML = strXML & "<RequestType>GetAllNdcStatus</RequestType>"
strXML = strXML & "</Msg_Header>"
strXML = strXML & "</ParataRds_Msg>"
strFile = strXML
'strFile = "C:\GetAllNDC.txt"
Dim Buffer() As Byte, P As Long, strData As String
iFileNum = FreeFile
Open strFile For Binary Access Read Lock Write As iFileNum
ReDim Buffer(lngMIN(LOF(iFileNum), PacketSize) - 1)
Get iFileNum, , Buffer ' read data
SckSendFile.SendData CStr(LOF(iFileNum)) & ","
P = InStrRev(strFile, "\")
SckSendFile.SendData Mid(iFileNum, P + 1) & ":"
SckSendFile.SendData Buffer
|