Hybird3D

乔捷的技术博客

博客园 首页 新随笔 联系 订阅 管理

2011年1月12日 #

摘要: 把一个把字符串分解成命令行参数是很常见的操作,一直很纳闷为什么.net没有提供相关的功能,自己写一个又觉得麻烦。幸好windows提供了一个API来干这个事情。不过这个API调用起来颇为麻烦,google了一下才找到方法。代码贴上来,方便后来人使用。代码如下:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--using System;using System.Runtime.InteropServices;using System.Text;/// 阅读全文
posted @ 2011-01-12 13:05 qiaojie 阅读(686) 评论(3) 推荐(1) 编辑