VC.NET获取程序运行的目录.rar

时间:2022-07-30 04:32:57
【文件属性】:
文件名称:VC.NET获取程序运行的目录.rar
文件大小:12KB
文件格式:RAR
更新时间:2022-07-30 04:32:57
VC 源码-系统相关 VC.NET获取程序运行的目录路径,得到程序实例当前运行的的路径,枚举出自己在哪里,获取后显示在TextBox中。   获取当前程序运行路径   private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {    String^ MyPath = System::IO::Path::GetDirectoryName(System::Reflection::Assembly::GetExecutingAssembly()->GetModules()[0]->FullyQualifiedName);    this->textBox1->Text = MyPath;   }   };
【文件预览】:
srcfans.com
----获取当前程序运行文件夹()
--------Example()
--------Example.suo(9KB)
--------Example.sln(886B)

网友评论