Sarah Cameron's Q&A profile
Microsoft ISV Community Center Forums Can't open regedit
Hai.... Why if I want open regedit (run>regedit), and then show message error like that The application failed to initialize properly (0xc0000005) Please anybody help me... Jebat Thanks Thanks for the quick response. I have tried this with no luck. Should i now try deleting the cmd.exe file contained within the System32 folder (i have another cmd.exe in windows\software distribution\download\<a folder name with letters and number>) What will this potentially do, and is there a way to 'reinstall' cmd.exe if it messes things up thanks ...Show All
Visual Studio 2008 (Pre-release) ServiceDescription and ServiceModelSectionGroup
Hello, I'm new to WCF and not aware if my question has been asked before. I'd like to know if there's any simple way to create a ServiceDescription from ServiceModelSectionGroup, and also the other way around. Cheers. IN. No, the two entities are not one-to-one (e.g. a ServiceModelSectionGroup is the config OM for an entire config file's worth of ServiceModel stuff, including multiple services and clients). What is the bigger picture (what are you trying to accomplish) ...Show All
Visual C# string and object class
Hai, string and object are classes of System namespace, System.Object, System.String. However when coding we uses *o*bject and not *O*bject. But for other classes i.e; System.Stream, we write code as Stream and not stream. What is the reason, it just a confusing to differentitate between classes. What Java did was right, all classes starts with caps letter, methods starts with low cases. It is a good thing ........... Hi Saami, In C# object and Object are same similarly string and String, C# has given us alias to help us. :-). you can find complete list from http://msdn2.microsoft.com/en-us/library/x53a06bb.aspx Regards Chitrsen Aujikar ...Show All
Community Chat 2007 Feels Like Heaven
2007 Feels Like Heaven. I hear the party children give this year a name you spell with Letters. "Feels Like Heaven" Well, that's also a rhyme. Teach old people to replace the # symbol with numbers. Start with making the newest most modern method 1 next= I don't know anything about code sample. That's why I'm furnishing you this free information. I tried to figure it out for a while too. I think I found the answer ... ...Show All
Visual Studio Team System Exception thrown when accessing static instance of out of process singleton COM server from more than one test
I am trying to use unit tests to test an interface class I have written to an out of process singleton COM server. In the test I instantiate a static reference to my singleton COM server. Each test then performs different operations on that singleton server. When I run the tests one at a time everything works fine. If I try to run all the tests at once then I get the exception "System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used" on all of the tests except the very first one. I tried the identical tests in NUnit and everything worked fine. It looks my RCW is getting Disposed between tests even though the RCW is defined as static. Any fix or workaroun ...Show All
Visual Basic I need help with saving URL's into my combo box after i visit them
I want to know how to save recent web pages visited in my webbrowser. My webbrowser is called WebBrowser1 and my combo box is called combobox1 Dim URL As String = "http://www.google.com" Me . WebBrowser1 . Navigate ( URL ) Me . ComboBox1 . Items . Add ( URL ) ...Show All
SQL Server Matrix Report and Expression on field
I have a matrix report that has two columns, and one of the colums has the following expression for background color: =IIF( Fields!Percentile.Value >= .10, "Yellow", "White") Basically if the percent is greater than 10 highlight the field, for some reason i have some fields that dont show up yellow, see below: http://duhaas.googlepages.com/percent.Jpg your colour expression needs to wrap the field reference with the same aggregate function as the textbox value expression. So, if you are using: =sum(Fields!Percentile.Value) as your value then change the colour expression to =IIF( SUM ( Fields!Percentile.Value ) >= .10, "Yellow", "White") this is because when no aggr ...Show All
Visual Studio 2008 (Pre-release) ObjectDataProvider.Refresh() thread safe?
I am updating status information from several independent threads into a central status collection class. I have some of that status data bound to UI elements, and I've found that I need to call Refresh() in order to force the display to update. This is all fine and good, but I'm wondering if it is OK to call Refresh from several different threads. The code seems to work OK, but I don't want some weird race condition cropping up as my code gets more complicated. Actually ObjectDataProvider.Refresh() method will handle the threading issues behind the scenes for you, Refresh() method will internally call BeginQuery() method which will delegate the query work to the appropriate thread based on value of IsAsy ...Show All
Visual Studio reportviewer no data
hi all, i've done a couple of reports in visual studio using sql reporting services. i call these reports in a web app, using a reportviewer control. the reports are run on one of our servers. when the page containing the reportviewer opens, no data is displayed. but if i choose to export the report data into any of the formats(xml, csv, etc.), the data is perfect. i'm sure it must be a setting that i'm missing somewhere. any help would be much appreciated. ...Show All
Visual Studio Express Editions from database to excel
Hi. I have 3 colums in my database: Machine#: Regularhours: Overtimehours: 444444 5 6 555555 5 6 444444 4 0 I want to display (maybe msgbox or write to Excel file) only not repeating Machine# with overall Regularhours and Overtimehours. Secon question: how can I update my database Thank More specific SQL sum statement reference http://msdn.microsoft.com/library/default.asp url=/library/en-us/tsqlref/ts_setu-sus_414d.asp has examples in the documentation. ...Show All
SQL Server Report Builder Report Possibility?
This may not be possible, but I wanted to see what some of the experts' opinions are here. One of our users has created a report in Report Builder. I want to take this report, post it to a folder and allow her employees to run the report. I've put it in a folder called "Reference Line Reports" and gave browser permission to a list of users. These users are able to run the report (without having access to Report Builder or the report model). When they try to utilize the "infinite clickthrough" functionality, I get the following error. The permissions granted to user '<domain>\<username>' are insufficient for performing this operation. (rsAccessDenied) If I give one of these user ...Show All
SQL Server Deleting Older rows in the table
Hi, I have a table which has around 50,000 rows. Can I delete the rows older than one year If no, Can I delete the last 25,000 rows (older rows) from the table Can you assist me with the SQL Statement to do this Thanks Santhosh Does your table have a date/time column If so, it's easy: DELETE FROM YourTable WHERE YourDateTimeColumn < DATEADD(year, -1, GETDATE()) ... if not, it's impossible -- there is no way to find out when a given row was inserted. -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 -- <Santhosh Pallikara@discussions..micr ...Show All
Smart Device Development New mail notification doesn't work, IMsgSto:Advice() + fnevNewMail.
Hello everyone, I am trying to get notification of a new incoming email event using CEMAPI under WM5.0. I call IMsgStore::Advice() with the flag – fnevNewMail but I don’t get any notification back. Other flags (e.g. fnevObjectCreated) do work. Is somebody knows how to deal with the problem Thanks, Asher Yes, I encountered the same situation with you, but basically, the mail what i want has a special format in subject text, so it isn't deathful. ...Show All
Visual Studio Tools for Office Difficulties running Word Add-ins with VSTO CTP v3
I have a Windows XP, Word 2007 PC. On it I have installed Visual Studio.Net, WinFX CTP (Feb.), VSTO, followed by VSTO CTP. I actually had this setup working a while back (in May), and at the time created a few VSTO Word add-ins that ran perfectly in Word 2007. But now I cannot run any of the add-ins I created previously on this PC. When I open one of the .sln files, I get this VS error: "The type initializer for Microsoft.VisualStudio.Tools.Applications.Hosting.VCG threw an exception." The project does open, but it contains a warning: "Warning: The generated files could not be loaded and have been recreated." (And there was at one time a project warning regarding WindowsBase.dll but it went away.) I can build t ...Show All
Visual Studio Express Editions Float argument in function problem
I write C code andhave the following code extract Addoperand(numvalue); A simple printf confirms that the float numvalue is correct in the calling function but then in the function int Addoperand( float numarg) { printf( "numarg=%f\n" ,numarg); I see that here numarg is incorrect. Why can't a simple functionargument work Similar examples with char argument works. In ansii C this really should work I think. I use %f both before and after the function call. The correct value is 2.0 which is printed just before the function call. Then in the function the value is stated (variables window) to be something like 10E-35 and is printed as 0.0. So clearly the value I use as argument is corrupted inside the calle ...Show All
