Kelvin Tse's Q&A profile
SQL Server Ensuring Data Integrity on an Events table
Ok, my table ORDER_EVENTS is defined as: orderNum- varchar(14) , division- int, poNum- varchar(20), statusDesc varchar(200), statusChangeDate-datetime, sequence- int, statusUser- varchar(20), statusFlag- bit This table will hold the change events that happen to a specific order in the ORDER_HEADER table. The foriegn keys are orderNum/division (being the company division) and there is no primary key. The relationship from ORDER_HEADER to ORDER_EVENTS is ONE to MANY. There are 65 unique events which can happen in no particular pattern and more than once to any single order. My datasource an Old AS400 system that currently has 2.4 million E ...Show All
Visual Studio 2008 (Pre-release) Databinding with WCF
Hello, is possible to do databinding with WCF My scenario is the next: I`d like have a service in WCF that return a collection of objetcs (for instance, class Person), and the client (Avalon application) make databinding with the collection, if the cliente make any change in the information, this information has change in the collection of objects (Person) in the service. A functionality looks like a dataset in a windows form application where you change the information in the UI and the dataset change his information Sorry my english is not very well. Thank you for the help. Hi, Yes, data ...Show All
Visual Studio 2008 (Pre-release) WPF and DirectX and what's possible
I'm curious if anyone has a link detailing exactly what you can and cannot do in WPF vs DirectX. For example: If WPF is a thin wrapper over DirectX and I don't find what I'm looking for, will I be able to access the DirectX COM interface and get access to what I need and: I assume shaders aren't supported in WPF, so again, will I be able to hook up the plumbing for shaders, or will WPF have the same fate as the fixed-function pipeline (Where the shading algorithms are fixed making it difficult to create unique looking 3D.) Is 3D in WPF going to be restricted to diffuse/specular lighting Regards. MS has st ...Show All
Visual Basic FindBy Method not generated
Hi, I was reading the following: Dim customersRow as DataSetClass.CustomersRow customersrow = DataSetInstance.Customers.FindByCustomerID("ALFKI") customersRow.CompanyName = "Updated Company Name" customersRow.City = "Seattle" Found In: http://whidbey.msdn.microsoft.com/library/default.asp url=/library/en-us/dv_raddata/html/d5eea200-9bfa-4956-bf7c-08dd6fb6663c.asp But my data set doesn't seem to have the FindBy methods generated - any idea how i'm supposed to go about getting a data row out of my dataset or datatableadapter to edit it Evan Well i discovered that for variable names, who are the sa ...Show All
Visual C# how can I put in a procedure to download a file
I have been searching and searching - but it is hard to find anything useful when the key word is "download" Anyway here is what I would like to know how to do If I have a WebSite created in VS2005 and I add a button to Default.aspx, I would like to have a file to be downloaded on the user's computer in a directory that they choose. I would think that this should not be too hard but I just can't seem to find out how to do this no matter how hard I search. thanks I think the problem may exist in having the file ( a simple test.zip ) located in the App_Data folder - When I c ...Show All
Visual Studio Error 1304 when installing .NET Framework 1.1
Hi All The installation of .Net framework fails with the error 1304. "Error writing to file: Microsoft.Vsa.dll. Verify that you have access to that directory". I see the directory %WINNT%\Microsoft.NET created and that file "Microsoft.Vsa.dll" present in it when this message occurs. I'm running under Windows XP SP2 and the partition is formatted as FAT32, so I think there should be no problems with access rights. Thanks in advance Leonid Hi, Does it work if you'll try to manually delete or better to move it somewhere else I think your file is Read-Only on disk. ...Show All
Windows Forms how to let the property browser update a property
How to let the property browser update a 'composite' property just like Size when Size is changed, the Size.X change immediately. or changing Size.X makes the Size also change at once. I implement a phone numble class and its type converter, there are properties inside it, such as area code, number. when I change the area code, the phone number doesnt change unless i click on the phone number. Thanks a lot. Hi, Add the RefreshProperties attribute to your property like this: [RefreshProperties(RefreshProperties.All)] public int AreaCode { get { return _areaCode; } ...Show All
Windows Forms creating expressions dynamically?
Is there an equivalent function in VB to eval() in javascript I vaugley rememebr being able to use eval() to build expressions on the fly. example: for i = 0 to arSeg.length -1 for j = 1 to 4 if instr(arSeg(i),j)<>0 then result = eval(seg&j) ' result should be the value of variable ...Show All
Visual Studio Missing Icons and Bad Links in MSDN
Hello. I'm having trouble with my installation of MSDN. Some of the little icons that should appear next to some of the links don't show up, and many of the links don't work. When the links don't work, I get a JScript error "Object does not support this property or method." If I attempt to debug it, it's always a simple, one-line, code block, such as; alink_301.Click() This is an example of what the missing icons look like. The little box, next to Look here, should be an icon; Send feedback to MSDN. Look here for MSDN Online resources . But other icons Do show up, as in this case; Platform SDK: Perf ...Show All
SQL Server ForEach Config validation errors
I have a Config file for a Data Flow that is utilizing a Configuration file. I have specified in the Configuration file to capture the Directory and FileSpec for the ForEach Enumeration. When I open the package, I get the following error: Warning 1 Warning loading ISOTypeLoss.dtsx: The package path referenced an object that cannot be found: "\Package\Foreach TC03 File.ForEachEnumerator.Properties[Directory]". This occurs when an attempt is made to resolve a package path to an object that cannot be found. i:\visual studio 2005\projects\claimtran\isotypeloss\ISOTypeLoss.dtsx 1 1 Warning 2 Warn ...Show All
SQL Server Random Failure of Lookup in Pre-Execute with 0x8007000E
I have a SSIS package that I can run three times in a row and various lookup components will return: Error: 0xC004701A at Foo, DTS.Pipeline: component "Lookup Date" (166) failed the pre-execute phase and returned error code 0x8007000E. Without changing any input data or the package I can just hit F5 again and occasionally get past this or sometimes get stuck on it. Any ideas what that error code means I am getting similar errors, Two examples - [DTS.Pipeline] Error: component "Lookup Dim_ManagedStatus" (37) failed the pre-execute phase and returned error code 0x8007000E. [DTS.Pipeline] Error: component "Lookup Dim_BusinessTypes" (4 ...Show All
Visual Studio 2008 (Pre-release) Determining Channel
Looking through the Intermediary Router sample, I was trying to figure out how the SoapRouter was called correctly. Specifically, there are 4 different ProcessMessages (e.g. 1 for simplex, duplex, request/reply, etc). Where is the logic that determines which one is actually called. It must be in the pipeline somwhere that I am not seeing. Thanks for any help, -Mathew Nolton Good that you figured it out. I am responding so others who have the same question can know how the sample works. The router has different endpoints for the different kinds of contracts it implements - one for each mep it supports. ...Show All
Visual C++ Need a little help. Take a look please
Hello! I'm a new to Visual Cpp, so please help me, if you can. I need to write to following sub-routine to count: x r y s =(x 1 a 1 +x 2 a 2 +x 3 a 3 ) r (y 1 a 1 +y 2 a 2 +y 3 a 3 ) s where x i ,y j =digits from another program module, S, R = should be entered by operator, a=unknown dogits. the program task is: to open brackets and make re-combine digits into next order: x r y s =(a j 1 a i 2 a k 3 ), where i,j,k=degree of the a x Thank you very much, I really need this code heh, that's right pow can help when you know all of your digits, but not in my case, I need to solve something like this: (500+300+a) ...Show All
Windows Forms Draw translucent rectangle over top of child controls
Hi, I'm drawing a translucent rectangle in the paint event handler for my form, but I want it to draw over the top of any and all child controls on the form. Currently, the rectangle is rendered 'underneath' the child controls instead. I tried using a transparent panel, and drawing into that, but I've found that the controls under the panel aren't show ...Show All
Windows Live Developer Forums Trouble running activities/games in messenger
i tryed to use those apps that are on this page: http://www.worldsbestapp.com/ but the problem is that they wont start. messenger gives an error - "MSN Messenger cannot start this program. Please try again later" what should i do thanks The purpose of this forum is to discuss MSN and Windows Live application development using the Messenger Activity API, and Windows Live Bots. If you have technical support questions about using MSN Messenger or Windows Live Messenger, please check the following resources... Messenger Technical Support is available on the Messenger newsgroup: http://support.mic ...Show All
