当前位置: 首页 > news >正文

第三方编辑网站怎么做上海网站排名seo公司哪家好

第三方编辑网站怎么做,上海网站排名seo公司哪家好,吉林刷关键词排名优化软件,重庆哪里做网站unity没有提供打开windows对话框的api#xff0c;在开发种也会遇到选择系统文件夹或选择系统文件的需求 /// /工具#xff1a;windows系统文件夹/文件选择窗口// /// using System; using System.Runtime.InteropServices; public class OpenFile {/// summary/// 选…unity没有提供打开windows对话框的api在开发种也会遇到选择系统文件夹或选择系统文件的需求 /// /工具windows系统文件夹/文件选择窗口// /// using System; using System.Runtime.InteropServices; public class OpenFile {/// summary/// 选择文件夹/// /summarypublic static string ChooseWinFolder(){//使用如下OpenDialogDir ofn new OpenDialogDir();ofn.pszDisplayName new string(new char[2000]); ; // 存放目录路径缓冲区 ofn.title 选择文件夹;// 标题 //ofn.ulFlags BIF_NEWDIALOGSTYLE | BIF_EDITBOX; // 新的样式,带编辑框 IntPtr pidlPtr WindowDll.SHBrowseForFolder(ofn);char[] charArray new char[2000];for (int i 0; i 2000; i)charArray[i] \0;WindowDll.SHGetPathFromIDList(pidlPtr, charArray);string fullDirPath new String(charArray);return fullDirPath.Substring(0, fullDirPath.IndexOf(\0));//fullDirPath fullDirPath.Substring(0, fullDirPath.IndexOf(\0));//Debug.Log(fullDirPath);//这个就是选择的目录路径}/// summary/// 选择文件/// /summarypublic static string ChooseWinFile(){OpenFileName OpenFileName new OpenFileName();OpenFileName.structSize Marshal.SizeOf(OpenFileName);OpenFileName.filter 应用程序(*.exe)\0*.exe;OpenFileName.file new string(new char[1024]);OpenFileName.maxFile OpenFileName.file.Length;OpenFileName.fileTitle new string(new char[64]);OpenFileName.maxFileTitle OpenFileName.fileTitle.Length;//OpenFileName.initialDir Application.streamingAssetsPath.Replace(/, \\);//默认路径OpenFileName.title 选择exe文件;OpenFileName.flags 0x00080000 | 0x00001000 | 0x00000800 | 0x00000008;if (WindowDll.GetOpenFileName(OpenFileName))return OpenFileName.file;elsereturn null;} }/// summary /// windows系统文件选择窗口 /// /summary [StructLayout(LayoutKind.Sequential, CharSet CharSet.Auto)] public struct OpenFileName {public int structSize;public IntPtr dlgOwner;public IntPtr instance;public String filter;public String customFilter;public int maxCustFilter;public int filterIndex;public String file;public int maxFile;public String fileTitle;public int maxFileTitle;public String initialDir;public String title;public int flags;public short fileOffset;public short fileExtension;public String defExt;public IntPtr custData;public IntPtr hook;public String templateName;public IntPtr reservedPtr;public int reservedInt;public int flagsEx; }/// summary /// windows系统文件夹选择窗口 /// /summary [StructLayout(LayoutKind.Sequential, CharSet CharSet.Auto)] public struct OpenDialogDir {public IntPtr hwndOwner;public IntPtr pidlRoot;public String pszDisplayName;public String title;public UInt32 ulFlags;public IntPtr lpfno;public IntPtr lParam;public int iImage; } public class WindowDll {//链接指定系统函数 打开文件对话框[DllImport(Comdlg32.dll, SetLastError true, ThrowOnUnmappableChar true, CharSet CharSet.Auto)]public static extern bool GetOpenFileName([In, Out] OpenFileName ofn);public static bool GetOFN([In, Out] OpenFileName ofn){return GetOpenFileName(ofn);}//链接指定系统函数 另存为对话框[DllImport(Comdlg32.dll, SetLastError true, ThrowOnUnmappableChar true, CharSet CharSet.Auto)]public static extern bool GetSaveFileName([In, Out] OpenFileName ofn);public static bool GetSFN([In, Out] OpenFileName ofn){return GetSaveFileName(ofn);}[DllImport(shell32.dll, SetLastError true, ThrowOnUnmappableChar true, CharSet CharSet.Auto)]public static extern IntPtr SHBrowseForFolder([In, Out] OpenDialogDir ofn);[DllImport(shell32.dll, SetLastError true, ThrowOnUnmappableChar true, CharSet CharSet.Auto)]public static extern bool SHGetPathFromIDList([In] IntPtr pidl, [In, Out] char[] fileName); }
http://www.pierceye.com/news/797214/

相关文章:

  • 做普通网站选择什么服务器企业vi设计公司哪家好
  • 嘉兴本地推广网站如何查看网站是否开启gzip
  • 网站菜单导航制作教程畅言 wordpress插件
  • 太原网站建设联系方式免费创建网站教程
  • 有服务器自己怎么做网站深圳财务小公司网站
  • 装修装饰网站建设东莞环保公司
  • 网站开发大公司需要资格证吗申请域名免费
  • 建设维护网站未签订合同网站上线之前做哪些工作
  • dede 网站图标网站安装php
  • 网站管理更新维护湖南网站建设策划
  • 桥头东莞网站建设网站建设的开发方式和费用
  • 无锡网站优化哪家好wordpress会员内容
  • 网站需求分析的重要手机网站建设的规划
  • 国内大一html网站简单设计用那种语言做网站比较好
  • 网站的flash陕西煤化建设集团铜川分公司网站
  • 网站还能赚钱吗logo公司商标设计
  • 数字校园建设专题网站wordpress游览器标签页
  • 企业网站分析报告途牛网站大数据建设
  • 免费创建论坛网站wordpress sql插件
  • 有移动端网站 怎么做app做网站的困难
  • 金种子酒业网站建设苏州专业的网站建设公司
  • 住房与住房建设部网站首页给网站做收录较好的软件
  • 课程网站的设计网站开发遇到的难题
  • 学网站建设要什么iis 二级网站 发布
  • 怎么仿做网站wordpress文章进不去
  • 网站建设费算办公费吗html5商城网站模板
  • 188旅游网站源码下载做个爬架网站如何做
  • 中国做的比较好的网站设计公司有哪些可以做翻译兼职的网站吗
  • 深圳做网站建设公司dw学生个人网页制作视频
  • html网页设计代码作业网站衡水武邑县建设局网站