DeBeDos's Q&A profile
Visual Studio Team System Custom Rules Development
Okay, okay so I know that any rules I write now will need to be re-written with the next release of Visual Studio, however I write (and maintain my own rules and now I'm stuck) .... I've been tasked to write a rule that checks for multiple return statements in methods, this is to help enforce the structured programming principle of methods having single entry/exit points that some of the junior developers consistently ignore. The problem I have is that with introspection I only get the MSIL, which is of course optimised. The optimisation process [is so good that it] actually restructures the code, eliminating all return opCodes exc ...Show All
Visual Studio VSS Extremely slow from one computer
We are using VS.NET 2003, and SourceSafe 6.0. There are multiple developers that use sourcesafe located on a network server. Source Safe is fine for all the developers except 1. From this 1 computer, It takes 10 minutes to open a C# Solution... and 10 Minutes to get latest. If we unbind the solution from Source Control, the Project Loads Instantly. Any suggestions. From what we have seen, some of these dramatic slowdowns are sometimes due to anti-virus software or faulty network drivers. I would advise for this computer to get the latest version of your AV software, and re-install the most recent ...Show All
Software Development for Windows Vista Problems with Visual Studio 2005 Extensions for WinFX in Vista
Hi! When I try to install the extensions for WinFX for VS2005, I get an error, that a prerequisite is missing (WinFX Runtime Components). Two issues are strange: - In Vista - according to the MSFT Download Center - the WinFX runtime components are already installed. - When I try to install the components, I get an error message, telling me that a newer version of the components is already installed... What shall I do to get the extensions for VS2005 installed My configuration is: - Vista Beta 2 (Build 5452) - Visual Studio 2005 Team Suite - Windows SDK Beta 2 (Version aus dem Download Center) Thanks, Marcel ...Show All
Visual Studio Accessing the CData section of an Item
What would be the best way to pass a CData section as an ITaskItem to a task We added a task called EMail that emails out build notifications. I want to be able to pass a formatted HTML string as an input to the task. I can't do it with a standard attribute. If you add an ItemGroup and then an item, it lets you add a Cdata section underneath it, but the build engine complains and says it is not a recognized element. So that doesn't work either. I also did not see a way to reference a CData item off the ITaskItem in code unless there is some way to use GetMetaData to access the info. I'm just passing in a file right now and have the tas ...Show All
Visual Basic I am looking for 2.0 framework code for uploading files via FTP.
All I have found so far never mentions setting the properties of the password, login and remote directory. I do have 1.1 code that worked but I am gettting an error in the 2.0 framework Here is the line of code: m_Buffer.Clear(m_Buffer, 0, BlockSize) Here is the error: Access of shared member or nested type through an instance; qualifying expression will not be evaluated. D:\Visual Studio Projects\CBI Class Library\CBI Class Library\Classes\Communication.vb 534 17 CBI.Utilities Thanks, Phil The warning message you are seeing, "Access of shared member..." is refering to the fact ...Show All
Visual FoxPro Search Form
I'm using the QBF solution form that is with VFP 9.0. How can I make it so that the search doesn't need to be case sensitive If I want to search for David, I want my users to be able to type in david & still find that record. You could do that. Basically in your example you could UPPER() the search string in your cCondition variable, or in whatever the ParseCondition() method returns. ...Show All
Visual C++ Isolated COM/Replacements file
I am looking into using your manifest tool to generate our manifest files, however I am looking for documentation on the "Replacements File" property. Looking in the documentaion all I see is: Uses the /replacements option to specify the full path to the file that contains values for replaceable strings in the .rgs file. What are theses replacable strings and are there any examples of how to use them Thanks, Mike Hi Mike, Exactly which manifest tool are you referring to Can you send me a link to the documentation where you found the info you quoted above Thanks, jeff. ...Show All
.NET Development How do I send mail using C#?
Does anyone have a code snippet that shows how to send mail from c# Here is the code snippet I found... System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); message.To.Add(" luckyperson@online.microsoft.com "); message.Subject = "This is the Subject line"; message.From = new System.Net.Mail.MailAddress(" From@online.microsoft.com "); message.Body = "This is the message body"; System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("yoursmtphost"); smtp.Send(message); ...Show All
SQL Server Currency - not $
Hi I have a cube with a sales amount measure. When I choose the format string to currency i get a $ infront of it when i browse the cube. What should I do to get a £ infront or maybe SEK in the back (SEK = Swedish Kronor) Thanks for answers //Patrik Well, that worked. But it seems to be a work around, and not the final solution. You must be able to select what type of currency the currency format code is. /Patrik ...Show All
Visual Studio How to send credentials to reportserver with webform reportviewer??
Hello, I am having problems, I found no documentation in how to send the windows credentials to this report . Anyone can help me with that line please!!! string reportserver = ConfigurationSettings .AppSettings[ "ReportServer" ].ToString(); string reportfolder = ConfigurationSettings .AppSettings[ "ReportFolder" ].ToString(); string usuario = ConfigurationSettings .AppSettings[ "Usuario" ].ToString(); string clave= ConfigurationSettings .AppSettings[ "Clave" ].ToString(); string dominio= ConfigurationSettings .AppSettings[ "Dominio" ].ToString(); tr ...Show All
Visual Studio 2008 (Pre-release) Back to the 2-tier?
It seems to me that Dlinq with this nice new feature of Entity = Class is good for a Client/Server scenario only. How would it worlk in a SOA at all I admit this code looks very efficient, but only in a C/S scenario. How would delayed execution work if you're not in C/S scenario, but need to call a webservice for retrieving your data, and also a webservice for updating your data ...Show All
.NET Development ExtendedProperties and MSDataSetGenerator
I have (what is I hope) a simple question: Why doesn't MSDataSetGenerator generate the appropriate code for ExtendedProperties I have a dataset XSD that contains attribute markup of the form: msprop:PropertyName="PropertyValue" but I don't see any DataTable.ExtendedProperties or DataColumn.ExtendedProperties at runtime. If I create a weakly-typed dataset and call: table.ExtendedProperties.Add(...); ds.WriteSchemaXml(...); I see the appropriate msprop: attributes in the resulting schema. Why doesn't it work in the opposite direction for strongly-typed datasets ...Show All
Visual Basic My Rich Text Box wont show the file properly.
I have a RichTextBox (rtbMain) and when I click a button I want it to display a rich text file that is stored as a resource. I used: rtbMain.Text = My.Resources.rtFile But it doesn't want to work right. It shows a buch of incomprehensible characters in the rtbMain box instead. Also My rtFile has text formatting along with images. Is this the right method to use or should I be using a different control. Thanks for any help you can provide. I figured it out. I used rtbMain.Rtf() = My.Resources.rtFile Enjoy! ...Show All
Visual Studio Adding a top-level menu to VS plugin
When I put something in the top most menu (between Tools and Window), I get a big ugly space to the right of the menu text. Is there something I could be doing incorrectly CMDPLACEMENT_SECTION menuGrp:IDM_VIEW_CUSTOM, mainMenu:IDM_VS_TOOL_MAINMENU, 0x0700; CMDPLACEMENT_END Do you mean a package Do the steps in the doc walkthru "Walkthrough: Creating a Top Level Menu" create the same ugly space ...Show All
Visual C# Enumerator or foreach - which one is better
I have a List<int> that say, has 10000 items in it. It is faster to get the enumerator object or do a foreach on it Thanks Ralph I Guest that the fast way is to use a normal for to iterate the List List < int > list = new List < int >(); // Here we add the items to the list int length = list.Count; for ( int i = 0; i < length; i++) { //Do you code for the list here. } ...Show All
