Dea Cris's Q&A profile
SQL Server What version: Enterprise manager or Management Studio Express
This may be a dumb question but I have searched and haven't found an answer to it here yet. We are planing to get SQL Server 2005 for a specific purpose.We have several existing stand alone SQL Server 2000 database servers already. I have Enterprise Manager (2000) client installed on my PC. I recently installed SQL Server Express (2005) on my PC to get to know about new features. I have run into problems (BCP specifically) with having two versions of C:\Program Files\Microsoft SQL Server\80\... and C:\Program Files\Microsoft SQL Server\90\... on my PC. Is there any point before or after we purchase Standard version of SQL Server 2005 when I can do away with C:\Program Files\Microsoft SQL Server\80... and/or uninstall Enterprise manager In ...Show All
Visual Studio Tools for Office CheckOut and CheckIn customization
Hi folks, Is there any way to intercept Documents.CheckOut and _Document.CheckIn methods in Word 07 I'd like to provide my own document management services, but there doesn't seem to be a way to replace SharePoint access code with my own. I'd also be interested to hear any alternative ideas on how to transparently load/save documents from remote server. Cheers, Alex. With Word 2007 and Ribbon, you can override built-in commands. Basically, you add your own callback for a built-in control on the Ribbon. The background on this is explained here: Customizing the Office (2007) Ribbon User Interface for Developers (Part 1 of 3) Customizing the Office (2007) Ribbon User Interface for Develop ...Show All
.NET Development Error when writing to XML node
Hey all, il get an error i cant get rid of while i writing to my XML file. Error 1 Unexpected XML declaration. The XML declaration must be the first node in the document and no white space characters are allowed to appear before it. C:\DB\December.xml 1 4 Miscellaneous Files And the code: string path = "C:\\DB\\December.xml" ; XmlDocument hoppa = new XmlDocument (); hoppa.Load(path); XmlNode rootNode = hoppa.SelectSingleNode( "December" ); string klickatdatum = this .calendar.SelectedDate.Day.ToString(); if ( this .CheckBox1.Checked == true ) { rootNode.SelectSingleNode( "Dates/" + "m" + klickatdatum + "/" + "t09.00" ).InnerText = "Bokat" ...Show All
Visual C# WindowsApplication1.exe has encountered a problem and needs to close...
Hi. When I Create new C# WindowsApplivation Project in VS.net2005 and Compile it, I receive this error : WindowsApplication1.exe has encountered a problem and needs to close….. I write no Code in this project and just after the Project Creation I used "Start without Debuging" for Compile it. What should I do Thanks. Could be a .Net issue. Could be something else running in Windows such as memory manager or anything that is active in memory and misbehaving. Can you run the application in debug mode When you build the application what is the output Have you tried reinstalling yet Wont hurt if you have the time. ...Show All
Smart Device Development inet_ntoa functionality in C# CF 2.0
Hi, I'm trying to implement the native inet_ntoa() functionality in C# to convert an IP address of type in_addr to a .NET string representation. Is there a .NET API for this Any references/examples will be greatly appreciated. Thanks. Have you looked at the System.Net.IPAddress class Try something like this: long netorder_ip = IPAddress.HostToNetworkOrder(hostorder_ip); IPAddress ip = new IPAddress(netorder_ip); Console.WriteLine("ip is " + ip.ToString()); (note: the IPAddress constructor assumes network order, so if it's already in network order, you can leave out the first line). Hope that helps, --Jeff ...Show All
Windows Forms Set focus to textbox after form activated.
I have a mult. line comment textbox, I want to set the edit position to the end of the textbox after the form is activated. Currently, I only set the txtComment.Focus(), what it does is highlight all th text in the comment textbox. Which doesn't look good, it should have the edit position at the end of the textbox so that user can edit the comment right the way. Now, they need to click the right/bottom arrow key before they can edit. simple set the SelectionStart of the textbox to the last character position: VB.NET: Me.theTextBox.SelectionStart = Me.theTextBox.Text.Length C#: this.theTextBox.SelectionStart = this.theTextBox.Text.Length; ...Show All
Visual Studio Express Editions migrating from standard C++ templates to Visual C# generics
Hi. I've been programming on C++ for a few years and now I'm getting started with C#. I must say that this language, plus the garbage collector, saves lots of headaches when programming. However, I seem to miss a subtle, but highly useful feature from C++. In C++ I could do something like that: // Note that this code is C++, not C# class n_aryTree<class T, int N> { private: n_aryTree<T, N> children[ N ]; //Array of pointers ... Now, if I try to do something similar in C#, I find that I can't: the T parameter is no problem, but the N one is impossible to put there: it seems to be that C# generics only allow type parameters (the ones I used to declare in C++ as being of the 'class' type). Is there any way to get a equivalen ...Show All
.NET Development Single quotes in expression.
Hi! I must search for "9 D'OCTUBRE" in my DataTable, but when i do : DataRow[] dra = MyDataTable.Select("NAME = '9 D'OCTUBRE'"); I get a exception by the single quote between 'D' and 'O'. How do a select with a single quote parameter Regards. With MyDataTable.Select("NAME = '9 D''OCTUBRE'"); works fine, thanks! Thanks. ...Show All
Visual C# Why did I only get part of what I intend to get?
No error was complained! The following program is to write a whole year's month,day,weekday in a MSSQL table. But somehow, for many times I have tried, but each time I got only part of what I intend to get: the whole year with 12 monthes, instead, I only got 3 or 4 months' content in the table. Can anybody tell me why calendar.dll using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using database; namespace calendar { public class calendar { private int _nian; //year private int _yue; //month private int _ri; //day private int _xingqi; //weekday private string _errorInfo; public int nian { get {return _nian;} set {_nian=value;} } public ...Show All
Game Technologies: DirectX, XNA, XACT, etc. HLSL shader debugging in PIX
Anybody tried out HLSL shader debugging in PIX (December 2006 SDK) I'm trying on the C++/DX9 Samples that ships with the SDK but cant get PIX to go into debug mode for vertex shader debugging. My repro case: - Compile any sample in debug mode with DEBUG_VS defined for the preprocessor (I tried Anitalias, BasicHLSL, and HDRLighting) - Start PIX - Load the debug executable in PIX experiment (F12 mode) - Frame capture of the app - Go to any draw call in PIX - Select a vertex and choose debug vertex (you can also go via pixel debugging path) - I get "An error occurred while preparing to debug the shader" Anything wrong here Thanks. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What does creators club include right now?
I'm a little puzzled about what the creators club actually includes, I've checked the FAQs and can't really find an answer. I have however managed to find the following: "The XNA Creators Club is available on Xbox LiveR Marketplace for $49 (U.S.) for a four-month subscription, or $99 (U.S.) for an annual subscription. Both subscriptions provide aspiring game developers with access to thousands of game assets from Microsoft and key partners such as Turbo Squid Inc., as well as white papers, specialized starter kits, samples and technical product support to help turn Your World, Your Game into a reality." I signed up for a year because it sounds like quite a good package, however there seems to be no information provided on ...Show All
SQL Server Query Notification not fire all subscriptions...
Hello all, We have encountered a weird problem; we have an application that registers to several queries for notification. For several weeks everything worked fine, any change to any query result in the database triggered the notification event, but since yesterday the mystery began… since yesterday not all changes triggers events , changing one table raise the notification event, changing the other doesn’t , all seems fine in the database , the application reports that all queries were registered successfully , in the subscription view in the database we can see that all the queries that the application subscribed to are present… What can be the problem Is it something in the database Can it be a problem in our application, ...Show All
Visual Studio error MSB4018: The "GenerateResource" task failed unexpectedly
I have a Smart Device application that is generating the following errror when I attempt to build. I would appreciate any feedback in how to debug this error, or what might be a typical cause of this problem. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: The "GenerateResource" task failed unexpectedly. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(1616,9): error MSB4018: at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e) C:\WINDO ...Show All
Visual Studio IVsProject3.AddItem method
Hi All, Does anyone know about the parameters of this method I dont understand with the documentation in MSDN. And a sample code would be so helpful to me. Thanks! Herru ...Show All
Visual Studio Express Editions ..../lib/vc_lib/mswd/wx/setup.h
Hi, I am stuck here, and I don't know where to find this- mswd/mx/setup.h - file,or make it or modify some other file for go farrther.. If someone have this file or know where to find it Linker is ok I was chechk at least 100 times , but setup.h files wich I have are or wrong,or I doing something wrong. I use converter from VC++ 2005 Expres but I can start this example : http://www.codeproject.com/cpp/howtofft.asp Anyway I need some help, thanks in advance for any tip. stdafx.cpp d:\program files\microsoft visual studio 8\vc\include\wx\setup.h(140) : fatal error C1083: Cannot open include file: '../../../lib/vc_lib/mswd/wx/setup.h': No such file or directory Build log was saved at "file://c:\Documents and ...Show All
