TJ23's Q&A profile
Visual C# List<T>.Insert is very slow?
I have been writing a class that uses the List<T> class and noticed a huge performance decrease when using the List<T>.Insert method to insert my elements in the correct position as opposed to just adding them to the end of the list. The collection is about 200000 elements big. I tested this by creating a new project that creates a new List<int> and adds 200000. After that I add another 100000 by using the List<T>.A ...Show All
Visual C++ Compiling fftw - what flags should I use for best performance?
Greetings, I have compiled the fftw fft package from www.fftw.org using the Visual C++ 2005 Express Edition beta 2 but I can`t seem to find a good choice of flags for optimizing the code. As I run the benchmark code that comes with the package I get slower performance with msvc than if I compile with gcc 3.3.3 under cygwin which seems strange because I usually see the opposite behavior. Has anyone else tried to compile this package with th ...Show All
Visual Studio IVsPersistDocData2 Not Being Called
I have a class the implements IVsPersistDocData2 I register the document with the RTD using RegisterAndLockDocument, I get some of the calls such as isdocumentreadonly, But I never getting any calls to IsDocDirty and Save. Ok, thanks for the example, but in the example the editor and the doc is the same class. What has to be different to have them be multiple classes, I have 5 editors and only one data. And the editors don't m ...Show All
Windows Forms Databound Combobox Problems
VS 2005 allows us to drag a table (Detailed View) from the Data Sources window to automatically create an form that has databound controls, Binding Navigator, Binding Source, etc. I have a Contacts table and a Categories table. Categories is the Parent (One) table. Contacts is the Child (Many) table. Categories (<CategoryID>, Name) Contacts (<ContactID>, <CategoryID>FK, Name) CategoryID and ContactID are int Identity not null f ...Show All
SQL Server Label Reports
Are there any facilities in reporting services (2005 or 2000) for doing mailing label reports. We used to use these a lot in MS Access but now we are using Reporting Services for reports and it doesn't seem like there are facilities for labels. I am guessing it could be arranged with some clever lists or tables but not so nice as just picking the type of labels and it does all the formatting for you. Any info would be much appreciated. Martin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectInput or WndProc?
I've noticed the in the August SDK (and previous ones) that all of the samples use a WndProc function to handle keyboard and mouse input. I assume there is a good reason that DirectInput is not being used. Could someone please enlighten me as to what it is.... Does using WndProc give better performance than DirectInput Jason Barrett wrote: Jack Hoxley wrote: I would use DI ...Show All
Windows Forms Problem with Form Display
Hi there, in the project I'm working on there are several Forms which are displayed wrong at runtime. At designtime every control is displayed at the correct position but at runtime everythings messed up. Designtime: http://www.ifinddes.org/uploads/design.jpg Runtime: http://www.ifinddes.org/u ...Show All
SQL Server Error returning OLAP data in RS 2005
I have a .rdl file that was exported out of ProClarity's Desktop Professional 6.1 using their RS plug-in. I uploaded the file into Report Manager and when I execute it, I get the following error: An error has occurred during report processing. Query execution failed for data set 'Three_Month_Funding_Trend'. Unable to recognize the requested property ID 'ReturnCellProperties'. Does anyone have any idea ...Show All
.NET Development write xml and encoding
I create a dataset with a table. The table has two columns(for keys and values), and I add a row to the table and are trying to use different overloaded versions of dataset.writeXml functions to save the file with the correct encoding (I want utf-8), but when I save with encoding utf-8 the header in the file is missing + more: Example 1: Dim myFileStream As New System.IO.FileStream(ConfigFile, System.IO.FileMode.Create) Dim myXmlWriter As ...Show All
SQL Server Cannot create a connection to data source !!!! SSRS 2005
I cannot get this error resolve either for myself or any users, and I'm actually part of the Admin group! Furthermore, a user with whom I'm tring allow to view this report keeps getting prompted for their windows username and password. I thought that since this datasource was set to Windows Authentification that it would just pass it through I'm pulling my hair out at this point: Screen Shots: http://www.webfo ...Show All
SQL Server Newline Character?
Hi, is there an newline character (e.g. \n ) which explicitly instructs the report designer to insert a new line I haven't been able to find anything in the Reporting Definition Language Specification Paper and I was wondering if anyone knows the answer. Thanks. You can use VB's new line constant : vbNewLine , like this : ="General" & vbNewLine & "Ledger" ...Show All
Windows Forms Datagrid: Set value for textbox/column by selecting from drop-down list
I am new to .Net and working through my first project... I have a data grid working nicely to show a list of records, and set up templates for editing a record with a button to go into edit mode. I have set up a drop-down list on one of the columns that works nicely, too. What I would like to do is set the value of two fields (columns) based on the selection of the list box. The dependent column would be read-only. Basically the user chooses ...Show All
SQL Server External documentation
I know that the BI studio can build a nice flow document that is associated with the package. Is there an easy way to build a series fo documents that can be shared with other users without having them go into Visual Studio Mark E. Johnson I found the following free tool. http://www.bidocumenter.com/Public/Default.aspx ...Show All
Windows Forms [C#]DataGridView howto sum cells
For example, in my grid cells, i write some numeric value: col1 col2 col3 col4 Total 1.5 5.5 6 7 How can i obtain the sum of that values in column "Total" considering that my rows and my column are generated at runtime ...Show All
Visual Studio Team System TF Workspace command-line
Hi I am trying to use a HTML applciation and calling the "VS2005 command-line batch file" and the "tf workspace" command using wscript.run. I run into issues when I use "tf workspace /new aaatest ....." without the "/noprompt" option. Is it a bug in the command line that I have to use this option Is there a workaround where I can use this command with the "Add workspace" window ...Show All
