随笔分类 -  玩转VS

摘要:In debugging, it's always annoying to step into CString like classes as in most cases we don't need to get into there. There does exist solution to NoStepInto functions/classes you don't intend to step into:1. Ahead of VS20101) Look into this article to add something into Registry: How t 阅读全文
posted @ 2011-07-01 16:30 能巴 阅读(266) 评论(0) 推荐(0)
摘要:Some times we could want to print the debug messages to a window (console or windows)or a file, we debug our programms with these information. There's a better way to debug programm, print the message to output window if you use VS, and you can double click the message to locate the source codes 阅读全文
posted @ 2011-04-21 17:27 能巴 阅读(471) 评论(0) 推荐(0)
摘要:How does Visual Studio's source control integration work with Perforce?Files used by source control integration in VSS and VS .NET 阅读全文
posted @ 2010-09-07 18:06 能巴 阅读(195) 评论(0) 推荐(0)
摘要:Visit Zain's MSDN blog to know the best summary of VS tips and tricks I have found on the internet until now! His bookmarks on that blog will ease you find your intended tips. And Sara Ford's Blog als... 阅读全文
posted @ 2010-08-23 22:47 能巴 阅读(163) 评论(0) 推荐(0)
摘要:1. Tool -> Option -> source control. Specify the source control App. If you are using Perforce, then choose Perforce SCM.2. File -> source control: add solution / projects into source control... 阅读全文
posted @ 2010-08-20 15:59 能巴 阅读(213) 评论(0) 推荐(0)
摘要:As known, the Find combox on the toolbar in VS, can serve as a mini command window to support typing commands in. A key tip in using it is:Type below:> of thefileNameYouWantToOpenall files that is ... 阅读全文
posted @ 2010-08-04 16:39 能巴 阅读(203) 评论(0) 推荐(0)
摘要:Just find and use it today!It's easy and works well.For example:1. Start debugging your first app in VS..2. When it calls up the second app to run, switch to the VS with its solution opened and select... 阅读全文
posted @ 2010-07-21 10:32 能巴 阅读(152) 评论(0) 推荐(0)
摘要:As we know, for .Net projects, it's obvious and clear to use "Add Reference.." to control project reference / dependency relationship. Do you know about it for C++? (below is extracted from VC++ Team ... 阅读全文
posted @ 2010-05-14 15:38 能巴 阅读(493) 评论(0) 推荐(1)
摘要:[From MSDN Blog:http://blogs.msdn.com/shawnfa/archive/2004/02/27/81338.aspx] It's interesting to note all the power of the find combo box in the Visual Studio command bar (shortcut is: ctrl + /). It'... 阅读全文
posted @ 2010-05-01 22:37 能巴 阅读(238) 评论(0) 推荐(0)
摘要:Dependency in solutionWhen specifying a dependency relationship in solution under aproject, automatically XX.lib will be added into project setting,although it will not be stored into project file. Wi... 阅读全文
posted @ 2010-03-27 20:35 能巴 阅读(174) 评论(0) 推荐(0)
摘要:创建键盘快捷方式速查表。 大部分开发人员都不了解这一点,但实际上,Visual Studio 默认提供了 450 多个键盘快捷方式。不过,对于如何找到 Visual Studio 内部的所有键盘快捷方式还没有简便的方法。您可以编写一个简单的宏,对于所有默认键盘快捷方式进行遍历,找到它们所对应的操作。以下内容(列表 1)列出了这个宏的代码。 Public Module Module1 Publ... 阅读全文
posted @ 2010-02-09 17:27 能巴 阅读(334) 评论(0) 推荐(0)
摘要:[Full article: http://msdn.microsoft.com/en-us/library/aa290342%28VS.71%29.aspx]VS automation model gives us the chance to interact with VS IDE's everything including solution explorer, toolbar, docum... 阅读全文
posted @ 2009-11-23 20:20 能巴 阅读(338) 评论(0) 推荐(0)
摘要:[From: http://weblogs.asp.net/scottgu/archive/2009/10/19/vs-2010-and-net-4-0-beta-2.aspx] VS 2010 and .NET 4.0 Beta 2 I’m happy to announce that today we shipped the Beta 2 release of Visual Stu... 阅读全文
posted @ 2009-10-25 14:26 能巴 阅读(256) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Win32;using System.Security.Permissions;namespace RemoveTransReg{ class Program { static void Main(str... 阅读全文
posted @ 2009-09-23 22:24 能巴 阅读(529) 评论(0) 推荐(0)
摘要:In order to make VS can edit readonly file, you need to make sure below two options in VS->Tool->Options: 阅读全文
posted @ 2009-09-23 14:39 能巴 阅读(154) 评论(0) 推荐(0)
摘要:1. tlbimp.exe ---- The Type Library Importer converts the type definitions found within a COM type library into equivalent definitions in a common language runtime assembly. The output of Tlbimp.exe i... 阅读全文
posted @ 2009-09-08 10:53 能巴 阅读(227) 评论(0) 推荐(0)
摘要:The Microsoft Windows SDK is a set of tools, code samples, documentation, compilers, headers, and libraries that developers can use to create applications that run on Microsoft Windows operating syste... 阅读全文
posted @ 2009-09-01 14:12 能巴 阅读(261) 评论(0) 推荐(0)
摘要:FROM MSDN:Using Multiple Resource Files in the Same ProjectVisual C++ and the Resource Compiler support multiple .RC files in the same project through #include's of one .RC file within another.It does... 阅读全文
posted @ 2009-08-17 16:44 能巴 阅读(231) 评论(0) 推荐(0)
摘要:创建纯资源 DLL 纯资源 DLL 是仅包含资源(如图标、位图、字符串和对话框)的 DLL。使用纯资源 DLL 是在多个程序之间共享同一组资源的好方法。提供其资源被针对多种语言进行本地化的应用程序也是一种好方法(请参见 MFC 应用程序中的本地化资源:附属 DLL)。 若要创建纯资源 DLL,请创建一个新的 Win32 DLL(非 MFC)项目,并将资源添加到此项目。 在“新建项目&... 阅读全文
posted @ 2009-07-05 12:40 能巴 阅读(576) 评论(0) 推荐(0)
摘要:1. Inline function expansion,内联函数扩展的三种优化(使用内联可以节省函数调用的开销,加快程序速度):Disable不使用内联;Only __inline,仅函数定义前有inline或__inline标记使用内联;Any Suitable,除了inline或__inline标记的函数外,编译器“觉得”应该使用内联的函数,都使用内联。 2. Enables minimal... 阅读全文
posted @ 2009-04-16 23:17 能巴 阅读(234) 评论(0) 推荐(0)