转到正文

存档

标签: Visual Studio

为你的Visual Studio 2010 使用无限期VC助手的方法

1. 从官网下载Visual Assist原始安装文件 http://www.wholetomato.com/downloads/getBuild.asp?VA_X_Setup1822.vsix

2. 下载破解文件:http://d.download.csdn.net/down/2285960/PiggyXP

3. 安装VA原始安装文件

4. 将破解文件覆盖掉VA安装目录下的同名文件

5. 将破解文件覆盖掉C:\Users\Win7的登录帐户名\AppData\Local \Microsoft\VisualStudio\10.0\Extensions\Whole Tomato Software\Visual Assist X\10.6.1822.0 文件下的同名文件

成功!(关键是在第五步)

Good Luck!

继续阅读

I have written lots of C++ codes. However, I always always get Memory Leak Warning when my project grows into ten thousand codes. It's a nightmare to have such problems for C++ programmers. And I'm always thinking of C# at this time, because C# has garbage collector for us.

Nevertheless, if you are developing C++ with Visual Sutdio, you can use some tricks which Microsoft VS studio tools team provide.

By using their tricks, you can know where the memory leaks happen ( in which file and in which line of the file ).  What you have to do is just include some definitions in your .cpp files which new/delete/malloc/free operations actions.

继续阅读

When you use Visual Studio on Windows 7 or Vista, you encounter "access denied. Please make sure you're running the application as administrator" error if you want to do some administrator's tasks.

There are two solutions:

  • turn off the UAC of your Operating System
  • run visual studio as administrator.
    There is good trick for runing VS always as Administrator[1].

Reference:

[1]. http://weblogs.asp.net/soever/archive/2009/10/07/visual-studio-alway-run-as-administrator.aspx

You may be very familiar with writing DirectX10 codes at Visual Studio 2005 or 2008. It's very obvious that you should add a .fx rule file (download) for your project. By adding this file, you can compile .fx file independently.

When you run visual studio 2010, it's different from 2008/2005. There is not rule file in VS2010 and it has .target, .props to take place of rule file.

I'll introduce the method how to add .fx file 's "Rule" file in Visual Studio 2010:

  1. first, we should copy three files (.props, .targets, .xml) to your project. (download)
  2. add .target files for your project ( in build Customizations)
    继续阅读

There are some changes between Visual Studio 2008 and 2010, if you want to upgrade your program to an advanced one ( transfer 2008 to 2010), you can follow some steps:

  1. upgrade VS2010 wizard instructions.
  2. because vs2010 remove the global VC++ directories, visaul studio team use Property sheet to take place of it. So you can create some property sheets and set the directories ( for example: DirectX folders) for them, and take your project to reference them ( m projects shared n property sheets, m>=n).
  3. set up project dependency  for the solution, and then visual studio will do project order automatically for the solution
  4. build the project or solution, and then vs will build the projects in order.

Good luck!

Reference:

[1]. http://www.liaoqiqi.com/blog/2010/05/04/visual-studio-2010-vc-directories/

Good article for new feature "VC++ Directories" of Visual Studio 2010!

Reference:

[1]. http://blogs.msdn.com/vsproject/archive/2009/07/07/vc-directories.aspx
[2]. http://blogs.msdn.com/vsproject/archive/2009/06/23/inherited-properties-and-property-sheets.aspx

A document split into 4 sections

There are two ways to split the current window:

  • From the Menu Bar, go to Window - Split.
  • Using the mouse, grab the splitter control found directly above the document scrollbar

Document Splitter Control Location

But the split command only works horizontally.  If you need to split vertically (see Program.cs:2 in the above picture), try using the Window.NewWindow command found on the Menu Bar at Window - New Window. Then, as in the picture above, go to Window - New Vertical Tab Group.

Reference:

[1]. http://blogs.msdn.com/saraford/archive/2007/07/31/did-you-know-how-to-split-windows-and-create-new-windows.aspx

Error description:

I write a ASP.NET program, I use HttpContext.Current.User.Identity.Name to store users which visit our site. This program runs well when I debug in Visual studio and wee get display the login user successfully. However, the user name cannot be displayed when I run it in IIS 7.0. I'm very confused, why the program runs well at VS but fail at IIS?

Solution:

It's very obviouly that your IIS cannot get the username for the login one. It's because that you enable the anonymouos authentication in your IIS.  You should follow some steps as follows:

Firstly, open you IIS confiuation, Open "Authentication" in "IIS" folders. Just like:

  继续阅读

www.liaoqiqi.com网站PR查询 博客简洁版 博客Google_Site_Map 博客Baidu_Site_Map ?