phileb's Q&A profile
Visual Studio Express Editions Selecting the three largest variables from a group of ten
I need to select the three largest variables from a group of ten, however I need to do it without a hundred ifs, also I need the variables, and not the values. Is there an easy way to do this that I am perhaps missing If so could someone please enlighten me Thanks. No, they are 10 independent variables I could put them in a collection but I need to be able to use the variables for what they indicate later like Item1 = 3 item2 = 6 item3 = 5 item4 = 9 I need to be able to order them by thier values yet stil retain the name of the variable and be able to pass it on. Array.sort() then array.reverse() works okay for the values but it mixes it up and I can tell where each value then came from. ...Show All
Visual Studio Express Editions How to make a program fade out
i made a timer that deducts 1% of the opacity each .1 of a second but that didnt work.....so i stumped how can i make a window fade in or out thanks ahead Joseph Stalin it sure is, and to proove it i have a label whose text was set to allways be that of the current level of opacity, and while it did go down, it did nothing until opacity was below 1 then it was entirely gone ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Learning XNA for a newbie
Hi guys, I'm completely new to the XNA framework as well as the XNA game studio; any ideas on where to start learning XNA framework Or any book titles Also are there any official tutorials provided And actually will the final release of the xna game studio express be available within this year (it just said "release later in the holiday") PS. I've some experience in using C# on window applications development, also very little experience in using the managed Directx 9 API earlier. From Jason (Kusanagihk) Remember a few things might still change, because the final version of XNA should be released today. So maybe it's better to wait until the tutorial sites are updated (which will only be a matter of days, ...Show All
Visual Basic GetChange problem
Hello. A question please. I have a dataset. I inserted a new row. Then I show the data on screen. The user does his changes. Now I'd want to insert that row in the database. I do a getchanges on a dataset but I get a rowstate=added with the data that I create in the first time, not with the changes made by the user. What happens.... Thanks... I only retrieve 1 change with the getchange. Hi, I think you would need to refresh the view of the datagrid after the user has done His / Her changes too. That is show the data on the screen again. Try putting in a line similiar to.>> DataGrid1.Refresh() as the data is written to the database 1st ( not to the screen view ), it sound ...Show All
Visual Studio 2008 (Pre-release) ListBox not Displaying Feeds problems Help Please
I'v been trying to get the Listbox to Read the Feeds Listed In the ComboBox from IE 7 that lee d helped me with...this is what i have but it locks up and isnt doing what i want it to do.. Can someone help me with this...Thxs private void IE7ButtonClick( object sender, RoutedEventArgs e) { IFeedsManager manager = new FeedsManagerClass (); IFeedFolder rootFolder = ( IFeedFolder )manager.RootFolder; RssComboBox.ItemsSource = rootFolder.Feeds as IEnumerable ; RssComboBox.DisplayMemberPath = "Name" ; //Below here locks up the program string pathToExport = RssComboBox.SelectedIndex.ToString(); pathToExport = ListBox.ItemsSource.ToString(); Queue< IFeedFolder > queue = new ...Show All
Visual Studio Express Editions string data type conversion errors
I have been trying to get a std::string to convert to a system::string, the std one is somehow used by default by the namespace that I have create. The namespace function that I am trying to use is: string GetDatah::GetData::monster_name() { return "Test message!" ; } When I call this function and try and print this message to a windows form label, the compiler comes up with the error: Error 1 error C2664: 'void System::Windows::Forms::Control::Text::set(System::String ^)' : cannot convert parameter 1 from 'std::string' to 'System::String ^' c:\documents and settings\peter\my documents\visual studio 2005\projects\c++\prorpg\prorpg game engine\prorpg game engine\Form1.h 100 So the function ...Show All
Software Development for Windows Vista CPrintingDialog resource error in visual studio 6.0 C++
Dear. I am developing the program using the Visual C++ in visual Studio 6.0. When the program create the CPrintingDialog in viewprnt.cpp of MFC module, the returnValue is 0 of the following line. HRSRC hResource = ::FindResource(hInst, lpszResource, RT_DIALOG); Please let me know the reason. Best Regards. John Lee. your post is offtopic for this discussion group, but my guess is you are probably missing an include of afxprint.rc in your own resource. Go to view-resource includes and add the line #include "afxprint.rc" ...Show All
Visual C# Multiple OnClick events
I am wanting to add multiple OnClick events to a LinkButton in C#. What I want the button to do it call a method and also display a pop-up asking the user if they are sure they want to do this. I have the code for both these, but I don't know how to call them both when the button is clicked. The way I would do it would just be to add an onclick event to the button. If a submitbutton submits false, then the form is not actually submitted. Thus, in your Page_Load event you write something a. la. Button1.Attributes.Add("onclick","return confirm('are you sure ')"); And in your normal Button1_Click code you just have the code you need executed. ...Show All
Software Development for Windows Vista WCS .NET 3 June CTP and IE7
I've installed the last .NET 3.0 June CTP . My installation seems ok and I can create some personal cards using the selector (with its new GUI :) Then I've tried to login to Kim Cameron's website and Microsoft Live Labs STS web site (the former one uses the HTML Object tag and the latter one the XHTML tag) Both trigger the selector... but only during 1 second and then it's closed. That's all :( Did somebody succeed in authenticating to these websites using WCS .NET 3 June CTP PS: This scenario runs well with the previous WCS version Beta 2. [updated] Here my configuration: - XP SP2 - Not fresh install of winfx (previous one was Beta 2) - IE7 b ...Show All
Windows Forms DataView Sorting
Hi, I have two combo boxes and a DataGridView. The two combo boxes are going to serve as filters for the DataGridView. When the form loads a stored procedure is called to return a number of records to be displayed in the DataGridView. The grid can then be filtered by using either one of the combo boxes. If the selected index changes on either combo box a DataView is created from the DataTable holding the data from the stored procedure and a Row Filter is a applied depending on what the Selected Item Value is. All this works great but the problem I have I need to combine the two filters into one. I.e. if you want to filter the data to show only today’s events and then filter it again to only show a certain type of event. ...Show All
Visual Studio Express Editions error connecting to database
I am using VC# Express and trying to connect to a SQL 2000 database. The error message when I compile the application is as follows: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) Is there anyway to connect to SQL 2000 with VC# Express or is this a waste of my time. using System; using System.Data; //ADO.NET namespace using System.Data.SqlClient; //Use SQL Server data provider namespace using System.Collections.Generic; using System.Text; namespace Da ...Show All
SQL Server Parallel execution of source SQL commands
Hi, we're accessing a SQL Server as a source for some SSIS packages using quite complex SQL commands. We have dataflows getting data from up to 10 queries. The problem is that SSIS starts all these queries in parallel using up all the memory of the server (the source SQL server, not the server SSIS is running on). So the queries are very slow. Is there any way to force SSIS to start the queries after each other I already browsed the web for some answers on that and I'm not very optimistic... Maybe the only solution is really to feed the result of the query in raw files and process them later... Thanks, Thomas, I know you'll already have considered this but what is wrong executing them in sequence using precedence constrai ...Show All
SQL Server SSRS 2005 - "Server Error in '/Reports' Application."
When trying to open the reports server \\servername\reports we are getting an error page titled "Server Error in '/Reports' Application." The server has been restarted, and as this is a new deployment, there has been very little access for individuals to make changes. Any ideas on how to resolve the problem Thanks in advace I ran from the server http://localhost/Reports . There error it gave was a Configuration Error, pointing to the web.config file, however no further detail was given. ...Show All
SQL Server How does sql server determine order of cascade deletes to many tables
If have the following scenario Table A Table B fk to Table A Table C fk to Table A fk to Table B - nullable Table A cascades to table b and Table A cascades to Table C. Table B then restricts to Table C to avoid circular reference. However, the way our data is configured, the restriction from B to C will never matter when deleting from A if Table C is always cascaded to first and then B. I have done a few tests and this appears to work. I haven't been able to find any info on this, so is this order something I can always rely on Yes. There is no way to define the delete cascade happens on C before on B. By implementing delete trigger on A, you have full control as to dele ...Show All
Visual Studio Team System Encrypt Stored Procedures
When I deployed my schema changes I used the option to encrypt my stored procedures and now that I have done this I can no longer perform a comparison with my database schema. I am using CTP3, so I haven't tested if this was corrected in CTP4 yet, but is this going to be able to decrypt stored procedures and views so that I will still be able to perform a valid comparison with my schema. If you encrypt your schema objects you will not be able to compare that is correct, and effectively means it also limits your abilities to upgrade since you can not what you have right now. Since this is mainly a problem on expressions based objects like procedures, function and trigger this is not so much of an issue to ...Show All
