Sidharth Sujir's Q&A profile
Visual C++ "Correct" Workerthread Termination
Hello, I have used worker threads for a long while and yet always had and still have problems with the "correct" way such threads should be killed for premature termination. They may have files open, are in the process of allocating global memory or doing any number of other things. The closest I got to "correct" is to signal the worker thread through it's priority if it's services are not required anymore for termination prior to it's full execution. Except the code then starts to look messy with CheckForKill()s all over the worker thread code. What is the "best correct" method to do this and yes, I am aw ...Show All
Visual Studio 2008 (Pre-release) Glass effects in WPF
I was playing with Glass effects in WPF and found following strange effect. If I make a Window complete transparent (Glass) elements such as Label, TextBox, CheckBox show black text on black background (see picture in archive). Am I doing something wrong, or is it a bug in WPF or maybe it's a grafik card I have nVidia GeForce FX 5600 265Mb. I use drivers from NVIDIA: Date 19.05.2006, Version 8.8.6.1 In archive is sample project and picture with strange effects taken on my computer. http://rapidshare.de/files/22269698/GlassWPF.zip.html couldnt access the zip. So i am just guessing here. Looks ...Show All
Visual Studio Express Editions Design Question, VB6 to VBExpress
Hi..I am moving from VB6 to VBExpress (with a very short .NET 2002 stop) and have a design question. Suppose I have two string arrays. The first has 20 elements and gives the make of cars (e.g. GM, Ford, Rover, etc). The second string array has 15 elements and contains the names of various individuals. My goal is to match each infividual with a car make. There will be only one matching car make for each individual. My VB6 solution is to have two datagrids on a form. The car make datagrid contains simply the list of car makes in a single column. The second datagrid contains the array of individual names in the first column and a co ...Show All
SQL Server Modifing XML document is too slow
I need insert many dates from tables to XML file, I use T-SQL, everything is OK, but it works too slow. Is there another way Thanks' a lot. I use such sequence T-SQL: Declare @doc XML , @ixml nvarchar ( 4000 ) SELECT @ixml =( SELECT * FROM SAMPLE "d:SAMPLE" for XML AUTO ) SET @ixml = 'SET @Doc.modify('' declare namespace dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"; declare namespace d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields"; insert (' + @ixml + ') into (dfs:myFields/dfs:dataFields)[1] '')' exec sp_ExecuteSql @STMT = @ixml ...Show All
SQL Server ReportBuilder.Application will not work on client on network
PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://webdev.ci.lubbock.tx.us/ReportServer$SQL05/ReportBuilder/ReportBuilder.application ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of http://webdev.ci.lubbock.tx.us/ReportServer$SQL05/ReportBuilder/ReportBuilder.application resulted in exception. Followi ...Show All
SQL Server which algorithm to be used with symmetric keys
Hi, I want to create a symmetric key that will be encrypted by certificate key. Can u guide me which algorithm is best out of the following: DES, TRIPLE_DES, RC2, RC4, RC4_128, DESX, AES_128, AES_192, AES_256. I tried using AES_128, AES_192, AES_256 but it says ' the algorithm specified for the key are not available in this installation of Windows.' Pls tell me which else algorithm is best to use and pls specify why. Thanks Gaurav Thanks, But could u pls tell me why TRIPLE_DES, and not RC2 or DESX or any other. could u pls tell me the benefits of using TRIPLE_DES. ...Show All
Visual Basic Add New Data Source for My SQL doesn't work
I have tried also installing and using the ODBC driver version 3.51 and the My SQL driver 3.1.8. None of these work. What do I have to do to add a new MY SQL data source Michael I was told by two different Microsoft employees that Visual Studio 2005 Express Edition was the right version of Visual Studio 2005 for me to use for all of my needs including access to ODBC and MySQL data. They emailed me a link with a comparison of all of the different variations and features of the different versions of Visual Studio 2005. I am trying to remember now, but I think it included a chart with bullets or check marks and comment ...Show All
Visual Studio Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
I created a simple page that uses a web reportviewer control to display a server report located on a different server. For now, I've have made it possible to access the report through anonymous access. All works when I run the page on my localhost. I receive the following when I run the page on the development web server. I might be missing the obvious, but what resource is the message referring to Server Error in '/IcpReports' Application. -------------------------------------------------------------------------------- Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Description: An unhandled exception occur ...Show All
SQL Server Basic Connection
Ok. Basically I do not know how to access any database files from the SQL Server. Can someone help me please. How do I access the files from another computer. Hi, you can easily upload files using the import/export wizard in sql server...and it can be done either on the system database i.e. usually master database or you can create a new database by right click on the system database-->new database and lets say we name it as Nov and in this database or any other u do right click in the options there is one option TASKS--->import files or export files...somethin like that...n then an import export wizard will come and then j ...Show All
Windows Forms Open a menu in code
I have a client upgrading their office from a dos based program to one I am writing, but they want the program to be as similar as possible to the old one. This means that the program uses no mouse support at all and the want the menus to be opened by a single key press. Can anyone tell me how to open a main menu by hittin ...Show All
Visual Studio Express Editions .NET Framework 2.0 Beta 2 won't install
The Visual Studio Express install fails when installing Framework 2.0 Does Framework 1.1 need to be uninstalled No other beta or Visual Studio software has been loaded on the PC before...any ideas Anyone had something similar happen Thanks, Ron Thanks for your reply. I used "iisreset /stop" from the command line and the installation progressed satisfactorily. For those who like working with a minimalist development environment there is a version of Jeff Key's excellent Snippet Compiler available for C# 2005. ...Show All
Visual Studio Team System % Time in GC counter getting "stuck"
Been running some load tests and I've noticed that every once in awhile, the "% Time in GC" performance counter from the web server gets "stuck". What I mean by this is you can see the counter tracking normally, but then at a ceretain point, it pegs at a certain value (typically around 40%) and every reading after that comes back with the same value. Tracking from perfmon confirms that the counter is not staying at that level. Anyone see anything like this Matt Not that I've noticed. The weird thing is it's not consistent. I can run several tests w/o it happening and then all the sudden it happens on a test ...Show All
Visual Studio What SQL Server version to use with Visual Studio 2005 June CTP?
I get the NetLogon problem when installing Visual Studio 2005 June CTP. With Beta 2 I was able to install Visual Studio without SQL Express and then installed SQL Express later. But when I try to do this with Visual Studio 2005 June CTP I can't find a SQL Server 2005 version that is compatible with Visual Studion 2005 June CTP. /Thomas Due to scheduling conflicts, there isn't a released version of SQL Server 2005 that is compatible with the VS June CTP. The June SQL Server 2005 CTP is compatible with VS 2005 Beta 2. ...Show All
Windows Forms How can I invoke the copy to clipboard functionality on the GridView
I see that the GridView already has copy to clipboard functionality when you set the "ClipboardCopyMode" property. If you press <Ctrl><Insert> the selected rows/cells/columns gets copied to the clip board. Does anyone know if it is possible to invoke the same copy functionality (as when you press <Ctrl><Insert>) from my program Hi, The selected content of the DataGridView can be copied to the clipboard by using: Clipboard .SetDataObject(dataGridView1.GetClipboardContent()); Regards, Sinan Inanc ...Show All
SQL Server How to achieve the last Time-selection while iterating in the time-dimension itself ?
Hello I try to explain my problem with an example: Page-filter Fields: &[Year 2003].&[Jan].&[3], &[Year 2003].&[Jan].&[4], &[Year 2003].&[Jan].&[5] (=Multiple Item Selections) Range in days = 3 days Behind the scene: [ ] [Mutation] Year 2003 Q1 Jan 1 2 3 3 (=DayRange-1+1) 5 4 2 (=DayRange-2+1) -2 5 1 (=DayRange-3+1) 3 6 I want to achieve this kind of calculation behind the scene: (3*5)+(2*-2)+(1*3) = 14 [Measures].[MyCalc]= Sum( Head(Existing [Date].[Days], 1).Item(0) ...Show All
