Jeff54's Q&A profile
Visual Studio Team System Long running time for "Dispose Methods should call base class Dispose()"
Hello, I've been invesitgating the performance of FxCop and came across an anomalous performance on the rule "Dispose methods should call base class dispose" (Microsoft.Usage#CA2215). One two different assemblies (Spring .NET framework, and SharpDevelop), this rule takes orders of magnitude longer than other rules. About 6 seconds on Spring, and roughly 20 seconds on SharpDevelop. Most other rules I looked at run in less than half a second on these codebases. I am using the commandline of FxCop version 1.35, build 51212.0. Does anyone experiance similar performance problems with this rule Is there an explanation for why this is so ...Show All
Windows Forms Sql Server 2000 Notification Services
Does anyone have an example of setting up a notification service using the SQL 2k Notification Services namespace I have only found one article on this topic (besides MSN). Any help provided will be appreciated. Thanks, Jason I knew I had to request to use the .Net Alerts provided already. I am more concerned about getting the values of the&nb ...Show All
Visual C# Capturing mouse button (Middle one)
Greetings, I have an Internet Explorer like application that uses the WebBrowser control. I must capture the mouse button click when it is done with the middle button so that the behavious could be different... (Like with Firefox, middle button clicks opens the selected link in a new exploration tab.) Right now, i can'T seam to get the event in a regular Form handler since it must be captured by another control... (i.e. Same problem than the one described in my previous post about KeyPress and KeyUp events) Is there a mouse equivalent of the "KeyPreview" property Somesort of MouseClickPreview i could set to true ! Note ...Show All
Visual Studio Team System Exception has been thrown by the target of an invocation
Hi, (VS 2005, Beta 2) I get the error "Exception has been thrown by the target of an invocation" when I try to open any of the test windows using "Test|Windows|Test View" or any similar approach. I created a new solution a while ago and added some unit tests. Everything was working great, until now... Anybody have any suggestions Thanks, Tor Langlo ok, well. it seems that all i needed to do is leave it along for 30minutes and it worked. No joke. I think my computer is evoluting. =D Maybe it will make my code for me!! =) ...Show All
Visual Studio Team System Overriding properties in .vbproj and .csproj with Team Build
I have a situation where I want all my visual studio projects in source control to be set to delay signed so that they have no problems developing with that code - which sets the property in each .vb/.csproj to : <DelaySign>true</DelaySign> However for a formal release build on the build machine, I dont want to delay sign. I guess I could go through the labourious exercise of editing every .vb/.csproj file to add a condition to set true/false depending on where the build is being carried out. or I could create some sort of custom task and add it to the BeforeBuild target in my Team Build that resets this property in each file to ...Show All
Visual Studio Tools for Office Serious Error with Action Pane/User Control
Hi, I have created one user control named "usercontrol1" and added two combobox onto this user control. Then on click event of one button I have added following code to add this usercontrol to action pane: private void button1_Click( object sender, EventArgs e) { Globals .ThisWorkbook.ActionsPane.Controls.Add( new usercontrol1 ()); } When I run the application and click on button1, I get the content of usercontrol on action pane. Everything is Ok. But when I again click on button1, I get duplicate controls of user control on action pane i.e now I have 4 combobox on usercontrol. How should I solve this ...Show All
Visual Studio Express Editions accessing attribute of the object in the objects' arrayList
I have arrayList of objects and want to assign a value to an attribute(string) of object which is in arrayList I tried for (int i=0; i < arrayListofObj.Count; i++) { arrayListofObj[ i].string= maskedTextBox8.Text; } But it doesn't work. thank you For future reference 'it doesn't work' is not very helpful. Instead, try posting the error message you get from the compiler. In this case, the error message will be that object does not contain a string property. This is true. Why are you storing an array of objects If they are all of the ...Show All
Visual C++ Get key user entered
I searched in msdn library, but i haven't found anything good... I am actually doing a game, all the code of how it should move is ok, but the only thing I need is to be able to determine where is the mouse and what key did the user press. Example: you press somewhere, it pops a dot at that place Example 2: you press right arrow, the dot moves right... I am ok with the code of displaying the dot, but not with the getkey function or whatever it could be... If you wish to get left mouse button clicks, handle WM_LBUTTONDOWN. case WM_LBUTTONDOWN: { int x = LOWORD( lParam ); int y = HIWO ...Show All
SQL Server Can I List the Integration Services Packages on my page?
I want to build an administration consoloe with asp.net Can I list the packages , can I delete them Yes, you can do this through the service interface on the Application Object. Something like this: Dim app As Application = New Application() Dim pInfos As PackageInfos = app.GetPackageInfos("\\","yourserver",Nothing,Nothing) For Each pInfo As PackageInfo In pInfos Console.WriteLine("Name: {0}", pInfo.Name) Next Which will give you all the packages on the SQL Server instance. For the packages on the IS Server, do something like this: static void Main(string[] args) { Application app = new Application(); PackageI ...Show All
Visual C++ Static class members and LNK2001
I don't know if this is a bug or my own stupidity playing tricks on me (the most likely). I have the following class: class CDummy { public : static CDummy* Singleton; CDummy(); virtual ~CDummy(); }; With the following implementation: #include "CDummy.h" CDummy::CDummy() { Singleton = this ; } CDummy::~CDummy() { } Now, if I build that, I get a LNK2001 error on the Singleton: CDummy.obj : error LNK2001: unresolved external symbol "public: static class CDummy * CDummy::Singleton" ( Singleton@CDummy@@2PAV1@A) However, if I comment out the initializatio ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is there any way to access the mixed audio data by DirectSound?
I want to get and save the mixed result by DirectSound. Is there any available method to do this I guess, the way maybe access the primary buffer, but how to do in detail By the way, I've read almost all pages of DirectSound Document, and haven't found any method to do this. Is there any master can teach me... Thanks! There is no way to get the final mix back from DirectSound. ...Show All
Visual FoxPro auto increase of field
i want to make a field to auto inc itsself.if i choose integer auto inc from the database i have realized there are many problems at hand.for example when i revert changes i lose numbers.i thought to make it in code.for example i could right code to implement the following in 1 button on the form 1st step :read last value 2nd step: new value=last+1 3rd step:put new value my question is if this way has any dangers like another command from another users comming in.for example is it possible to : 1st step of 1st user:read last value <=========another user comes reads value and changes it 2nd step of 1st user new value=last+1 3rd step of 1st ...Show All
.NET Development Resource editor suggestion?
I'm looking for a resource editor (for use with VS2005) that better than what's included in Visual Studio. Primary will be working strings, and some binary data. Anyone have any suggestions, recommendations TIA, Richard My single biggest gripe is the limited viewable space for entering in text strings. The longer the string, the more of a pain it is. Also, I just came up with a need to put in some binary data, which offhand I didn't see a way of doing. I guess could Base64 encode it, but then I'm back to the above paragraph. ...Show All
SQL Server Major problem with REPLACE-expression in the Derived Column Transformation
I'm importing a csv-file delimited with semicolons. Firstly I LTRIM the columns "in place" and the data imports fine. All the numbers in right columns in the target table. Then I add another Derived Colum Transformation to replace decimal character comma (,) to a dot (.) in order to convert the string/varchar value to numeric. But here I run into trouble. Running the task ends in success but the result in the target table (same as above) is not. All the commas are now dots as expected but what is worse is that SSIS have added values in cells that should not be there. I get values in cells that shoud be empty! Shortly: Only LTRIM ...Show All
SQL Server Open End :-( 'failed to generate user instance'
Hi all, i'm workung with sql server since 8 jears in many versions. My experience for managing and setting up the server is good. The last three days i has test all practics to generate a correctly user instance for my SSE on my developing machine > for a non adminstrative user under win xp pro . i has read all what google has to this theme and to this error. Now after this time my brain says me > this must be a major BUG in SSE < or i must be a great looser. I can make what i will, i can't connect to the SSE over a user instance=true in my connectionstring (forward: i has all parameter correctly set in the connection st ...Show All
