免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1445 | 回复: 2
打印 上一主题 下一主题

急!!!一个关于CFileDialog类的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-06 12:16 |只看该作者 |倒序浏览
通过利用VC类库的CFILEDIALOG类选择打开数据文件RMC.TXT,解析出其中的时间和经纬度数据,在一个对话框中显示出时间和经纬度,每次只显示一个时间点的数据,通过点击对话框中的继续按钮处理显示下个点的数据。当处理到文件尾时给出提示。

RMC.TXT的一小部分内容如下(一共很多)   

$BDRMC,153130.885,3946.4648,N,11625.4385,E,44.5,0.2,0.0,213,1,3,W,*54
$BDRMC,153130.947,3946.4658,N,11625.4386,E,44.5,0.2,0.0,213,1,3,W,*59
$BDRMC,153131.010,3946.4669,N,11625.4387,E,44.5,0.2,0.0,213,1,3,W,*50
$BDRMC,153131.072,3946.4672,N,11625.4385,E,44.5,0.2,0.0,213,1,3,W,*5c
$BDRMC,153131.135,3946.4675,N,11625.4382,E,44.5,0.2,0.0,213,1,3,W,*5e
$BDRMC,153131.197,3946.4686,N,11625.4383,E,44.5,0.2,0.0,213,1,3,W,*5b
$BDRMC,153131.260,3946.4658,N,11625.4382,E,44.5,0.2,0.0,213,1,3,W,*52
$BDRMC,153131.322,3946.4669,N,11625.4382,E,44.5,0.2,0.0,213,1,3,W,*57
$BDRMC,153131.385,3946.4694,N,11625.4384,E,44.5,0.2,0.0,213,1,3,W,*5e
$BDRMC,153131.447,3946.4719,N,11625.4386,E,44.5,0.2,0.0,213,1,3,W,*51
$BDRMC,153131.510,3946.4730,N,11625.4383,E,44.5,0.2,0.0,213,1,3,W,*5c
$BDRMC,153131.572,3946.4733,N,11625.4385,E,44.5,0.2,0.0,213,1,3,W,*5d
$BDRMC,153131.635,3946.4721,N,11625.4385,E,44.5,0.2,0.0,213,1,3,W,*5e
$BDRMC,153131.697,3946.4716,N,11625.4384,E,44.5,0.2,0.0,213,1,3,W,*53
$BDRMC,153131.760,3946.4704,N,11625.4384,E,44.5,0.2,0.0,213,1,3,W,*59
$BDRMC,153131.822,3946.4707,N,11625.4382,E,44.5,0.2,0.0,213,1,3,W,*55
$BDRMC,153131.885,3946.4710,N,11625.4380,E,44.5,0.7,0.0,196,1,3,W,*57
$BDRMC,153131.947,3946.4720,N,11625.4385,E,44.5,0.7,0.0,196,1,3,W,*5e

$BDRMC,      153130.885,  3946.4648,N,  11625.4385,E,  44.5,0.2,0.0,213,1,3,W,  *54
开始符号为$    这个是时间  这个是纬度    经度          后面的不用管了         结尾符号*

请哪位好手帮忙给解决一下     由于我比较菜   最好把整个程序帮忙贴出来并讲解一下

非常感谢  谢谢       至少给个思路也行啊

论坛徽章:
0
2 [报告]
发表于 2006-07-06 12:22 |只看该作者
突然发现   今天是我在论坛注册2周年

哈哈

太巧了            

希望哪位好心人帮我解决一下问题       我也自己思考了    但是思路很混乱

等俺以后学成了也会为后来人提供帮助的         非常感谢

论坛徽章:
0
3 [报告]
发表于 2006-07-06 12:40 |只看该作者
这里不讨论Win的,建议版主关闭。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP