Barry Kwok's Q&A profile
Visual Studio Express Editions C# - How to add, edit and remove treeview items on the fly
Greetings! In my chat program, I need to go check the time intervals between one message and another for every user in the chat channel. I can already do that getting only one interval, but now I decided to store 9 intervals (for detecting bots, which use only one interval, or people who know how to configure them can alternate those intervals for avoiding the rules). I can store them, but I don't know how to display them. I'm thinking on a window with a TreeView control, and that each user is a node, and the 9 time intervals a subnode each one. However I don't know how would I do that exactly. I can make the treeview, create a node and the 9 subnodes, but how would I go into editing the subnodes in an already-existing node, on the fly , ...Show All
Visual Studio 2008 (Pre-release) Is logMessagesAtTransportLevel broken?
I'm using the latest bits, September 2006 CTP and cannot get WCF to log messages at transport level. If I set logMessagesAtServiceLevel I get the expected behavoir, however, logMessagesAtTransportLevel does not even produce a log file, neither on the client or server. Here's the config section: < system.diagnostics > < sources > < source name = " System.ServiceModel.MessageLogging " > < listeners > < add name = " messages " type = " System.Diagnostics.XmlWriterTraceListener " initializeData = " C:\WCFLogs\ServiceMessages.svclog " /> </ listeners > </ source > </ sources > ...Show All
Visual C++ Page file usage question
My program is running a numerically intensive loop. Within this loop I am continuously allocating and deallocating memory. When I run the program and monitor its behavior using the Windows Performance Monitor app, I notice a gradual linear increase in the page file usage. It just keeps climbing indefinately with no end in sight (like a ramp function) as long as I let the loop iterate. When I shut the app down the page file usage drops back to the original value. What does this mean (what are the possible causes of this) Thanks for any help everyone. Hello Re: Page file usage question As "Simple Samples" points out, such questions are really outside the scope of this foru ...Show All
Windows Forms WebBrowser control has problems navigating to a # fragment
Dear all, I am trying to browse to a bookmark in a local file, but the WebBrowser won't do it! e.g. Uri uri = new Uri(" file://c:/testdoc.mht#bookmark1 "); webBrowser.Navigate(uri); The webBrowser translates this to " file://c:/testdoc.mht%23bookmark1 ", and then comes up with a "The page cannot be displayed" error. This is so annoying. Funnily enough, if I have a loaded document with a hyperlink to a bookmark such as above and I click on it, the '#' character is left alone, and the navigation works fine. Is there any way to stop the webBrowser control from changing the '#' to '%23'. David Try using .Navigate(string) instead of .Navigate(Uri). F ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX Integration With MSVS2005
Hello, I Did Downloaded The Latest Version Of DirectX SDK, When I Did Installed It, It Doesn't Integrate With MSVS2005 But Only With MSVS2003. Why DirectX integration isn't in VS2005. With the exception of shader debugging, everything you need is still accessible. If you're looking for starter projects, look in the DirectX Sample Browser. ...Show All
.NET Development Remote WMI data gathering without username and password
Is it possible, once I have mapped a drive to a remote computer, to query that remote computers WMI without having to specify my username and password. Forgive the terminology, but I guess I am asking if I can "piggy-back" that connection/authentication in some manner Any guidance would be greatly appreciated. ahmedilyas , Thank you for your response. I think I understand what you are saying, but in order for your method to work on a remote machine, The account that you are currently logged in as on the local system must have access rights on the remote system as well. I am saying that the account that I am logged in locally as may or may not have access to the remote system, but I will al ...Show All
Windows Live Developer Forums Changes in AdCenterOrder?
Is it me or there was no announcement for a new property in AdCenterOrder --> private boolean targetExists; This was raising axis deserialization errors for AdCenterOrder objects... Hi, The CustomerManagement WSDL change (to include couponCode) was communicated in November. The change is reflected in the API topic at http://msdn2.microsoft.com/en-us/library/aa983133.aspx . The targetExists issue for AdCenterOrder is currently under review. We apologize for any inconvenience. Thank you. Walter Poupore - MSFT Microsoft adCenter Programming Writer. ...Show All
Windows Forms Object reference not set to an instance of an object
When I click on the Add new datasource link in the datasources window the Data Source Configuration Wizard starts. After I select database as the application to get the data from an error dialog shows that states: "An unexpected error has occurred" "Error Message: Object reference not set to an instance of an object" What's happening. This used to work fine. Hi I have now the same problem, with VB.NET 2005 standard edition. I also reinstalled, and it still happens. PLEASE HELP! ...Show All
Visual Studio Team System Performance Problem #2
We've got a project with 3200 objects. The project contains about 10 errors. When we attempt to double-click on one of the errors to bring up the file, Visual Studio will hang for anywhere between 3 and 10 minutes. The Task Manager shows 'devenv.exe' consuming about 90% of CPU resources for this entire time. We're using the RTM version of DBPro. Amos. Very interested in the outcomes of this, our project is of a similar size and our performance is also suffering. Our DB guys are spending an average of over an hour looking at "frozen" or even blanked-out interfaces each day. 2-2.5Gb RAM, dual-core processors.. ...Show All
SQL Server ODBC Error: SQLState 28000 & Server Error 18452
I have an application that connects to SQL 2000 thru ODBC. When our administrators login on the workstation the application works well. But when ordinary users login they get the following error. SQLState: 28000 SQL Server Error: 18452 Login failed for user ". The user is not associated with a trusted SQL Server connection. I have restarted SQL Server and IIS to no avail. We are using SQL and Windows auth mode. Any ideas This just started this morning. Since it just started, perhaps your users passwords expired or were reset, and now your client machine no longer sees them as trusted users. I'm sorry I ...Show All
SQL Server How do I repeat row headers on new page?
I have a report which consists of a table and overlaps the page from left to right. I would like the first row of my table to repeat on the new pages. What is the best way to achieve this Right Click the table you want and click properties. The properties box should open. At the bottom of the box there is a section that says "Header/Footer" under that there are 3 options. Check the "repeat header rows on each page" selection. That should do it. You might want to do the scrolling header too if your table is extra long. Make sure you selected the whole table and not just a row or column, because then the properties bar will slide out, instead of the properties box for the whole ta ...Show All
SQL Server Query goes from 1 second to 40 minutes with only 1 more record??
I have a very strange problem where I have a simple select count(*) with a handle of of joined tables that works fine and returns a count of records in under 1 second when the criteria in the where clause limits the count to 36984. But if I change the criteria to where the number of records would be 1 higher, 36985, the query takes ~40 minutes! Here's the query SELECT count(*) FROM AT JOIN Al ON Al.AlID= AT.ALID JOIN DProfile ON Al.DProfileID= DProfile.DProfileID JOIN Label ON DProfile.LabelID = Label.LabelID JOIN PricingTier ON PricingTier.LabelID = DProfile.LabelID JOIN PricingTarget on PricingTarget.PricingTargetID = PricingTier.PricingTargetID JOIN ATP ON ATP.PricingTierID = PricingTier.PricingTierID WHERE PricingTarget.Target ...Show All
.NET Development Bug? : Sgen breaks web-service serialization
I am using the noaa weather web service and it works fine if I have not run sgen on the assembly. I have sgen disabled in the project settings and instead run it explicitly in the main build. I run sgen using the command: sgen /a:myassembly.dll /force /compiler:/keyfile:myassembly.snk This creates an [assembly_name].XmlSerializers.dll and when running the application again, the same call to the web-service fails with the following exception. This is internal to the web-service code so I'm stuck for what to do other than not run sgen: System.InvalidOperationException: There was an error generating the XML document. ---> System.ArgumentException: Item has already been added. Key in dictionary: 'myassembly.gov.weather.www.productType' ...Show All
Visual Studio 2008 (Pre-release) [WPF] Performance problems on Windows Vista Pre-RC1
I am currently working on WPF. Today, I installed the pre-RC1 release of Windows Vista (build 5536) and I experienced some strange behavior. The system runs pretty well with aero graphics and all cool stuffs (I have a T43p with FireGL V3200), but when I am running WPF applications using tranform animations (rotations, translations...), the system turns very slow (even the mouse pointer moves are not fluid). Is there a way to detect what are system capabilities for WPF (such as hardware Transforms or stuff like that) to compare my XP and Vista working environments (maybe it is a Graphic Card driver that does not provide hardware transformations for 2D objects...) We're having the exact same problem wi ...Show All
Visual Studio Team System Is the official version released or not yet?
A colleague of mine said there is only the Beta available to download on the MSDN site. Can you please tell me if the official is available and how can we get it If not when is it expected to be available and where would it available from MSDN site only Thank you Yes it is final (since December last year). The Trial Edition (180 days) is available at http://www.microsoft.com/downloads/details.aspx FamilyID=7de00386-893d-4142-a778-992b69d482ad The Trial Edition can only be installed if you have either Visual Studio Team Suite or the trial version of Team Suite installed already. If you are a Team Suite Subscriber or Team Edition for Database Professionals Subscriber you can a ...Show All
