亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? appfunctions.bas

?? evc與mapx mobile 在PDA上開發的GPS接收器。你的電腦上最好有evc++4.0和ppc2003模擬器
?? BAS
字號:
Attribute VB_Name = "appFunctions"
Option Explicit

Function CreateTempLayer(ByRef map As MapXLib.map, ByVal strLayerName As String) As MapXLib.Layer
'****************************************************************************
'* This function creates a new temp layer with one column and adds it with the supplied name into the supplied map object
'****************************************************************************

Dim lyrInfo As MapXLib.LayerInfo
Dim flds As MapXLib.Fields

'we have to create a fields object to describe the structure of the temp table
Set flds = CreateObject(cFIELDSobject)
'we will make 1 column, string type, 15 characters wide
flds.AddStringField "ID", 15

' a layerinfo object will allow us to add or create a layer to the map
Set lyrInfo = CreateObject(cLAYERINFOobject)
'it's going to be a temp layer
lyrInfo.Type = miLayerInfoTypeTemp
'add the fields collection that we just created
lyrInfo.AddParameter "Fields", flds
' set the layer's name
lyrInfo.AddParameter "Name", strLayerName
'add the layer to the map
CreateTempLayer = map.Layers.Add(lyrInfo)

Set flds = Nothing
Set lyrInfo = Nothing

End Function

Function OpenTextFile(fileObject As File, strFileName As String, ByRef bFileopen As Boolean) As Integer
    fileObject.Open strFileName, fsModeInput
    bFileopen = True
End Function

Function CloseTextFile(fileObject As File, ByRef bFileopen As Boolean) As Boolean
    fileObject.Close
    bFileopen = False
End Function
Sub ShowAbout()
Dim sTemp As String
sTemp = "This application demonstrates how to display moving points in MapXMobile." & vbCrLf
sTemp = sTemp & "It is a very basic app that parses a NMEA-183 string and plots the point on the map." & vbCrLf
sTemp = sTemp & "Please use it to learn from and to enhance. " & vbCrLf
MsgBox sTemp, vbInformation, "About GPS sample..."

End Sub


Function FindComma(ByVal passstring As String, ByVal Which As Integer) As Integer
'****************************************************************************
'* This function returns the position of a specific comma within a string

Dim cnt, found As Integer
Dim tmpstr As String

tmpstr = passstring

'Loop through the string
For cnt = 1 To Which
    If InStr(1, tmpstr, ",") > 0 Then
        'There is still another comma in the string
        tmpstr = Right(tmpstr, Len(tmpstr) - InStr(1, tmpstr, ",")) 'Shorten the string
        found = InStr(1, passstring, tmpstr) - 1 'here is the position
    Else
        'There are no more commas
        FindComma = 0           'not found
        Exit Function
    End If
Next

FindComma = found
End Function



Public Sub GetDirectionsFromAngle(ByVal dblAngle As Double, ByRef sDirection As String)
' **************************************************
' *  this sub returns a description of an angle
' *  with 0 degrees being due east
' **************************************************

If dblAngle >= 0 And dblAngle <= 22.5 Then
    sDirection = "East"
    Exit Sub
End If

If dblAngle > 22.5 And dblAngle <= 67.5 Then
    sDirection = "Northeast"
    Exit Sub
End If

If dblAngle > 67.5 And dblAngle <= 112.5 Then
    sDirection = "North"
    Exit Sub
End If

If dblAngle > 112.5 And dblAngle <= 157.5 Then
    sDirection = "Northwest"
    Exit Sub
End If

If dblAngle > 157.5 And dblAngle <= 202.5 Then
    sDirection = "West"
    Exit Sub
End If

If dblAngle >= 202.5 And dblAngle <= 247.5 Then
    sDirection = "Southwest"
    Exit Sub
End If

If dblAngle > 247.5 And dblAngle <= 292.5 Then
    sDirection = "South"
    Exit Sub
End If

If dblAngle > 292.5 And dblAngle <= 337.5 Then
    sDirection = "Southeast"
    Exit Sub
End If

If dblAngle > 337.5 And dblAngle <= 360 Then
    sDirection = "East"
    Exit Sub
End If

  End Sub

Public Function ComputeAngle(ByVal x1 As Double, ByVal y1 As Double, _
                    ByVal x2 As Double, ByVal y2 As Double) As Double
'****************************************************************************
'*
'* Input
'*  X1,Y1 -- Starting position
'*  X2,Y2 -- Ending position
'*
'***********************************************************************cs.r1
Dim fAngle As Double
Dim fCompFactor As Double
Dim fTemp As Double
Dim fTemp2 As Double

If x1 = x2 And y1 = y2 Then
    'start point = end point... return null and exit
    ComputeAngle = 0
    Exit Function
End If


'Compute the angle between the two points relative to the Eastern direction.
Const DEG_2_RAD = 0.01745329252
Const RAD_2_DEG = 57.29577951
fCompFactor = Cos(y2 * DEG_2_RAD / 2)
fTemp = ((x2 - x1) * fCompFactor)

'Arcsin(X) = Atn(X / Sqr(-X * X + 1))

fTemp2 = (y2 - y1) / Sqr((fTemp * fTemp) + ((y2 - y1) * (y2 - y1)))

If Abs(fTemp2) <> 1 Then
    fAngle = Atn(fTemp2 / Sqr(-fTemp2 * fTemp2 + 1)) * RAD_2_DEG
Else  'Would have gotten a division by zero error in the above line if there was no latitude change
        'Else set the direction to due west (180)
    fAngle = 180
End If
If (x2 - x1) <= 0 Then fAngle = (180 - fAngle)
If (y2 - y1 <= 0) And (x2 - x1 >= 0) Then fAngle = (360 + fAngle)
If fAngle = 360 Then fAngle = 0


ComputeAngle = fAngle



End Function

Public Function ParseNMEAMessage( _
                    ByVal Message As String, _
                    ByRef dblXCoord As Double, ByRef dblYCoord As Double, _
                    ByRef sDate As String) As Boolean

'******************Search1*******************************************
'* This routine parses the NMEA message for a MapX X & Y coord
'* The NMEA format that is being used contains degrees and decimal minutes
'* message="$GPRMC,      ,A,  4240.97,N, 07342.01 ,W ,06.8  ,040.2, ,13.,W*43"
'           $GPRMC,222344,A, 4719.482,N, 11750.552,W ,0.0 , ,191101,0.0,E,*79
'
'If the NMEA message that you are receiving is different from the one used in this
'sample, simply make the changes in this function, and the rest of the application will work without any alteration.

Dim strDeg As String
Dim strMin As String
Dim iComma1 As Integer
Dim iComma2 As Integer
Dim iFollowingDecimalPoint As Integer
Dim strHemisphere As String
Dim iMult As Integer
 
'The y coordinate is stored between the third and fourth commas
iComma1 = FindComma(Message, 3)      'get the position of the third comma
iComma2 = FindComma(Message, 4)      'get the position of the fourth comma
iFollowingDecimalPoint = InStr(iComma1, Message, ".") 'Find the next decimal point
strHemisphere = Mid(Message, iComma2 + 1, 1)  'get the hemisphere
 
If strHemisphere = "N" Then
    'the Y value is positive
    iMult = 1
Else
    'the y value is Neg
    iMult = -1
End If

'The decimal minutes will be stored starting from 2 digits before the decimal
'point and continue to the next comma
strMin = Mid(Message, iFollowingDecimalPoint - 2, iComma2 - iFollowingDecimalPoint + 2)

'The first few characters after the 3rd comma are the Degrees
strDeg = Mid(Message, iComma1 + 1, iFollowingDecimalPoint - iComma1 - 3)

'Calculate the y component in decimal Degrees
dblYCoord = (CDbl(strDeg) + (CDbl(strMin) / 60) * iMult)

'************************************************************************
'The x coordinate is stored between the fifth and sixth commas
iComma1 = FindComma(Message, 5)      'get the position of the fifth comma
iComma2 = FindComma(Message, 6)      'get the position of the sixth comma
iFollowingDecimalPoint = InStr(iComma1, Message, ".") 'Find the next decimal point

strHemisphere = Mid(Message, iComma2 + 1, 1)  'get the hemisphere

If strHemisphere = "W" Then
    'the Y value is Neg
    iMult = -1
Else
    'the y value is Pos
    iMult = 1
End If

'The decimal minutes will be stored starting from 2 digits before the decimal
'point and continue to the next comma
strMin = Mid(Message, iFollowingDecimalPoint - 2, iComma2 - iFollowingDecimalPoint + 2)

'The first few characters after the 5th comma are the x component's Degrees
strDeg = Mid(Message, iComma1 + 1, iFollowingDecimalPoint - iComma1 - 3)

'Calculate the x component in decimal Degrees
dblXCoord = ((CDbl(strDeg) + (CDbl(strMin) / 60)) * iMult)
 
'In this data, the date was set between the 10th and 11th comma.  This may be different depending on your equipment
iComma1 = FindComma(Message, 10)      'get the position of the ninth comma
iComma2 = FindComma(Message, 11)      'get the position of the tenth comma

Dim sTemp As String
sTemp = Mid(Message, iComma1 + 1, iComma2 - iComma1 - 1) 'get the elevation
 If IsNull(sTemp) Then sTemp = 0
 sDate = sTemp
ParseNMEAMessage = True
 
End Function

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区在线视频| 欧美午夜不卡在线观看免费| 福利电影一区二区| 欧美日韩大陆一区二区| 国产午夜亚洲精品理论片色戒| 中文字幕视频一区二区三区久| 奇米综合一区二区三区精品视频| 白白色亚洲国产精品| 日韩一级二级三级| 亚洲男人都懂的| 国产iv一区二区三区| 777奇米成人网| 亚洲精品免费在线| 国产成人免费视频网站| 在线成人午夜影院| 尤物在线观看一区| 国产99一区视频免费| 欧美一级片在线| 亚洲成人激情av| 日本二三区不卡| 国产精品入口麻豆原神| 国产精品白丝jk黑袜喷水| 日韩一区二区三区在线观看| 一区二区三区四区视频精品免费| 国产99久久久久久免费看农村| 日韩欧美在线123| 全国精品久久少妇| 欧美日韩大陆一区二区| 亚洲成人三级小说| 欧美日韩一区在线| 亚洲国产视频一区二区| 欧美乱妇一区二区三区不卡视频| 亚洲免费观看高清| 日本韩国欧美三级| 亚洲国产成人porn| 欧美日韩视频第一区| 亚洲成人午夜影院| 欧美一区二区三区视频免费播放| 日产精品久久久久久久性色| 欧美精品v日韩精品v韩国精品v| 亚洲成人精品一区二区| 91精品国产全国免费观看| 日韩1区2区3区| 久久亚洲精精品中文字幕早川悠里| 激情五月婷婷综合| 国产亚洲精品bt天堂精选| 国产东北露脸精品视频| 中文字幕一区三区| 91精品办公室少妇高潮对白| 亚洲一区二区综合| 91.麻豆视频| 激情图片小说一区| 中文av一区特黄| 日本伦理一区二区| 蜜桃在线一区二区三区| 26uuu国产一区二区三区| 不卡一区二区在线| 亚洲午夜精品在线| 日韩一区二区在线观看视频播放| 国产伦精品一区二区三区免费迷 | 色视频成人在线观看免| 一个色综合av| 欧美精品一区二区三区一线天视频| 极品美女销魂一区二区三区免费| 国产亚洲综合在线| 欧美午夜电影网| 狠狠色丁香婷综合久久| 亚洲日本在线a| 91精品国产综合久久久久| 国产乱子轮精品视频| 一区二区三区日韩在线观看| 欧美大尺度电影在线| av成人老司机| 免费看欧美美女黄的网站| 国产精品久久久久久户外露出| 欧洲精品在线观看| 国产在线播放一区| 亚洲一区免费观看| 国产精品女同一区二区三区| 欧美日韩视频在线观看一区二区三区 | 欧美高清在线一区二区| 欧美在线观看视频一区二区三区| 蜜桃av一区二区在线观看| 国产精品无圣光一区二区| 欧美日韩国产首页| 成人美女在线视频| 日本不卡一二三| 一区二区三区美女| 国产精品天天看| 久久久99精品久久| 欧美一区二区久久久| 91成人免费网站| 粉嫩欧美一区二区三区高清影视| 青青草97国产精品免费观看无弹窗版| 中文字幕av一区二区三区免费看| 日韩欧美国产麻豆| 51精品国自产在线| 色播五月激情综合网| 99国产精品久久久| 波多野结衣在线一区| 久久av资源站| 六月丁香综合在线视频| 亚洲成a人片综合在线| 亚洲精品成人悠悠色影视| 国产农村妇女精品| www一区二区| 久久欧美一区二区| 精品欧美黑人一区二区三区| 69堂国产成人免费视频| 欧美三级日韩三级| 欧美色涩在线第一页| 色婷婷综合久久久| 92精品国产成人观看免费 | 精品亚洲成a人| 日韩中文字幕区一区有砖一区 | 亚洲电影一级黄| 一区二区三区在线看| 亚洲精品欧美二区三区中文字幕| 国产精品国产自产拍在线| 国产精品久久久久影视| 国产精品网站一区| 国产精品日韩成人| 亚洲免费高清视频在线| 亚洲国产精品欧美一二99| 亚洲伊人色欲综合网| 亚洲午夜日本在线观看| 日韩国产一二三区| 久久精品国产99| 国产一区二区网址| 不卡一卡二卡三乱码免费网站| 成人av在线影院| 色一情一乱一乱一91av| 欧美无砖砖区免费| 欧美v日韩v国产v| 久久综合资源网| 国产精品狼人久久影院观看方式| 中文字幕亚洲一区二区va在线| 一区二区高清视频在线观看| 亚洲妇熟xx妇色黄| 精品一二三四区| www.亚洲人| 欧美亚洲国产怡红院影院| 欧美一区三区四区| 日本一区二区三区视频视频| 亚洲欧洲精品一区二区三区不卡| 一区二区三区日韩| 久久99精品久久久| 成人app网站| 欧美日韩在线精品一区二区三区激情| 欧美成人乱码一区二区三区| 中文字幕av一区二区三区免费看| 亚洲激情网站免费观看| 久久精品国产免费看久久精品| 成人激情小说乱人伦| 欧美蜜桃一区二区三区| 精品久久免费看| 一区二区三区日韩在线观看| 精品一区二区三区av| 99视频精品全部免费在线| 777奇米成人网| 最近日韩中文字幕| 蜜臀av一区二区在线观看| 波多野结衣一区二区三区 | 欧美色手机在线观看| 国产亚洲午夜高清国产拍精品| 亚洲精品va在线观看| 国产在线观看免费一区| 欧美亚洲国产一区二区三区| 国产日韩欧美a| 日韩精品电影一区亚洲| 91香蕉视频黄| 久久久久亚洲综合| 日本不卡一区二区三区| 91理论电影在线观看| 久久精品一区二区三区av| 午夜精品爽啪视频| 91在线视频免费91| 国产欧美日韩在线| 久久成人免费日本黄色| 欧美日韩亚洲另类| 国产精品福利av| 风流少妇一区二区| 久久一二三国产| 麻豆高清免费国产一区| 91国产精品成人| 亚洲视频一区二区在线观看| 国产成人精品在线看| 日韩欧美www| 日韩av网站免费在线| 欧美电影在哪看比较好| 亚洲自拍另类综合| 色综合一区二区三区| 国产精品久久精品日日| 成人免费视频国产在线观看| 精品捆绑美女sm三区| 久久电影网电视剧免费观看| 日韩一区二区高清| 美国毛片一区二区三区| 制服丝袜亚洲播放| 免费看日韩a级影片|