Asen Asenov's Q&A profile
Visual C# Regarding DateTime
Hi, Following is a code snippet: DateTime dt = new DateTime(2005,6,30); DateTime newDt = dt.AddMonths(-3); I create "dt" object for the date 30th June, 2005 and subtract 3 months from it. Ideally it should return me 31st March, 2005. But it returns me 30th March, 2005. But if "dt" object is for date 1st July, 2005 and I subtract 3 months from it, it returns me 1st April, 2005. Can someone explain me this Regards, Asim ...Show All
Visual C# weill notr work
this code loads a dat set then intro a dat table. however the data has nothing in it . what could be wrong public void binddata() { //this function will be used to display data string error = "0" ; DataSet ds = new DataSet ( "XML Data" ); DataGrid dg = new DataGrid (); // DataTable dt = new DataTable(); PopPushXMLData xmldata = new PopPushXMLData (); ds = xmldata.gett ...Show All
.NET Development Application queries in a xml file
I want's to built a xml file e.g ApplicationDbQueries.xml which will create the name of all the queries file i.e <ApplicationDB> <include Queryfile="customer.xml" Name="Customer" /> <include Queryfile="Sales.xml" Name="Sales" /> <include Queryfile="Product.xml" Name="Product" /> <include ...Show All
Smart Device Development [deployment] The operation could not be completed
Hi. Running VS2005 Pro .NET CF 2.0 smartphone for the first time, I am getting the error "The operation could not be completed" as soon as I try to run the project and after selecting the platform/device I want to deploy my mobile solution to. The solution was working great. I believe this has some relevance with an issue I had yesterday when I was Remoting into the WS2003EE SP1 box, for the first time I had an error ...Show All
Visual Studio My VSIP task provider is broken on Whidbey Beta 2. Help!
I have a managed VSIP package that I've developed on VS.NET 2003. It works fine on VS.NET 2003 and used to work fine on Whidbey Beta 1 and all previous CTPs. Something appears to be broken on Beta 2 though. Here's what I have. My class implements IVsTaskProvider2 on VS.NET 2003 and IVsTaskProvider2 and IVsTaskProvider3 on Whidbey. In class's constructor I load images from the embedded resource and then follow with RegisterTaskProvider(this, o ...Show All
SQL Server Does not have permission to register endpoint
I came across with the problem that I cannot create an endpoint on Windows Server 2003 (SP1). It's said: Msg 7850, Level 16, State 1, Line 2 The user 'yyyyy\xxxx' does not have permission to register endpoint 'zzzzzz' on the specified URL. Please ensure the URL refers to a namespace that is reserved for listening by SQL. Msg 7807, Level 16, State 1, Line 2 An error ('0x80070005') occurred while attempting to register the endpoint 'Sec ...Show All
Windows Forms Thread Error!
Probelm: When I update the progress bar, with vs2005 b1 I've an error saying that the thread that tries to update the progressbar is not the sampe that has created the control. this is the code. Have I to create the control programmatically at& ...Show All
Visual C++ What is the difference between _T("string") and __T("string2")?
Thanks in advance! In VC6, which is what I have open, _T is the same as __T. These macros often have room for expansion, and it's possible that changed in a later version. You can right click on the macro and choose 'go to definition' to see where both are defined, and what they are. ...Show All
Visual C# DLL Import and Migrating Projects
Hi, I have got on a dev machine project which has a c# file which calls a c++ dll. This works fine . So nothing wrong with the way I am calling the c++ dll or anything wrong with the c# file. However , I need to move to a new dev machine. I have simply copied the project over (i.e. copied the project folder from ../Visual Studio 2005/Projects/). The c# prgram works fine. BUT when calling the c++ dll it is unable to locate it! Erro ...Show All
Windows Forms Notify property changed in Smart Tag DesignerActionMethodItem
Hello.. I am developing a smart tag for a control that holds a collection custom objects in Visual Studio 2005. I successfully created custom designer, which adds a DesignerActionMethodItem to the action list. This DesignerActionMethodItem calls EditNavigators method, that shows dialog window. In this dialog window a developer can edit the collection. Everything works fine. When the dialog window is closed, the control contains edited ...Show All
Visual Studio Team System code coverage "off road"
I've tried using the sample from http://blogs.msdn.com/ms_joc/articles/406608.aspx to get the off-road experience of code coverage. However, when I run the tests on my instrumented binary, I'm getting the coverage results for the test project instead of my instrumented binary. Am I missing something here! Can you send me information about TS-ing into your machine via email to munjald@microsoft.com I am pretty sure the problem is ver ...Show All
SQL Server Cannot see SQL Server 2005 Services in SQL Server Configuration Manager
I cannot see any services within "SQL Server 2005 Services" in SQL Server Configuration Manager. I am new to SQL Server 2005 and recently installed all of the SQL Server 2005 64-bit components on to a Windows 2003 64-bit server. I can create and view databases via SQL Server Management Studio. I can also start and stop the SQL Server service for the default instance via SQL Server Management Studio. But I should be able to start/stop the ...Show All
Software Development for Windows Vista Start the workflow from the "Break point"
In a sequential workflow. If the computer shutting down When a workflow instance is running,Can i run the workflow instance from the "shut down point". How to do it Have other methods Please help me! Thanks! You need to consider persistence service (e.g. SqlWorkflowPersistenceService) You can resume the workflow instance from the last persist point. Refer to the persistence service samples in SDK samples. ...Show All
SQL Server Migrating form access to SQL
I am facing problems in migrating my application from Access to SQL. Few of the fuctions like CBDATE (userdefined functions) are not working. Please let me know how to overcome this problem. Thanks Yeah, I would assume that to be the case...problem would be if the VBA function is doing anything you can't do in T-SQL...then it would be more difficult... ...Show All
.NET Development What's a good way to add record to an xml file
Would anyone help me about "How to add record to an xml file" I could add ONLY one record to it using Serialization, but that record will be updated by updating or creating a new instance of the serialized object, i want it to be added to xml file like a log file for exmple. Woth tahnk. Howdy... why don't you look at creating an object collection that contains your 'record' object. Just serialise and de-serialise as req ...Show All
