JoshSommers's Q&A profile
Visual Studio Team System FXCop: Exclude specific files from analysis?
Is it possible to exclude whole files from code analysis My scenario is where I have a web reference that generates a web service proxy class. This reference will get updated periodically so I don't want to supress 500 messages every time I update it. Is it possible to exclude a whole file I still want the rest of the files in the project to be analyzed. unfortunately, we do not have the ability to exclude warnings in the managed code analysis tool by file. That said, we have been working on improving our behavior in the presence of generated code and the experience for the final release in this space will ...Show All
Visual Studio Beta 2 VSIP - where?
Just installing Beta 2. Now - when can we expect the matching VSIP package I have some editors to get going. soon, measured in days. people are working on posting the bits as we speak. ---------------------------------------- Update: The Visual Studio 2005 SDK beta two release and instructions for downloading them have been announced at Visual Studio Extensibility . Enjoy! ...Show All
.NET Development How to enumerate shared folders on a network computer?
Hello, I need to know how to enumerate the shared folders on a network computer. I've tried the following code snippet from MS technet: Dim strComputer = "<insert computer name>" Dim objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Dim colShares = objWMIService.ExecQuery("SELECT * FROM Win32_Share") Dim objShare For Each objShare In colShares Debug.WriteLine("Caption: " & vbTab & objShare.Caption) Debug.WriteLine("Name: " & vbTab & objShare.Name) Debug.WriteLine("Path: " ...Show All
Windows Forms Error when commiting the Row to the Original Datasource.
Hi there, I have this problem with a DataGrid, when you click on a BoolColumn in quick succession a messagebox pop’s up with the following description and a Yes and No button: Caption: Error when commiting the Row to the Original Datasource. The ListManager’s position must be equal to rowNum. Parameter Name: rowNum Do you want to correct the value If you&nbs ...Show All
Visual C# How to call a method/property contained in a string variable?
Can anyone tell me the syntax for calling a property when the property name is containted in a string variable What I'd like to be able to do is set a property value as follows: string propertystring = "ComputerName"; server.propertystring = "Honda"; There must be a way to syntactically have propertystring dynamically evaluate correctly at runtime Thank you very much, David ...Show All
Visual C++ ultra fast binary writes
Hello, can anyone please help... This is a bit of a general question. My C knowledge is limited to the K&R book. I have used the fsutil tool on windows xp and noticed that the command: fsutil file createnew c:\$delthis.bin 1234567890 which creates a file over a gigabyte in size is extremely fast - it takes about a second on a PIII 800MHz with 256MB memory. This seems to be amazing given that it zeros the whole file, rather than simply creating a directory entry. If I wanted to code a 10 line program in C to do exactly the same (for simplicity with hard coded values - no parameter options) and run just as quick ...Show All
SQL Server Connection to Analysis services from VB - very slow
Dear All, I noticed a strange problem with one of my client's computers where in establishing a connection with Analysis services from VB takes 6 seconds, when the computer is not connected to network, but it takes only a fraction of a second when the computer is in networ. We use ADOMD to connect to Analysis server. Analysis services is installed in the local machine. I ran dependency walker and found that the dll WS2_32.dll (winsock dll) is taking most of the time when establishing connection. This issue is very important for us and it would be great, if someone could help me in this. Thanks in advance, Niyas ...Show All
Software Development for Windows Vista Issue loading & resuming an unloaded WF..
I have a test app that does the following: It starts the runtime, adds sql persistence service to it and subscribe to some Wf related events. Then upon user input it either starts a workflow afresh (Option A) or attempts to load & resume a previously unloaded workflow (Option B). In Option A, the runtime is stopped after the WF gets unloaded&persisted. User notes down the instance id of the WF when it was started. During Option B route, user inputs the instance id guid and I attempt to do a workflowruntime.GetWorkflow(Guid) followed by a Workflowinstance.Resume (even though just the GetWorkflow() should have ...Show All
.NET Development the horrendous time penalty in System.Drawing.Printing.PrintPageEventArg.pagesettings
For obscure reasons I needed to get the height and width of the print page repeatedly as defaults using document printing. Being quick and dirty i coded dim e as System.Drawing.Printing.PrintPageEventArg. ... e.pagesettings.pagebounds.width fairly deep in the code. When I moved it to page level processing print times for a page dropped from way too long - well over 10 seconds - to well under a second. WOW! Question: Does VS Studio 2005 Team Edition have any easy way to find out where a program is spending its time I ended up doing the old now-start bit. .NET has contained a profiler since its initial release. ...Show All
.NET Development DataLayer.Primitives Public Version Released!!!
Hi, It is my best post in my blog. DataLayer.Primitives is very useful code block oriented to DataLayer in .NET Applications. http://guydotnetxmlwebservices.blogspot.com/2004/11/datalayerprimitives-and.html Download source code!!! ;) Javier Luna http://guydotnetxmlwebservices.blogspot.com/ Hi, Those visitors of this post who dont speak spanish I reach the following link to them. DataLayer.Primitives - Readme! http://forums.microsoft.com/msdn/ShowPost.aspx PostID=1389 Of where they will be able to review the brief documentation of the DataLayer.Primitives in english language. Cheers, Javier Luna http://guydotne ...Show All
Windows Forms App Settings & configurations
Hi, I am new to windows development and I was wondering, what would be the best way to save an application settings without being accessible to app users. I thought of XML config file but this defeat it being "hidden". Will embedded resources file do the job I hope so but how :) I was reading about resx files and found out it's d ...Show All
SQL Server Nested Loops in the Control Flow
I have a problem when using nested loops in my Control Flow. The package contains an outer Foreach Loop using the Foreach File Enumerator which in my test case will loop over two files found in a directory. Inside this loop is another Foreach Loop using the Foreach Nodelist Enumerator. Before entering the inner loop a variable, xpath, is set to a value that depends on the current file, i e /file[name = '@CurrentFileName']/content . The Nodelist Enumerator is set to use this variable as its OuterXPATHString. Now, this is what happens: First Iteration: The first file is found and the value of xpath = /file[name = 'test1.txt']/content. When ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with ComputeBoundingSphere
I'm trying to use the Geometry.ComputeBoundingSphere method to get the radius of the bounding sphere of a simple mesh. The code is as follows: using (VertexBuffer buffer = this.mesh.VertexBuffer) { GraphicsStream graphicsBuffer = buffer.Lock(0, 0, LockFlags.None); Vector3 center; boundingSphere = Geometry.ComputeBoundingSphere(graphicsBuffer, this.mesh.NumberVertices, this.mesh.VertexFormat, out center); buffer.Unlock(); } For some reason, this code is always returning 0 as the radius of the sphere. My mesh is just a simple 7 vertex hexagon that renders fine. Thoughts ...Show All
Visual C# How to implement add or remove of event
public class Test1EventArgs : EventArgs { public Test1EventArgs() { } } public class Test2EventArgs : Test1EventArgs { public Test2EventArgs() { } } public interface ITestEventInterace { event EventHandler<Test2EventArgs> ValueAdd; } public class TestEvent : ITestEventInterace { public event EventHandler<Test1EventArgs> ValueAdd; event EventHandler<Test2EventArgs> ITestEventInterace.ValueAdd { add { this.ValueAdd+=value ...Show All
Windows Forms Start Windows Service After Install
Im setting up a deployment for my first windows service and I have a few questions. 1. How would I go about starting a windows service as soon as it is finished being installed Or, could I force a reboot after the installation, since the service is set to auto start after being rebooted 2. My program also requires that the 'Allow service to Interact with desktop' option is checked for the service's properties. Is their a way to do this as part of the deployment and installation instead of having to do it manually Thanks O ...Show All
