visual-studio-2008

My visual studio templates dialog box is empty. i can't add any form or file

陌路散爱 提交于 2019-12-12 23:42:28
问题 In visual studio 2008, when you want to add a new form to a winForms application, you right lick your project or project subfolder, then point to Add, then click New Item and then select the type of item you want to add. (New windows From, New Class, TextFile, Xml File, ...,). Now in my projects, the Add New Item dialogue is completely empty, so i can't add any thing to my project. The Project still compiles without any errors. This just happened suddenly. Am not sure what i might have done

How to format a date column in a DataGrid from VB

[亡魂溺海] 提交于 2019-12-12 22:55:06
问题 I have a .aspx file with a datagrid in it: <asp:DataGrid ID="Gifts" AutoGenerateColumns="True" runat="server" AllowSorting="True"> </asp:DataGrid> The .aspx.vb file associated with it fills it in with a datagrid object. Protected WithEvents Gifts As System.Web.UI.WebControls.DataGrid Public GiftData As DataTable Gifts.DataSource = New DataView(GiftData) Gifts.DataBind() That all works fine. However I want to format one of the columns with a particular date format. Is there a way of doing that

Using reference libraries (dll) stored in a different folder from the main program?

心不动则不痛 提交于 2019-12-12 21:24:12
问题 (This might be a obvious question but I wasn't sure what to ask Bing/Google) In a VS2008 (C# Winforms) project there are numerous third party libraries that are referenced. The project uses 'Copy Local = True' so that the various DLL files end up in the same folder as the compiled application. To clean things up I would like to modify the program so that the libraries are all under a subfolder. For example: C:\MyProgram\ -> main program folder C:\MyProgram\Libraries -> DLL storage folder How

How do I create interface methods using .tlb types in VS C++?

北城余情 提交于 2019-12-12 21:17:35
问题 Background: The .TLB file contains interfaces written in language 'X'. I don't have .h, .idl, .tlh, or any other header files - just the .TLB file. Language 'X' does not export compatible .h, .idl, etc. I use the VS wizard to add an ATL simple object to my ATL project. I want to add a method to the interface of my simple ATL object that uses one of the .TLB defined types for a parameter. // Something like the following in the .idl file: interface ISomeInterface : IUnknown { HRESULT SomeMethod

Found conflicts between different versions of the same dependent assembly

 ̄綄美尐妖づ 提交于 2019-12-12 20:31:33
问题 i currently programming a program in visual studio using the .net 3.5 framework and the microsoft interops to interact with the office products. I have an issue with the app.config file. everytime i compile my solution, rebuilt or build it a warning occurs in the error list witch says Found conflicts between different versions of the same dependent assembly. when i double click this message visual studio tries to solve the problem, but with the next built the warning occurs again. i checked

Visual Studio 9.0 Beta Program files in C:\

瘦欲@ 提交于 2019-12-12 20:25:16
问题 I've several Visual Studio 9.0 Beta Program files in C:\ root directory: eula.1028.txt eula.1031.txt eula.1033.txt eula.1036.txt eula.1040.txt eula.1041.txt eula.1042.txt eula.2052.txt eula.3082.txt globdata.ini install.exe install.ini install.res.1028.dll install.res.1031.dll install.res.1033.dll install.res.1036.dll install.res.1040.dll install.res.1041.dll install.res.1042.dll install.res.2052.dll install.res.3082.dll vcredist.bmp VC_RED.MSI VC_RED.cab I've VS 2008 Professional and 2010

VS 2008 “Unable to connect to the ASP.NET Development Server”

瘦欲@ 提交于 2019-12-12 20:23:44
问题 I have VS 2005 and VS 2008 installed side by side. It is interesting that I can use development server under VS 2005. But when I tried in VS 2008, it gave me an error "Unable to connect to the ASP.NET Development Server". Any idea? Thanks! 回答1: Try checking the port configuration of VS 2008? If it's not set to automatic it may be using a port that is in use? If it is set to auto-assign then try specifying a port and picking one which you know to be free. 回答2: Just change the WebDev.WebServer

Add Non-GAC reference to project

时间秒杀一切 提交于 2019-12-12 19:39:06
问题 Every time I add a reference to a web project in visual studio 2008 that is in my GAC, it adds the reference as a GAC reference and doesn't copy the file to my bin directory. But for deployment purposes, I would like to add the reference as a non-GAC reference so it adds the dll to my bin directory. I've tried using the browse button to select the reference instead of picking from the list window, but that adds a GAC reference too. These references all have the .refresh file with them and

Visual Studio Missing “Open in blend” option

夙愿已清 提交于 2019-12-12 19:06:47
问题 Am I missing something or does that "Open in blend" option in Visual Studio 2008 not exist anymore? I am using VS 2008 SP1 + Expression Studio 3.0. I can do it the other way around, from blend to visual studio, but not visual studio to blend. Cheers 回答1: For me, the "Open in Expression Blend" is only available in Silverlight projects, for WPF projects the option does not exist. 回答2: I had the same problem, I had the trial version of blend, uninstalled and then installed Expression Studio

How do I make sure that when a .h file is modified, the .cc files including it are compiled automatically in a Release build using Visual Studio 2008?

China☆狼群 提交于 2019-12-12 18:52:03
问题 Say I have a.h, a.cc, and b.cc in my Visual Studio 2008 project. Both a.cc and b.cc include a.h. When I modify a.h, and build the Project, a.cc and b.cc are compiled in the Debug builds. However, that is not the case in Release builds. In the Release builds, a.cc and b.cc are compiled only if they have been modified. It seems that the compiler does not keep track of the dependencies of .cc files in the Release builds. Is there some compiler flag that will fix this problem? If not, are there