jkenny's Q&A profile
Visual C# HOWTO find a Word document.
Hello, I'm writing a program in c# to recover Word documents from a defective harddisk. I use CreateFile( "\\.\physicaldrive0"...) to read the good clusters from hdd into a byte array. To identify the Word document i use a header "DI a!± a" and a footer "MSWordDoc" byte sequence. Everything works fine until the program finds non-Word files with the same header byte sequence ( like *.xls, *.msi or any other OLE compound file). I found a document "WORD97 binary file format" but that one gives no answer on my question: How can i unique identify a word document from other ole documents like excel Thanks ...Show All
Visual Studio 2008 (Pre-release) Display HTML Snippet?
I have a WPF application that I pull descriptions into from RSS Feeds. The Descriptions have some html tags in them. I want to display these descriptions in my WPF app. Is there a control I can use to do that which will render the html for me so that my simple RSS reader example will work I tried looking at Frame, but if that is the one I need to use I need a little more advice, as I'm just not getting it to work out. Any pointers Thanks! If you are using the September CTP -- using Frame will do the trick (just point it an HTML file or content). -Arik ...Show All
SQL Server Only for SQL GURUS - Calling external procedures from Functions
I am using SQL Server 2005 Developer Edition. I am working on a conversion project from Oracle to SQL Server 2005. As part of this, in order to replicate Oracle sequence functionality in SQL Server, the design called for writing a function that would accept a parameter , say sequence name. There will be a user table, say, SEQUENCE_GENERATOR with the following structure. Column Name Data Type Nullability -------------- ------------ ---------- Sequence_Name varchar ...Show All
Visual Studio Team System property evaluation order (beta 3)
Why is the following not working I tried moving the Import of the M icrosoft.TeamFoundation.Build.targets from the top of the build file to the bottom, but it had no affect. Our environment has separate TFS and Build servers. I'm using TFSBuild.exe to kick off the build through a batch file. This article describes http://msdn2.microsoft.com/en-us/library/ms171464.aspx the order of evaluation but it isn't working. I also tried moving the RootProjectFolder property to a a new <PropertyGroup /> element. The affect is that only the first <PropertyGroup /> element is evaluated before the build is "kicked" off. An initial round of e ...Show All
Visual C++ setting enviroment option- save file option
Hi I am changging a code that works. I don't want to save my files befor running them ( because I don't want to save unchecked code. How can I do it . Now I have to save all before running the programs in order that the code changes will take effect. Thanks No I understand! You don't want to save the file, but you want that the new contents is used for the compile! Ahhh. Sorry! Thats not possible. The file must be saved to disk to be compiled! ...Show All
Windows Forms Limit decimal places display in DataGridColumnStyle
Taking a decimal from an SQL query, the DataGrid displays results with 6 decimal places. I just need 2, is it possible to truncate the rest Unfortunately I'm not understanding from the SDK doc how I can really do this. Well when doing it the SQL way you would cast or convert (using cast() or Convert() functions) the rounded result&nb ...Show All
Visual Studio Team System shared types in the distributed system designer
gday, I'm creating a couple of webservices in the AD (application designer), and I want that some of these webservices are using a shared type (class person.cs). there's a possibility to use the tool wsdl, the generate webservices with the same shared type (without using the visual studio). But how can I use this by using the AD or the Distributed System Designer integrated in the visual studio normally it adds the web reference to my web service, but I don't want the web reference, I want to have the generated stubs... How can i generate and using this stubs using VS2005 distributed system designer ...Show All
Visual Studio Team System A couple of issues with Load testing
I have built a webtest that runs fine when I run it from the "Test View" pane. I then added it to a load test. I have noticed a few issues when running load tests. Issue 1: On the PC's I run the load test on I get an error at the end of a test run that says; "Error occurred running test. (Computer computername )Object reference not set to an instance of an object" computername in the real world is replace by the actual machine that is running the load test. If I click "OK", which is the only option I then get asked if I want to view the detailed results of the test... which is fine. This error doesn' ...Show All
Visual Basic dockable toolbar
Hi, I hope someone can help me. I would like to create a dockable desktop toolbar for my application similar to the one windows media player 10 has. I have been searching the net for a vb.net solution but have only found and read about IAccessible Interface which does not seem to be available in visual basic and also a class toolbarwindow32 that is said to be in some c++ header file can someone plz help!! I've looked for that too, but didn't find much. I found it quicker to make my own app for that. Here's my program template that i use. (VS2005) A simple form, with a toolstrip bar. Template base Code. Public Class Form1 &nb ...Show All
Software Development for Windows Vista adding dynamic properties to custom Activity
Any example on changing custom activity properties in the OnActivityChanged event Just like the InvokeMethod Activity does... Thanks in advance, Ariel Schapiro Take a look at Ghenadie's Dyanmic properties sample found here . ...Show All
Visual C++ scripting method AddToolSettings broken in visual Studio 6.0 ????
There is a bug report on this: Bug ID FDBK45740 I have been trying to write some scripts to automate a build process in VisualStudio 6.0. The build process builds a number of projects. Some of these projects are just library builds, some of them are builds which result in executable code (.xll, .dll, .exe) I need to be able to change the target directory for the various builds. The scripting method to do this would seem to be Projects[ i ].Configurations[j].AddToolSettings (and RemoveToolSettings, etc.) This works fine for the compile settings, i.e. for the "tool" "cl.exe" (as per the documentation). It also works fine fo ...Show All
.NET Development ? How to share strong name key files ?
With Visual Studio 2003, we could share a single key file among all our assemblies, simply by referencing it in AssemblyInfo.cs. Now we have to reference it from the project settings "Signing" page, and when you select an existing ".snk" file, it always makes a copy of it to the project folder, and uses that copy instead. Is there any way to make it use the shared ".snk" file Hmm... Adding a link to an "external" key file (snk or pfx) to the project seems to enable its use as the signing key just fine for me (selectable via properties UI and all). Is this not a supported scenario ...Show All
Visual Studio Express Editions stacking text in a text box
hi in my form i have two text boxes, the first is where you enter the message and the second is where the message is displayed but i want it so when you send a new message it doesn't erase the las one out of the display box and stacks it oh well that explains it i was using TextBox2.Text = TextBox2.Text + TextBox1.Text, when i do it it puts the new message on the same line, how do i move it onto the next ...Show All
Visual Studio Tools for Office Install with vsts team site july
I found the framwork of vsto July version is 2.0.50630.0 and vs team suite is v2.0.50712.Any one know whether vsto july version work with vs team suit july.thanks Not tried it personally, there is a big push to bring all these upto sync, I believe there is a build being readied for PDC and a push for this. Regards Mike Walker MVP Visual Developer VSTO ...Show All
.NET Development Select @@Identity
This is really simple, however if you're not 100% sure, please don't respond. I'm a little confused here because of connection pooling that exists in ado.net (specifically, this scenario is inside of an asp.net webpage). If I execute the following code will I always get the correct identity value returned I know that @@Identity is session specific so by all means the following code should work, BUT because the actual connection is comming from a pool, and therefore, a seperate thread could, in theory, be accessing the same connection and be doing an insert at the same time, it might not work. So, the three questions I have are: 1. When does ...Show All
