OakRaven's Q&A profile
Visual C++ why can't I use a vector<T> in in my C++/CLR DLL?
#include <vector> using namespace System; public ref class SHELLS { public : SHELLS( void ); long shKey; int * faces; HPoint* pts; int faceCt; int ptCt; ShellTypes type; String^ path; }; ==> typedef vector<SHELLS> HShells; <== I get this compile error: error C2143: syntax error : missing ';' before '<' SHELLS is a CLR type, hence wrapping it in an STL ...Show All
Visual Studio Help system reconfigures when USB drives are added/removed
Whenever I use Visual Studio 2005 with an external USB drive added or removed, such as when I undock the laptop, or forget to turn on one of the drives, Visual Studio spends numerous minutes re-evaluating my hardware setup when it is openned. I believe that help is installed locally, and it may even by on one of the USB drives (because of space problems on the main drive). Is there some way to stop the IDE from wasting my time ...Show All
Visual Studio Team System MSF4ASD vs. RUP (More MSF v4.0 information)
I want to make a comparison study between Rational Unified Process and Microsoft Solutions Framework for Agile Software Development (MSF4ASD). At the moment, only general information about MSF4ASD is on the web public available. Can you please give me an indication when more information (whitepapers, books) about MSF v4.0 will be available Or can you tell me who to contact to get the information Kind regards, ...Show All
.NET Development Using VS2005 typed DataSet and typed DataAdapter in Transactions
The following code tries to use a VS2005 typed DataSet and typed DataAdapter to retrieve some data inside the scope of a transaction. Ofcourse it does not work, since DataAdapter (and it's included SqlCommand objects) is not aware of the transaction. Provided that using a distrubuted transaction if no option to me, is the following possible somehow using (SqlConnection connection = new SqlConnection("<connection string>")) ...Show All
Visual C++ Controlling project properties - templates?
How is it possible with VS 2005 to control the defaults for project builds Project templates For (trivial) example, suppose I want to set "Floating point exceptions" to yes for ALL projects in a solution (containing many unit test projects, for example). Or to control the properties folr ALL projects of a certain type, particularly console applications used for tests. In previous versions, the default was contained in a file common.j ...Show All
.NET Development How do I stop Firewall blocking my app?
Hello! How do I stop firewall blocking my app Mateusz I have a blog that has some C# classes that you can use to do this. http://blogs.msdn.com/joncole/archive/2005/12/06/500770.aspx The classes are basically just wrappers around COM objects that are already present on the machine. You can use the code I have in that blog or you can create a COM interop assembly (reference to a COM dll) ...Show All
Visual Studio 2008 (Pre-release) Open TCP Channels
I have some WCF services that work fine with HTTP bindings, but when I attempt to convert it to run with NetTCP bindings, it fails after about 10-12 connection attempts. I suspect that this has something to do with exceeding the maximum number of open TCP channel connections. Do I have to manually close a channel connection on the client side after using it Thanks, Chuck What happened to MaxInboundConnections It no longer seems to be p ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX Extensions Problem for Visual Studio 2005
Hello, I have tried to find an answer for my problem for the past week, and I am not sure if this is the right thread for it. I have installed DirectX SDK April 2006 with the DirectX Extensions, and I am running VS2006. When I start VS2006 I don't see the DX extension icon on the intro Splash Screen, but I am able to see it in the About Box for VS2006. The problem is not that it is justnot loading - ...Show All
Visual C# Communication Between Froms...
I currently have a form that I am using to store variables/arrays/etc. I have just created a second form. The form is launched when the user selects a button. I have launched the form by simply instantiating the object, like this: Form2 f = new Form2(); f.Show(); However, there is data that I need to retrieve and display from the first form (Form1). Would anyone know how I could go about doing this Thanks, ...Show All
Windows Forms DataGridView and posting changes to DataTable
This problem appeared many times on this forum but in my case none of the solutions worked. The story is that changes do not appear in DataTable. dgv is bound to a dataset and DataMember has been assigned to a DataRelation (by its name). It views data fine, but when I type anything in dgv I can't see changes. I'm handling events TableNewRow and ColumnChanged. Those events are raised as they should when I change/add rows on dgv. When ...Show All
Visual Studio Tools for Office Sending Emails ..
Hi, Not really certain if this is the correct forum or not. My apologies if not. I'm creating a VS.NET 2005 application using VB.NET. I've downloaded and installed the Visual Studio Tools for Office 2005 as well as the code snippets. What I want to do is send an email. I'm getting my feet a little wet before jumping right in! My code is as follows: Dim mailItem As Outlook.MailItem = Me .CreateItem(Microsoft.Office.Interop.Outloo ...Show All
Windows Forms Show Dropdown List on First Click in ComboBox Cell in DataGridView
Hi, I am working on Datagridview, wherein I need something like this: I have 4 columns. First Column is a Combobox Column. Whenever I move around in the DataGridView and I click on the Combobox Cell(in any row in first column), On first click it highlights the cell and on second click it shows the DropDown List. What I want is, Dropdown list should be shown on the very first click itself. Any pointers to this will be really great. T ...Show All
Windows Forms Reset a list box so nothing selected
I am writing a search form for a database and have an option for 'New Search'. How do I reset a list box so nothing is selected for the new search Hi, Set the SelectedIndex property to -1. listBox1.SelectedIndex = -1 Regards, -chris ...Show All
Windows Forms Expand Button in a propertygrid
I need to add an expand button for one of the properties in my propertygrid just like the button which is present in the 'collection' property of controls like .. treeview, listbox etc..... Any suggestions guys Check out a great article on MSDN on this subject: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dndotnet/html/usingpropgrid.asp ...Show All
Visual Studio Team System Create Tests doesn't work...
I have a solution with 9 C# projects in it: 1 WinForms application, 4 class libraries, and 4 test projects corresponding to the class libraries. The EXE and the 4 class libraries implement branches of a rooted hierarchy of namespaces (not sure if that's significant, but thought I'd mention it). In one of the class library projects, if I add a new method to a class that already has a corresponding unit test class, everything's fine. In another of ...Show All
