Larry Joy's Q&A profile
Visual Studio Express Editions Managing exceptions in a backgroundworker
Hi, I'm using a backgroundworker (in VSE2005 for C#) and have the following problem : In the 'dowork' method I have a try/catch that handles exceptions that might occur and then rethrow them for the 'workcompleted' method have a proper error state. The problem is that when an exception occurs, I get an unhandled exception error message pointing to the 'throw ex;' in the catch block (see code below), because of course ex is not being han ...Show All
Visual C++ Manifest issues with VC2005
Hi I'm trying to build a production application in debug using Visual Studio 2005. The application builds, but when I go to run it in debug, I get an error that it can't find the Release versions of the run-time libraries. I've looked at a lot of documentation and discussion groups regarding manifests and have not found out what to do. It looks like the manifest (as near as I can tell) has the debug versions of the libraries included, but not th ...Show All
Visual Studio Express Editions visual basic 2005 express Build a program now not displaying
while attempting to run "MyFirstWindowsApplication" from the "Build a program now" book, the program seems to run and end very quickly(screen flickers once and returns to the IDE screen) I just installed VB2005 express on my XP system and was wondering if I need to change something in Windows XP home to see the VB program Thanks for your suggestion. I've already done that "start w ...Show All
SQL Server RowsComplete in SSIS
This may be an easy question but the answer in not obvious to me. I am copying a table from one DB to another and would like to get the number of rows transfered. In DTS you could look at the 'RowsComplete' and 'RowsInError' property of a CustomTask, how do I access this data in SSIS I am using a DataReader with an ADO.Net connection to retreive the data and an OLE DB Destination to write the data. Any help is appreciated, &n ...Show All
Windows Forms Commercial apps w/ WinForms
Have any commercial apps been written using the .NET framework and WinForms I'm thinking about writing an application using WinForms, but I'm not sure whether users are ready to swallow the .NET framework as part of the install. I'm also not ...Show All
Visual C++ cl : Command line error D8003 : missing source filename
My error log: Creating temporary file "f:\work\ Test\Test\Debug\ RSP00000E35403228.rsp" with contents [ /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_WIN32_WINNT=0x502" /D "_AFXDLL;_MBCS /Gm /EHsc /RTC1 /MTd /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /ZI /TP ..\Testmodule.cpp ] Creating command line "cl.exe @f:\work\ Test\Test\Debug\ RSP00000E35403228.rsp /nologo /e ...Show All
Game Technologies: DirectX, XNA, XACT, etc. dazed and confused about xna
hi, i am finding understanding what xna is quite confusing. i heard it's a build tool to make managing game assets easier. i heard it's a direct-x c# only development environment for writing games for windows and xbox. i'm really not sure what this thing is. i heard this is for indie devs. i am just getting started to write a 2d game for windows using direct-x and thought this might be the ticket. i've installed it, and i see i have some k ...Show All
Visual Studio 2008 (Pre-release) Windows Token and SAML Token and Signing Process
I am in the process of writing an STS that delivers the SAML token based on the windows credentials (hence windows token). I looked at the federation extensibility sample. It has lots of custom token configuration on client side. So I stripped out lot of code and have my client simply invoking a method on the STS which has a return type of Message, which is mapped to RSTR through attribute. It does not have any input arguments as I am relying th ...Show All
Visual Studio VS2005 Feature Uninstall Problem
I just installed VS2005. I selected only Visual Basic Language (SQL...,Device.., and ASP.. were also selected). Installer ignored my language request and installed C++ and C# as well. Tried to uninstall C++ and C#. When deselecting the features, the "Update" button in the installer remains disabled. So I clicked on J#, the deselected it. The "Update" button now is enabled. The only selected language feature is Visua ...Show All
Windows Forms XP Style problems with treeview
In my application I have a treeview (with some nodes) docked on left on a winform. Before Application.Run, I call Application.EnableVisualStyles and then Application.DoEvents in order to enable windows xp style for controls. When I start the application, th ...Show All
SQL Server Restore from snapshot
Hello, Is there someone who alreadry tried to restore from a snapshot generated from a mirrored dabase Actually I am looking for the steps that I need to go through to do that. Do I have to stop the mirror before the restore Can I only restore from the snap if the local database is the 'principal' meaning that I have to generate a manual failover Thanks in advance for your help. Jerome So, the scenario is you set ...Show All
Visual Studio 2008 (Pre-release) Could not find <DataTemplate> Tag inside <ListBox.ItemTemplate>.
Hello Everyone, I am a new user to Windows Presentation Framework. I tried working with some samples with the help of WPF Book by Oreilly. I got struck here: < ListBox ItemsSource = " {Binding} " IsSynchronizedWithCurrentItem = " True " > < ListBox.ItemTemplate > < DataTemplate > <TextBox> < TextBlock Text = " {Binding Path=Name} " /> : ...Show All
Windows Forms bind to indexer
Hi, It's possible to bind to a indexer (ex: a["name"]) in VS 2005 beta2 (specially for datagridview) OK - you may be looking for something like the sample below - it takes virtual properties from a "model" and presents them to the DataGridView as "real" properties. It involves implementing ICustomTypeDescriptor - and although a bit complex this is extremely powerful (and how ADO.NET do ...Show All
Visual C# How to read exact line from text file?
Hello again.I have one question: (example) How I can read the 3rd line from a text file and transform the rezult to string Yes, you can do this by using the StreamReader Object. include the System.IO Namespace then StreamReader sr=new StreamReader("FilePath"); sr.readline(); // reads first line sr.readline(); // reads second line sr.readline(); // reads third line check out ...Show All
Visual Studio Team System TF MSSCCI Provider on 64Bit Windows Server
I can't seem to get it to install. Does the provider support 64bit OSs Thanks, Blair The MSSCCI setup does not currently not support 64 bit OSes. It is a known issue that we are looking into. Moreover, Team Foundation does not support true 64 bit client, you have to use WOW 64. Ed http://blogs.msdn.com/edhintz ...Show All
