Wildert's Q&A profile
Visual Studio 2008 (Pre-release) Problems with Ink Analysis
Using the Windows SDK from Dec CTP I get the following when calling inkAnalyzer.BackgroundAnalyze(). Could not load file or assembly 'IALoader, Version=1.7.5333.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Is this a problem with my setup or is the assembly really missing Does anyone else have this I had the Mobile and Tablet PC SDK from PDC installed previously, and repaired my Windows SDK after removing it. I will do a full reinstall if others have this assembly. The IACore.dll and IAWinFX.dll both have the 1.7.5333.0 version. The application worked with the PDC version of the SDK. IALoader.dll is included in t ...Show All
.NET Development removing file name and extension from complete path
hello all ! I m new to c# progrmming so plz help me in completing the following program I want to write a program which takes a complete path name and separates out the file name and extension in two different strings. You can also use the functionality built in to the System.IO.Path class. It contains a few methods that will do this for you... System.IO.Path.GetDirectoryName(path) Returns the path without the file name/extension System.IO.Path.GetFileName(path) Returns the file name with the extension System.IO.Path.GetFileNameWithoutExtension(path) Returns the file name without the extension System.IO.Path.GetExtension(path) Returns the extension of the file (including the "." ...Show All
Visual Basic Two Bugs in HTML Select Element
I believe I have found 2 bugs in the Select HTML element. If you enter server-side of: ddService.Items.Item(index).selected = true ddService being the ID of the <select> element with a runat="server" attribute the code that is generated is <option selected="selected" value="3233">Some option text the proper structure is <option selected value="3233">Some Option text The same is true for the multiple attribute. the code that is generated is multiple="multiple" Microsoft's own documentation states that the proper values for selected and multiple are true/false. Thanks, PS: I would appreciate a fix for this before I am too old to enjoy it ...Show All
.NET Development XMLDocument wont accept space at the start of an XML Document.
Hi all, I have the following xml document -------------------------------------------------------------------------- (space here) < xml version="1.0" encoding="UTF-8" > <wfmcase> <case_details> <caseid>case id</caseid> <archive_status/> </case_details> <error_status> <error>error</error> <error_type>type</error_type> <error_message>message</error_message> </error_status> </wfmcase> ------------------------------------------------------------------------------- If i leave a space before the first line in the xml document i get an error with the below code. If i remove the empty line at ...Show All
.NET Development WinFX and Interop
Hello everyone! Right i was wondering since WinFX (.Net 3) is part of the Subsystem in Windows Vista if its possible to use the Managed API framework to communicate with other running applications using User32.dll in .net 2.0 i have to use Interop to import the dll and manually managed the code. But since WinFX is a subsystem surely there is already a managed API for User32 or something I cant find anything about the new WinFX features or documentation on the new procedures, namespaces and classes. Does anyone have any links or ideas to some form of documentation or anything of interest Thanks So .net 3 is nothing more than .net 2 + a presentation / workflow layer. Damn looks like im writing a managed w ...Show All
SQL Server Annotations in design mode?
Is there any way to persist Annotations in design mode I'm considering using them to keep track of measure-group specific state, but I'm worried that every time I re-deploy my cube, I'll lose this info. Does anyone have experience using Annotations Are they only exposed via the AMO OM A collegue and I are looking at possibly adding this feature to BIDS through an open source project we are working on at http://www.codeproject.com/BIDSHelper unfortuntately this is not one of the features we have in the pipeline for the first release, but it is one of the things we have on our list of possible features. ...Show All
SQL Server Sorting on a measure within Multiple time calcualations
Ok, can anyone give me a hand with the following. I have a cube, with time calculations in it.. MTD, YTD etc I have created a calculated Measure that ranks each customer by the sales amount. I have a report like this created in Excel as a pivot table.. Fiscal Hierarchy 2007 Q1 P1 Time Calculations Data YTD YTD Pr Yr Customer Group Name Sales Amount Customer Rank Sales Amount Customer Rank A.D.I. LIMITED $10.03 96 AGCO AUSTRALIA LIMITED $6,453.16 37 $1,373.12 62 AIMS INDUSTRIAL $3,097.86 47 $2,486.35 52 AIR INTERNATION ...Show All
.NET Development Array.Sort, List<T>.Sort terribly slow on a real-life testcase, while ArrayList.Sort isn't
I've found out that the following data: 1,2,3,...,n-1,n,n,n-1,...,3,2,1 makes Array.Sort and List<T>.Sort work more like O(n^2) than O(nlogn). Here's the code: using System; using System.Collections; using System.Collections.Generic; public class Test { public static void Main(string[] args) { int n = 100000; int[] s = new int[2 * n]; for (int i = 0; i < n; ++i) { s[ i] = i; s[i + n] = n - 1 - i; } int[] a = (int[]) s.Clone(); DateTime start = DateTime.Now; Array.Sort(a); Console.WriteLine("Array.Sort: " + (DateTime.Now - start)); List<int> b = new List<int>(); b.AddRange(s); start = DateTime.Now; b.Sort(); Console.WriteLine("List<int>.Sort: " + (DateTime.Now - start)); ArrayList c = new ArrayList ...Show All
SQL Server How do I disable transaction logging in a stored procedure?
Greetings, I would like to turn off transaction logging for a long-running stored procedure. It is doing some one-shot utility work in a temporary table. If the stored procedure fails then I'll delete all the rows in the table. Is is possible to turn off (or at least minimize) the logging for a single stored procedure I'm looking at this from a performance perspective, thinking that doing no logging will speed things up a bit. The stored procedure will potentially update hundreds of thousands rows. Am I on the right track or barking up the wrong tree Thanks, BCB hello, everything that happens in the database are entered into the transaction log when you are in the full ...Show All
.NET Development validate IP
how can check if the given text was a valid IP format You could also use System.Net.IPAddress.TryParse. Here's an example: public bool IsAddressValid(string addrString) { IPAddress address; return IPAddress.TryParse(addrString, out address); } Creating the IPAddress may seem excessive if you're just doing validation, but it may perform better than using a regular expression. Your results may vary. ...Show All
Windows Forms ComboBox Binding Problem
Hi, I'm having problems binding a combobox to a .mdb database. I have a series of textboxes bound to the database so I know the database is connected. The combobox displays nothing or System.Data.DataRowView depending on what SelectedItem and SelectedValue to after reading back from the database. I have the properties ValueMember and DisplayMember pointing to the field I want to display. Can anyone help Thanks for clearing that up, but it's still not working. I set the DataSource and DisplayMember. I hve nothing to put in ValueMember. What I would like to do is Display the "DetectorID" on ComboBox and fill its list with a column from another database. Is there an easy way to do th ...Show All
SQL Server Draw marking line on Chart
I want to mark a value on the x-axis of a (stacked) bar chart. (So I want a horizontal line that is fixed on a chart.) What I tried so far is adding an expression that says: =260 to the dataset, and I added that field to the Data Area of the chart. Then I plotted that value as a line. This approach leaves me with 2 problems: 1. When the category grouping only has one group, there is no line, just a dot (or another marker you can select). 2. Because of the extra field in the Data Area of the chart, the legend holds useless information. Isn't there another way to plot a horizontal line on a fixed value of the X-axis I also took some screenshots so you can see for yourself. The charts display the ManDays per Year. The gree ...Show All
SQL Server Stop run in Stored Procedure for msg errors
Is there a way to stop the run of a stored procedure when a msg error occurs I've already got a Try...Catch setup, and is stops when an actual error happens (i.e. inserting a duplicate row). But when just a message occurs (i.e. msg 4864, which is a bulk insert error and no rows are inserted), the stored procedure runs as if the insert worked, and finishes the procedure. I need it to stop and process as an error so I know the row was not inserted. I'm running SQL Server 2005 Thanks, Laura This is certainly a bug. I was able to repro the problem. Basically, the try..catch seems to swallow the execution errors from bulk insert. Could you please file a bug using http://connect.microsoft.com with a sm ...Show All
.NET Development WebCam im VB
I wonder if its posible to control a webcam whit vb. If so, please tell me how to do it, or any link to learn how to do it Thanks in advance Today is the offical launch. I found this link http://www.microsoft.com/windowsserversystem/applicationplatform/launch2005/default.mspx ...Show All
Visual Studio Express Editions Whats wrong with this code
I am trying to display random images using this code and vs studio 2005 I am getting a name 'Directory' is not declared whats the reason. DKB Sub DisplayDie( ByVal picDie As PictureBox, _ ByVal face As Integer ) ' assign die image to picture box ' picDie.Image = _ Image.FromFile(Directory.GetCurrentDirectory & _ FILE_PREFIX & face & FILE_SUFFIX) did you import the System.IO namespace import it then you should be ok, otherwise you can do this: picDie.Image = _ Image.FromFile(System.IO.Directory.GetCurrentDirectory & _ FILE_PREFIX & face & FILE_SUFFIX) you could also... picDie.Image = _ Image.FromFil ...Show All
