Diango's Q&A profile
Visual Studio proj.Object.AddFilter
With Visual Studio 8 (2005) I am trying to build a custom wizard that generates MFC projects. I used the custom wizard wizard to get started and I am now trying to figure out how the default.js function "AddFilters(proj)" can be modified so that I can add a filter so that I can place both .rc and .rc2 files into a project's "Resource Files" folder. So far I can only get either the .rc or .rc2 file to be placed in the desired project folder. I have tried creating two "Param" entries in the .vsz file but when I try to execute the following code I get an error because I have already called AddFilter once with the string 'Resource Files': ...Show All
Visual Basic Getting Users Full Name VB2005 Xpress
Hi How can I get the users full logon name now i.e. John Smith as opposed to SmithJ There was a function for VB6 that would return this but under NET... Replied in the Visual Basic Language forum: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=302135&SiteID=1 ...Show All
Visual Studio Express Editions How can I load data into a 2-dimensional array?
I have some data in a text file in the format: X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,I,O,O,S,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,O,O,O,O,O,O,O,O,O,O,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X and I want to load it to an array (e.g. myArray) which is declared as: Public myA ...Show All
Visual Studio Express Editions Image source for ToolStrip button
Dear All, I need to create a single customize toolstrip that contains both standard items(New, Open, Save, Cut, Copy, Paste)and navigation items(Move First, Move Previous, Move Next, Move Last), can anyone let me know where can I get those standard images for me to use for those buttons Thanks very much Gary Ng http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=145877&SiteID=1 ...Show All
Visual Studio Team System Application Diagram: Windows Service
Is there a way to represent a windows service on the application diagram, other than using the GenericApplication Reading this thread I acn design an windows service. But I need more. Is there a way to represent a windows service hosting a web services I would like to define webmethods visually like I do in a web application component. Thanks for any help Moreno Borsalino ...Show All
.NET Development FileSyetmWatcher: need single output
I am working on this dot net class. I need the application to notify for the following: 1) A new file is written in the directory 2) An existing file is being overwritten or modified in any way The output from FileSystemWatcher reflects each of the changes made when the application in question creates or updates a file. Whenever the "OnCreated" and "OnChanged" events are raised the application will give a message as output. So, if the application is made to handle both the events then for a file creation or modification I am getting more than one message. As all of these operations are real and distinct as far as the file system ...Show All
Visual Studio Express Editions Registration & Installation Query
I have been given a copy of Visual Basic 2005 Express edition on a CD. An ISO image was downloaded and burnt to a CD. I do not have a regular internet connection, and wish to use it on a standalone pc. Is it true that it will stop working after 30 days if I do not register it Is it also true that it will only install on a C drive Hi Chief, If you install from a CD, you do not have to worry about it not working after 30 days. Only versions installed from the Internet are required to register within 30 days. As for your question about installing only ...Show All
Visual Studio 2008 (Pre-release) Generated WSDL doesn't reflect the security binding
I'm performing the following test scenario: 1. Manually edit a WSDL file to change the policy settings, namely change the EncryptedParts and the AlgorithmSuite 2. Load this WSDL, get the Binding (via the ServiceEnpoint) and add a new ServiceEndPoint to the host 3. View the generated automatically generated WSDL at (http://... wsdl) According to my observations, the generated WSDL doesn't reflect the original WSDL. For example, if I change the AlgorithmSuite to Basic128 in the original file, I always get Basic256 on the generated file. I've observed the Binding object (obtained via the loaded WSDL) and the SymmetricSecurityBindingElement has ...Show All
Visual C++ Loop unroll optimization
Hi, I was playing around with different systems/compilers in aspect of code optimization. I found and that was surprizenly enough, VC 2005 does not unroll loops, it seems like. So then looking only at loop optimization for different compilers I found that for instance Sun Java ( does loop unroll ) perform sometimes 2-3 times better then simular C++ code. So my question is, is ther any reasons for not doing loop unroll or may be it's hidden somewhere P.S I do not have Java jit generated asm to paste in here, but that was loop unrolled by factor of 10 simular to Intel compiler. C++ code snippet: int z = 0; int* pz = new int[1]; .. ...Show All
Visual Studio Team System CustomDictionary for built-in Web Site Project in VS2005
Hello, Is it possible to use a CustomDictionary.xml file with a built-in Web Site Project in Visual Studio 2005 Team Edition, without having to place the file in the FxCop folder We would like to have a project-specific Custom Dictionary for the web site, but FxCop doesn't seem to recognize the dictionary file if it is placed in either the root web site folder, or the solution folder, which is one level above the web site folder. It does, however, recognize the file when it is placed in the FxCop folder. John H John, Good point. Unfortunately as it stands there is no way to currently do this ot ...Show All
Windows Forms PocketPC
Is there a site like this or asp.net that is more for PocketPC development. And more specificly a good forum john You might also want to check out OpenNETCF website. They have a lot of good resources (forums, wiki, faqs, etc.) to get you going including open source code that you can use in your applications. In addition, they recently&nb ...Show All
Windows Forms Master/Detail
I am trying to include a couple of master/detail forms on an current project, and I have set up all the relationships in the dataset. However, the details(in a DataGridView) are not updating when the main form's current record is changed. I have done all the setup in the forms designer, with the following setup: BindingSource [IncidentsBindingSource] bound to BindingNavigator Relation "IncToOffense" exists as follows: [Incidents].[Incident Number] <= [Incident to Offense].[Incident Number] DataGridView for Details set up as follows: DataSource: IncidentsBindingSource DataMember: IncToOffense The DGV is getting all of the corre ...Show All
Visual Studio Express Editions Where are the optimization settings?
Hi, in the Project Properties (VC++ Express 2005 Beta 2) - where are the compiler optimization settings where I can (for example) chose how the compiler will handle inline functions etc. Have they been removed Thanks David Project properties are accessible by either double-clicking on the project, using the project context menu, or accessing the Property Manager window. Here you will find the project properties that are available in this version of Visual C++. If this doesn't resolve your issue, please let me know. Thanks, April Reagan, Visual C++ Program Management ...Show All
SQL Server How to "Query" and show the result in a form
I am an beginner in VC#2005, my question is: I connect a table and transtorm to WM5.0 (PDAphone), I don't know how to show the result of my query, EX: table1,(two column: name , phoneNo) private void button1_Click(object sender, EventArgs e) { SqlCeConnection cn = null; try { cn = new SqlCeConnection("Data source=\\Programs files\\sqltest1\\sqlPDA.sdf"); SqlCeCommand cmd = new SqlCeCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = "select * from Table1 where phoneNo='0922123456'"; SqlCeDataAdapter da = new S ...Show All
Visual Studio Team System Fxcop Custom Rule to check for Custom Controls
Hi, In my project we are using custom controls instead of normal ASP.NET controls. We have build an architecture on .NET and are using its controls. Example of custom control used in prj: xyz. ABC.WEB.CONTROLS.Label Now I need to write a custom rule to check for naming conventions like label name should start with lbl. Can anyone please help me out with code I hope the poblem is clear ..... in case of any further clarifications needed please let me know The FAQ on custom rules development has some useful pointers to sample code. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=66507&SiteID=1 ...Show All
