Youpas's Q&A profile
Visual C++ Debugging a for loop
Hi Guys! Sorry if this is a stupid question but I can't find an answer anywhere... So if I have a for loop which repeats 200 times and I want to stop (debug) the loop when a value inside the loop reaches a certain value, is there a way other than to press F10 a thousand times In other Words how can I debug a for loop at the 180th repetition, or when a variable inside the loop reaches a certain value I would much appreciate if anyone could answer me this question. You can add breakpoint condition. Right-click on the line with breakpoint, select Breakpoint - Condition, and type i == 50. Other way ...Show All
Visual Studio Team System Sharing FXCop Rule Sets
I have a medium sized environment (125 devs) and hundreds of visual studio solutions. I want to use a check-in policy (in TFS) to enforce a subset of the FXCop rules shipped with VS2005. I want to define the subset of rules once, then somehow share them with all other developers as the default rule set they should be running. Then in my automated build I want to run code analysis for my subset of rules during our automated build process (not using VS, just calling MSBuild with parameters). If the code analysis raises an error I will fail the build. First, I can't figure out is how to share the rules subset with all of the developers ( ...Show All
SQL Server How to create Constants in a Report
Hai , this is srinivas Reddy. I create a Report and in that i referenced a .net managed dll file in which i have some constants, still i am unable to view these constants under Constants in Expresion editor. Can anyone please let me know how to create constants in Sql Server Reporting services Report Thanks in Advance, Srinivas Reddy. ...Show All
SQL Server PIVOT question
I have a basic table consisting of several thousand records. Im trying to generate a pivot query for a report. the table consists of records, each of which has a recieved date ( small date time ) and a tranactioncount ( int ) . Im looking to generate a PIVOT to show the show the month and year counts for the files recieved ie YEAR | JAN FEB MAR APR etc 2004 ! 2 34 67 43 2005 | 12 2 3 1 can anybody explain in laymans terms how to do this Thank you in advance To do this in 2000, check out my reply of this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=249991&SiteID=1 ...Show All
Visual C++ Setting Starting Position of MFC Dialog
Hello All, I'd like to have my mfc dialog appear at the bottom right corner of the desktop (right above the system tray). I can't seem to find the right coordinates, any ideas Thanks, Mike A somewhat simpler way is: CRect rcScreen; SystemParametersInfo(SPI_GETWORKAREA, 0, ( void *) &rcScreen, 0); CRect rcWindow; GetWindowRect(&rcWindow); MoveWindow(rcScreen.right - rcWindow.Width(), rcScreen.bottom - rcWindow.Height(), rcWindow.Width(), rcWindow.Height(), TRUE); ...Show All
Visual Studio Addin Menu Clicks firirng too many events
I have 3 menus with events and I am getting really weird results on menu events. All menu events are firing on any single menu click. Here is the relevant code. Public Class Connect Implements IDTExtensibility2 Public Shared oVS As DTE2 Dim _addInInstance As AddIn Private cmdbar As Microsoft.VisualStudio.CommandBars.CommandBar Private WithEvents mnuAbout As CommandBarButton Private WithEvents mnuSetup As CommandBarButton Private WithEvents mnuTest As CommandBarButton   ...Show All
SQL Server Package running other packages
Hi everybody, I have to create a package that executes other packages I've already created... Every one of these packages run with the same Configuration File, but if I try to execute the main one, including the path of the file, I get errors from the other packages because they can't find it... How can I manage to pass this file and its content to the other packages Here a little explanation of te process: Main Package needs configuration file X.dtsConfig, and calls: package1, which needs configuration file X.dtsConfig; package2, ....... I hope everything is clear... The people I work f ...Show All
.NET Development Bad Data problem...
Hi all, I have just ported my .NET 2003 project to .NET 2005. No major problem was experienced during the porting. However I am now getting the following error: "System.Security.Cryptography.CryptographicException: Bad Data." Any suggestions on how I can get around this problem A number of sites that I visited suggested deleting all my cookies, this I have done, but I am still getting the same error. Mike55. Can you describe the policy that you are using What assertions, keys, etc. Who is reporting such error, do you have a stack trace Regards, DiegoG ...Show All
SQL Server Why does the index lock my updates in SQL Server 2005?
When one process has one record locked in Update-Mode then an other process can't update any other records on that table with some queries, other queries that access the same records (but with a different WHERE statement) will execute. This problem occurs with SQL Server 2005, but it didn't with SQL Server 2000 (or any other database). The problem: -Process 1 locks a record in the table, and keeps it in Update-Mode, because the user is editing it. (Using OLEDB Pessimistic Cursor-locking) -Process 2 wants to update an other record, buts gets a "Lock timeout" when using one query but not with another. For example this que ...Show All
Visual J# J# is causing problems for me like usual.
I have just finished the problem before and then saved my work. I always leave the program running for a while after I save to make sure it saves. The problem is J# will no longer let me access my code, because it wants somthing from the USB key that I backed up to. Unfortunatly I do not have the USB key right now and I need to access the code does any one know how to do that. Sorry about all of the question I keep asking. This is a major project and there always seems to be something wrong. Hi, How did u back up ur files. Did you save all the project contents manually or through Visual studio to your USB drive Is the Visual st ...Show All
SQL Server Manual Dowload/CD Burn/Installation
Where can I go to manually download SQL Server Express 2005 w/ Advanced Services so that I can burn a CD and install offline WHat about here: http://msdn.microsoft.com/vstudio/express/sql/download/ HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C# Correct me!
Here my code and I need your help... This is a game about number guessing, computer generate a number, and the user try to find it... Firstly; The user choosing these 3 selection; digits: 0-9 we do it by combobox; chance: we do it with textbox... Digits repeatable and nonrepatable(I NEED THIS);(with radio buttons) And then; The user write his guess in to theTEXTBOX... And we must compare this digit by digit. Because we will give a hint about the number, like "how many digit's place is true, and how many digits are existing in the number which one the user trying to found... I hope U can understand something... We must add the pro ...Show All
Windows Forms Calling an event within another event in C#
This is an interesting question. If I have a form A and a form B; I have an event in form B that I need to call in a button event in form A. We are assuming they are in the same namespace, etc etc. How can this be done Nevermind. You just didn't write it all out. I was talking about the constructor. You have a form object being passed, but I was talking about you not showing that object being passed when the application is ran in main. sorry ...Show All
Visual Basic Using VB.NET to get audio file extended attributes?
Hi everyone... I'm an intermediate VB.NET user. I have a couple of applications that finds all the .WAV and .MP3 files in a folder (and its subfolders), reads their headers, and reports their sample rates, lengths, and number of channels. They run on XP and 2003 Server. I'd like to extend this to .WMA and .AIF files, and I'm starting to think that an easier way of accomplishing this task is to leverage some sort of Windows API. Considering that all three of those attributes are reported in Windows Explorer (by right-clicking on an audio file, selecting "Properties...", clicking the "Summary" tab, and t ...Show All
Visual C# Pointing to an image file -- "does not contain a definition for Properties"
I wish the background property of my form to point to an image file instead of importing one, but when I try to do so in the property window I get the compile error: "does not contain a definition for Properties" The following code had been generated: this .BackgroundImage = MyApplication .Properties.Resources.myForm; Am I missing a using statement Instead, importing an image goes fine, but I want to allow the user to change the image. Is there an easy way to locate where in System something is, so I can find the necessary using statements myself Regards, Guido Thanks, that's wh ...Show All
