Greg Stolecki's Q&A profile
Visual C++ Intellisense should use scope information
There is no forum specific to intellisense for C++ (I did see one for C#), so I'll hazard a post here. In the following code sample: int xyz = 1; void main() { int xyz = 2; printf("%d\n",xyz); } Right click: Go To Definition on "xyz" on the printf line should take me to int xyz = 2, not int xyz = 1. In general, I find it bothersome how Go To Definition gives me a list of choices to choose from. The choice isn't ambiguous, just that intellisense isn't using the all information that is available. I realize the use of scope might be beyond the design goals of intellisense, but it woul ...Show All
Visual Studio Team System Another 32000 error
I'm getting this error when installing the foundation server piece Error 32000. The Commandline “c:\program files\microsoft visual studio 2005 Enterprise Server\BISIISDIR\sdk\bin\Bisregedit.exe” http://TEAMSRV01:8080/SCC/public/application/ServiceDefinition.aspx ” TEAMSRV01 BisDB’ returned non-zero value: 1. I get a choice to retry to cancel. If I click retry a few times nothing really happens, I get the same error and the installation stops at about 95%. I found out that I run the same command line from the command window, I get a 401 error stating that I don't have access to execute the web service which did not make sense because ...Show All
Windows Forms Visual Inheritance Context Menu Bug?
I want to use VI in a context menu, but it doesn't seem to work. In my base class I have a context menu, which is set to protected. In my derived class designer, I can see the context menu and add things to it. When I compile the code and show the context menu, only the original items appear. In the derived class' InitializeComponent function, I can see the new menu item being created, but it never gets attached to the base class context menu. Is this a bug in VS2005 I can bypass this problem by desiging a seperate context menu and adding it to the base class during the constructor, but it doesn't feel quite right to me. Am I doing somethin ...Show All
Windows Forms datagridview sorting
Hi I have a datagridview control which I am binding to a datatable. Before binding to a datatable I am adding one row in the datatable for Total and populating data in that row at runtime. Now when user click the header of the column data gets sorted. I always want the row which is displaying TOTAL at the end. I have scenario as mentioned below. Is there a way to keep the total row always at the end ------------------------------------------------ col1 col2 ------------------------------------------------ column1 1000 column2 1500 Total 2500 ---------------- ...Show All
SQL Server Non aggregate case
Hello, In the same fact table, I have real values and min/max values. The type of value (real, min, max) is a dimension. So, I want to aggregate value only for real value, because for min/max values, all the leaf are filled by my program. So, it's possible to say "I want the not aggregate value in the database" in MDX query Thank you, Guillaume. Thank you ! Ok, now I created 2 NamedCalculation on my DataSourceView. The first one is for 'real' value with aggregate function = SUM, and for the second NamedCalculation, I put 'min/max' values, with aggregate function = NONE. But when I brow ...Show All
Visual Studio 2008 (Pre-release) Where to get help? "umpnpmgr.dll error"
I downloaded and installed the latest microsoft updates, now my computer will not start up. I get an error message that is titled "systems.exe-bad image" and it says, "The following file is not a valid windows image - c:\windows\system32\umpnpmgr.dll". When I click OK, my computer goes to a black screen and will not do anything else. The mouse is responsive (I can move it around the black screen) and the keyboard appears to be functioning (I can turn off and on the num lock & caps lock). I found a thread that said to boot from my windows disk (XP by the way) and to expand the umpnpmgr.dll from d:i386. I tried to do this, but get the erro ...Show All
Visual Studio Problem Loading Package
I am trying to load the NUnit Test Code Conversion extension written by James Newkirk ( http://blogs.msdn.com/jamesnewkirk/default.aspx ). I realize that it seems that I should be talking to him to troubleshoot this, but I don't think its a problem with his package. The reason I think this is because the exception being returned is that an assembly couldn't be found "Microsoft.Practices.RecipeFramework.Library". This leads me to believe that the GAT wasn't installed correctly, but I can't tell if it has been or not. Any help would be greatly appreciated. Here is the error in full: System.TypeLoadException: Microsoft.Practice ...Show All
Visual Studio Express Editions Insert Query in db
I got a little problem when adding data to a database.(sql server express which comes with visual basic express- I got the following code for working whith my querys Private dtResults As New DataTable Private strConnstring As String Private sqcConnection As SqlConnection Private sqcCommand As SqlCommand Private sdaAdapter As SqlDataAdapter ''' <summary> ''' Executes the given SQL statement ''' </summary> ''' <param name="SQL">SQL statement to execute</param> ''' <returns>Datatable containing the results</returns> Public Function ExecuteQuery(ByVal SQL As String) As Syst ...Show All
SQL Server Enable User Instances in SQL Server
I'm just starting out and trying to connect to my first database using the following string: Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\RFPdb.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True I get the following error during debug: " Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances ." I've done this on every database - Master, Model, Tempdb, etc, and my database. Still get the error. I may not be enabling it correctly. Any help would be appreciated. The documentation suggests that I use user instances so th ...Show All
Windows Forms Imitate ShowDialog / modal form without blocking on the call
Hi! I would like to show my form in a similar way to ShowDialog, so it will always have focus and prevent selecting of any other form in application, but without blocking on the ShowDialog call. Is there any way to just call Show() and then make the form modal I need this because I have created a user interface "flow", where during background work some status form is opened and after the task finishes, status form closes and result form appears. Both of them should be modal and they should switch from one to another without interaction with code, which created the initial status form. I tried following approaches: set MainForm's ...Show All
Windows Forms Displaying Flash with webbrowser control res protocol...doesn't work....why?
I'm not sure where to ask this question....but had to pick somewhere... I embedded my website in a resource file...all files embedded using RC.exe. Unfortunately, now I discover that the swf files don't display. Just an empty box. Assuming you're using VB6 or VB.net, simply add the webbrowser control to a form. Add all your css, js, and htm files to a ...Show All
Visual C# (CreateObject)VB -> C#
Please tell me how to tranfer this code to C# Set xlApp = CreateObject("Excel.Application") Set xlWb = xlApp.Workbooks.Add Set xlWs = xlWb.Worksheets("Sheet1") Thanks a lot ! Hi, Try the Activator class. Activator.CreateInstance("Excel.Application") Im not quite sure if this works in COM objects... cheers, Paul June A. Domag ...Show All
Visual C# How can I show HTML content to Win Form
I generate a text with Html pattern (simple HTML, no script).How can I show that content to win form as a web page Can you share your experience Thank you very much. hi, you can use this WebBrowser1.DocumentText = "your html context" you must append all your text at once you can iterate through array for example and add to the webbrowser text use something like string builder or string and when your string is comopleted append it to the webbrowser hope that helps ...Show All
Visual Studio Team System WebProxy for webtest tests and view browser when running coded tests
hi there, I am new to having a look at the web test product and only have the Bet 2 at the moment (long story)... A couple of questions: 1. How do you set a webproxy for the webtest tests. I have set the username and password under the credentials tab but this just results in a 407 Proxy Authentication Required. I can do it in the coded version with the following NetworkCredential credential; credential = ( NetworkCredential ) CredentialCache .DefaultCredentials; WebProxy proxy = new WebProxy ( "XX.XX.XX.XX" , 80); proxy.Credentials = credential; this .WebProxy = proxy; How do I do this through the webtest interface 2. When I ru ...Show All
Visual Basic Button State "Hanging"
I'm a newbie to VB 2005 converting from VB6 and I've run into a problem I don't understand! (I'm using VS2005). I'm using a "While" loop to detect when a Button has been clicked before the user can progress in the flow of the program. But when I call the code, the button whose event calls it seems to hang in the down state. To reproduce (slightly different but demonstrates the problem), set up a new project and add a button and a timer. Set the button FlatAppearance to be Flat and give it a MouseOverBackColor and MouseDownBackColor (anything will do) Set the timer period to say, 10000 and add the folowing code ...Show All
