visual-studio-2008

How can I set the svn:needs-lock Subversion property through AnkhSVN plug-in with Visual Studio?

落爺英雄遲暮 提交于 2020-01-04 04:53:06
问题 I am using the AnkhSVN plug-in with Visual Studio 2008. I am using a free repository hosted on the web. I am not using a Subversion client for this repo, but managing everything with AnkhSVN plug-in (including adding solution file and project files to the new repository). I want to add the svn:needs-lock property to these files. I wonder if I can do this task using AnkhSVN, or if I need to get another Subversion client for this purpose. 回答1: in Visual Studio.. In Tools - Options - Source

How can I create new blank solution in vs 2008 programmatically?

我与影子孤独终老i 提交于 2020-01-04 04:39:17
问题 The design based approach is: New Project -> Other Project Type -> Visual Studio Solution -> Blank Solution I have to create a blank solution programmatically in C# and in this solution add new empty project and files. i found a lot of code on the web using DTE but they are adding my empty project in existing solution explorer so please give me some reference code. 回答1: You can create a new blank solution using DTE like this: string visualStudioProgID = "VisualStudio.Solution.9.0"; Type

Does the VS2008 C++ optimizer sometimes produce slower code?

北战南征 提交于 2020-01-04 04:34:32
问题 Following on from a previous question, I've been playing around with optimizer settings in my release build to see what benefits are to be gleaned from using compiler optimization. Up until now, I've been using /Ob1 (only inline where inline is explicitly given), and /Oi (Enable intrinsic functions). I tried changing this to include /Ot (favour fast code), /Oy (omit frame pointers) and /Ob2 (inline any suitable), and to my surprise a regression suite that was taking 2h58 minutes now took

How to decide what is the .Net target

て烟熏妆下的殇ゞ 提交于 2020-01-04 04:29:07
问题 We now use VS2003 (target to .Net 1.1) and we want to upgrade to VS2008, but I wonder what should be the new .Net target? Should I leave the target as .Net 1.1 (very old, not installed on all computers) or upgrade it? If I upgrade - Is 2.0 enouth? or maybe upgrade to the latest 3.5 (our clients use Windows XP, Vista and Windows 7) What happens if I target my app to 2.0, and the user has 3.5? should the user install .Net 2.0 on .Net 3.5? can it work side by side even when installing old

Visual Studio 2008 Web Project (Web Site) How to exclude a folder from the project

蓝咒 提交于 2020-01-04 04:11:52
问题 I have a web application or web site in VS 2008. One folder gets populated with over 50 000 files during a debugging session. The problem is that it takes forever for Visual Studio to load once these folders are populated with all the files. In a class library project I can right click and exclude from project. How is it possible to exclude a folder/directory from a web site project using Visual Studio 2008? 回答1: Not ideal, but you can set the folders to hidden in explorer, then they don't

jsoncpp on vc90?

房东的猫 提交于 2020-01-04 02:39:12
问题 anyone have jsoncpp working on vc90? they use a build system, Scons, which I have never heard of. I installed the latest Scons, found an undocumented scons.bat, launched a vc90 prompt in my jsoncpp dir, modified the SConstruct file to support a msvc90 target (i copied the boilerplate from the msvc80 platform which was already supported) ran scons.bat platform=msvc90 and got errors: scons: done reading SConscript files. scons: Building targets ... cl /Fobuildscons\msvc90\src\jsontestrunner

SQLConnection.Open(); throwing exception

ε祈祈猫儿з 提交于 2020-01-04 02:19:11
问题 Updating an old piece of software but in order to maintain backward compatibility I need to connect to a .mdb (access) database. I am using the following connection but keep getting an exception, why? I have validated the path, database existence etc. and that is all correct. string Server = "localhost"; string Database = drive + "\\btc2\\state\\states.mdb"; string Username = ""; string Password = "Lhotse"; string ConnectionString = "Data Source = " + Server + ";" + "Initial Catalog = " +

tooltip appearing behind the form/window! (C# / VS 2008)

微笑、不失礼 提交于 2020-01-04 02:03:12
问题 For some strange reason, my toopltip in the VS 2008 C# winforms application shows up behind the form! It's very frustrating and I can't figure out what I should do. Anyone face this before? Ideas? (PS - I'm doing a toolstip.show programmatically within the form) 回答1: There are a few things you might want to check: Make sure the tooltip knows what its parent window is. Make sure the window the tooltip belongs to is in the foreground (no, this isn't a requirement for displaying tooltips, it

Customizing Visual Studio Start Page

淺唱寂寞╮ 提交于 2020-01-04 01:52:15
问题 Is there a way to customize the VS 2008 Start Page? I want to display a WebSite (a Sharepoint Site) instead of the News Feeds, but I can't find an solution for this. Update: Regarding Kashes answer: "but it only takes in RSS feeds." <- sad but true. Tools->Options-> Environment -> Start Up Change the drop down to "Open Home Page". Tools->Options-> Environment -> Web Page Set your home page to whatever you want it to be. This is what i currently do - but then you loose the Start Page with the

Datetime is giving error while conversion

烂漫一生 提交于 2020-01-03 19:08:18
问题 I have string in this formate : 19/8/1988 note: String DateOfBirth=" 19/8/1988" When i use Datetime.parse(DateOfBirth) it gives me invalid dateformat error . I am also unable to do it in cdate(DateOfBirth) When i enters string in format mm/dd/yyyy i.e. 8/19/1988 then it does not gives me error. Please help me to convert string into date in mm/ddd/yyyy format. 回答1: Lowercase mm means minute instead of month, you need to use uppercase M (single character). But you also need to use ParseExact