Philip Coupar's Q&A profile
Visual C++ LinkedList with node-objects
Hi, i am currently working on creating a LinkedList, for that I using a predefined Node-class which offers a LinkedList Toolkit to manipulate the Linked List ( http://www.cs.colorado.edu/~main/chapter5/node1.h ). I develop a Squence-Class which should store a sequence of numbers in a LinkedList. My header file of sequence looks like this, respectively the methods and variables: [code] public: // TYPEDEFS and MEMBER CONSTANTS typedef double value_type; typedef std::size_t size_type; // CONSTRUCTORS and DESTRUCTOR sequence( ); sequence(const sequence& source); ~sequence( ); // MODIFICATION MEMBER FUNCTIONS void start( ); void advance( ); void insert(const value_type& entry); ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creators Club Benefits
"Both subscriptions provide aspiring game developers with access to thousands of game assets from Microsoft and key partners such as Turbo Squid Inc., as well as white papers, specialized starter kits, samples and technical product support to help turn Your World, Your Game into a reality." Am I missing something here Where can I get access to these 'specialized starter kits' and 'samples' Have I been deceived into buying this subscription If so, is there some way I can get my money back Maybe I'm missing something... Where does it say exclusive Both subscriptions provide aspiring game developers with access to thousands of game assets from Microsoft and key partners ...Show All
Windows Forms How can I get a user-selected region of a picture?
Hi, I'm trying to make an application with some photo-editor-like capabilities. I am displaying an image in one window and I want the user to be able to select a region of that image by dragging a rectangle. I am then trying to display only the selected region in a second window. I initially thought the PictureBox control sounded appropriate but after searching through a number of different forums I gather that PictureBoxes are really only for displaying pictures. Is this even the right control for what I am trying to do The first step for me is allowing the user to even drag a rectangle (similar to in MS Paint). I only want this dragging to be allowed within the picture display area, so would I have to use the MouseDown and MouseUp event ...Show All
Visual Studio Solution file error MSB5009: Error parsing the nested project section in solution file.
Hi, We have been running with MsBuild to compile and test our solution on a nightly basis without issue. A change was made to the solution whereby some projects where factored out into their own solution. So that we now have two solutions (at the root of SCC). The main one referred to by MsBuild and compiled nightly, and a subsidary one that contains projects only indirectly related to the main one. Since making this change we have the following MsBuild error on CoreCompile: "Solution file error MSB5009: Error parsing the nested project section in solution file." Both new solutions work fine in Visual Studio, we can get them from SCC, compile them, etc. We are totally baffled as to what this message means. Any help w ...Show All
Windows Forms Gridview xmldatasource problem
when I use xml datasource with datalist there is no problem but with gridview problem occurs.first link code with gridview http://img96.imageshack.us/img96/6128/1hn9.jpg second datalist : http://img134.imageshack.us/img134/6587/4rt2.jpg gridview error: http://img181.imageshack.us/img181/287/3wz1.jpg xml datasource: http://img134.imageshack.us/img134/95/2qs5.jpg This forum is for windows forms questions could you please ask this in the asp.net forums. ...Show All
Visual C# How to Enumerate StringBuilder object with null character as delimiter between strings
hi all, i have a StringBuilder object with unknown number of strings each string followed by a null character. i am getting the only first string by whatever the parsing technique i used because of null character. any suggetions thanks and regards ranadheer. and the code is to be executed when the window form is loaded. i used the code in the following method private void Form1_Load( object sender, EventArgs e) ...Show All
Visual C# Array.FindIndex () trouble.
string[] arr1 = new string[1]; string[] arr2 = new string[1]; string term1; // coSymbols is an ArrayList filled previously coSymbols.CopyTo ( arr1 ); coSymbols.CopyTo ( arr2 ); Array.Sort ( arr1 ); int indexed; for ( int ii = 0; ii <= coSymbols.Count - 1; ii++ ) { term1 = arr2[ii]; indexed = Array.FindIndex (arr1, term1 ); <= error message pertains to this statement ...... } Error 1 The type arguments for method 'System.Array.FindIndex<T>(T[], System.Predicate<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly. D:\VCsharp_Projects\tapTCPports_1\Form1.cs 1253 27 tapTCPports_1 I tried this form: indexed = Array.FindIndex ((Array) arr1, (string) term1 ); - same err ...Show All
Visual Studio Subreports
Hello everybody, I have a sub report that shows information for a particular topic when clicked hyperlink from the main report. On the sub report, I need to have another hyperlink that shows another report linked with sub report to show some more additional information. I didn't find a way to add a sub report inside a sub report. Is there a way to do this I need to show more details for sub reports in a separate report. Thanks. Unfortunately CR does not allow nested subreports so you are going to have to find another way to do it. If the info in the "2nd sub report" relates to the "1st sub report" you might be able use a drill down approach so that more detail or detail ...Show All
Windows Forms Single Key Shortcut for Menuitems
Hello, We want to implement a single key shortcut for meuitem i.e menu click event gets fired when any single character is pressed. For example, typically menu short cuts have CTRL+A but we want A as shortcut. Regards, Sachin Add this code to your form: protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.A) { // Run your menu item's Click event handler here. For example: openToolStripMenuItem_Click(this, EventArgs.Empty); return true; } return base.ProcessCmdKey(ref msg, keyData); } ...Show All
Visual Studio 2008 (Pre-release) WinSDK XBAP Sample problem
Hi, I was trying the samples in Windows SDK. When I wanted to run the solution file for a XBAP sample in Visual Studio 2005 I received error: "...can not be opened. Project type is not supported by this installation." I was able to build and run on VS2005 other WPF samples, but this XBAP caused problem. Aren't .NET3.0 and WinSDK enough to run XBAP The sample is "WPFSamples\AppModel\BrowserInteropHelperSample". Thanks. UPDATE: OK, I installed Visual Studio 2005 Extensions for .Net Framework 3.0 CTP. Now the solution for given sample opened correctly. Yet I wasn't able to build XBAP beacuse it gave me error: "Could not load file or assembly 'SharedPages, Culture=neutral' or one of its dependencies." I ...Show All
SQL Server DateTime Column not using Index
I'm having a hard time getting one of my tables to use a non clustered index that I have on a DateTime column. A sample version of the table is something like this CREATE TABLE Appointments ( ID INT NOT NULL, AppointmentDate DateTime NOT NULL ) with a clustered primary key on ID and a nonclustered key on AppointmentDate. This production table has over 1million rows and the problem I have is this: If I do a SELECT * FROM Appointments where AppointmentDate >= '20060701' AND AppointmentDate < '20060702' the Non clustered index on the AppointmentDate column works fine. i.e. I'm returning all appointments for the 1st of July. Now if I run the exact same query using datetime parameters, a Clustered index scan is perf ...Show All
SQL Server Where is the sample to partitioning the data to be mined?
Hi, I read in the online book that Microsoft provides a sample code to partition the data in sample databases AdventureWorks and AdventureWorksDW, on this location and file C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\Partitioning\Scripts File : PartitionAW.sql The book under SQL Server Database Engine Samples > Administration Samples also mention another example of partitioning in this folder and file C:\Program Files\Microsoft SQL Server\90\Samples\Engine\Administration\SlidingWindow\Scripts File : Sliding.sql However, none of those folders and files is found on my installation of SQL Server 2005 Enterprise Edition (evaluation copy, late November 2005). I received the CD from Microsoft Indonesia. In my instal ...Show All
.NET Development OLE DB and Visual FoxPro
Ok after hunting the NET for Days on end it seems I finally arrived here. I have Vis Studio 2003 .NET and I am using the OleDB Provider to access a Visual FoxPro Freetable - I also have the latest VfpOleDb.dll Provider and ODBC Provider - I do not know if VS2003 Accepted them or not - How Do I register the Provider for Use with VS2003.NET (how do I check that VS is using the updated driver for the OLEDB. For Vis FoxPro where I go to the connection dialog AND HOW can I fix the following - which is the whole point of all my other questions! I have a problem though querying the database using the something like this Select myCharField . MyTable , MyOtherCharField . MyTable , MyCharFromOther . MyOtherTable From MyTable ...Show All
.NET Development Accessing one forms class properties from another
I have a main form which has created instances of various classes it uses. When a menu option is clicked I want to open another form ,a bit like a dialog window, which enables the user to set various properties in those classes. How do I do this so that this second form has access to the properties of the first forms class instances The properties I want to access are not static. Regards, Gareth I made the class instance public and it works exactly as you said now :) Thanks again for the help. Cheers, Gareth ...Show All
Visual Studio Tools for Office Dynamic Array of NamedRanges
My database has "x" number of entries of "salary" and "hours". I want to be able to create an array of namedRanges (do not want to use cell numbers) that will be inserted dynamically with eash subsequent entry of "salary" and "hours". How can I accomplish this C# code would be preferable :). Thanks I'm having a real hardtime databinding listObjects programatically. Any good links on that If I have a formula applied to a cell which sums up several cells; Can the value in the cells of the listObject be Summed on the client side with my applied forumla ...Show All
