原文发表于百度空间,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);

最新文章

  1. CSharpGL(3)使用CSharpGL.vsix插件
  2. 纯CSS3实现动态火车行驶特效
  3. 优秀工具推荐:两款很棒的 HTML5 游戏开发工具
  4. redis 库相关命令
  5. 用AXIS2发布WebService的方法
  6. 打印出所有的&quot;水仙花数&quot;,所谓&quot;水仙花数&quot;是指一个三位数,其各位数字立方和等于该数本身。例如:153是一个&quot;水仙花数&quot;,因为153=1的三次方+5的三次方+3的三次方。
  7. Linux高级字符设备驱动
  8. Linux内核学习笔记3——分段机制和分页机制
  9. 汉洛塔递归实现的思考(C语言)
  10. Json 工具介绍 fastjson gson jackson
  11. angular4升级angular5问题记录之this.location.back()
  12. 很全的atom问题解决方案
  13. SQLite 语法(http://www.w3cschool.cc/sqlite/sqlite-syntax.html)
  14. SoC嵌入式软件架构设计
  15. 第三周 IP通信基础回顾
  16. Vue2.0中的transition组件
  17. IO 模型 IO 多路复用
  18. bzoj3238 差异
  19. Xshell Plus
  20. FL studio钢琴卷工具简介

热门文章

  1. Java学习之路 第四篇 oop和class (面向对象和类)
  2. Ubuntu 12.04中文输入法的安装(zhuan)
  3. MySQL中使用INNER JOIN来实现Intersect并集操作
  4. The connection between feature spaces and smoothness is not obvious, and is one of the things we’ll discuss in the course.
  5. 剑指Offer:二叉树打印成多行【23】
  6. Java基础教程:面向对象编程[2]
  7. drawable animation基础
  8. [UVA 12633] Super Rooks on Chessboard FFT+计数
  9. blog真正的首页
  10. vsftpd虚拟用户【公司系统部分享】