【旧文章搬运】VC插件中如何获取当前工程的工作目录
2024-09-04 11:57:23
原文发表于百度空间,2014-09-24
==========================================================================
好难找的资料,记录下。。。。
// Get active project
CComPtr<IDispatch> pDisp; CComQIPtr<IGenericProject, &IID_IGenericProject> pPrj;
m_pApplication->get_ActiveProject(&pDisp); // m_pApplication是IApplication接口
if(pDisp == NULL)
{
MessageBox(NULL, "Please open project at first!", "Along Addin", MB_OK);
return S_FALSE;
}
pPrj = pDisp;
pPrj->QueryInterface(IID_IGenericProject, (void**) &m_pProject); // Get project path
CComBSTR bstrPrjPath;
CString strPrjPath;
m_pProject->get_FullName(&bstrPrjPath);
最新文章
- CSharpGL(3)使用CSharpGL.vsix插件
- 纯CSS3实现动态火车行驶特效
- 优秀工具推荐:两款很棒的 HTML5 游戏开发工具
- redis 库相关命令
- 用AXIS2发布WebService的方法
- 打印出所有的";水仙花数";,所谓";水仙花数";是指一个三位数,其各位数字立方和等于该数本身。例如:153是一个";水仙花数";,因为153=1的三次方+5的三次方+3的三次方。
- Linux高级字符设备驱动
- Linux内核学习笔记3——分段机制和分页机制
- 汉洛塔递归实现的思考(C语言)
- Json 工具介绍 fastjson gson jackson
- angular4升级angular5问题记录之this.location.back()
- 很全的atom问题解决方案
- SQLite 语法(http://www.w3cschool.cc/sqlite/sqlite-syntax.html)
- SoC嵌入式软件架构设计
- 第三周 IP通信基础回顾
- Vue2.0中的transition组件
- IO 模型 IO 多路复用
- bzoj3238 差异
- Xshell Plus
- FL studio钢琴卷工具简介
热门文章
- Java学习之路 第四篇 oop和class (面向对象和类)
- Ubuntu 12.04中文输入法的安装(zhuan)
- MySQL中使用INNER JOIN来实现Intersect并集操作
- The connection between feature spaces and smoothness is not obvious, and is one of the things we’ll discuss in the course.
- 剑指Offer:二叉树打印成多行【23】
- Java基础教程:面向对象编程[2]
- drawable animation基础
- [UVA 12633] Super Rooks on Chessboard FFT+计数
- blog真正的首页
- vsftpd虚拟用户【公司系统部分享】