A81's Q&A profile
Visual Studio 2008 (Pre-release) .xaml.cs files cannot be edited after installing orcas
Hi I use VS 2005 RTM + Jan CTP SDK + orcas to build WPF applications. I have a strange problem - the .xaml.cs files are hard to edit. They will not accept most keystrokes unless I type a lot of times (strange but true and not a problem with my keyboard), but some keys are always accepted (for example: DELETE key and also CTRL+C, CTRL+V - copy&paste works). Any ideas I'm told: This * sounds * like some sort of conflict with our copy/paste commands on the designer. We need to investigate. A possible work around is to right click on the .cs file and choose “open with”. Select the source co ...Show All
Visual Studio Team System Nightly Build and Deploy - possible through Team Build???
We have a solution that contains a Web Service project, a Windows Client project, and a Class Library that both the Web and Windows apps reference. I wish to set it up so that every night the latest version in Source Control will be compiled on our build machine, and also installed/deployed on our build machine so that our testers can hit against it. I know how to get the team build going, but I don't know what's the best way to get it to automatically deploy after its done building. What would be the best way to do this Hi Optikal! There are 2 parts to the answer: 1. Scheduling your build ...Show All
Windows Forms determine if toolstrip is overflowing
is is possible to determine if a toolstrip is overflowing Or simply check the ToolStripItem.IsOnOverflow property. if (tsi.IsOnOverflow) // Item has overflowed ...Show All
SQL Server what is the meaning of "64(error not found)" in sys.transmission_queue
as Christopher Yager say in "Need distributed service broker sample", I also test sending messages between two SQL Server 2005 instances,and after I setup the test environment with instance1 and instance2,I find queue [q2] in ssb2 can't receive message from ssb1. when I query by "select * from sys.transmission_queue",I get some message records that transmission_status is "64(error not found)". I don't know what this mean,succeed or fail can you help me thanks a lot. also,I use sqlserver 2005 June CTP. Anthony Yes, it can. If the two SQL Server instances are r ...Show All
Visual FoxPro How to upgrade a menu from FoxPro for DOS
I'm a very old, retired, CCOBOL and ASSEMBLY programmer with some experience with dBase and FoxPro from the command window. A charity has asked me to get an old FoxPro for DOS program working on a donated used computer which contains VFP6.0. I have gone over the data files and they seem to be OK. The indexes have been converted to CDX type and that works. The old DOS program worked by relying on append and browse commands which all work. The needed reports were all hard coded with space() to fill lines nicely and they work. The only thing that doesn't work is the old character screen menu. It had 10 @SAY and 10 @GET commands and a READ. The ...Show All
Visual Studio Express Editions Power control of windows: How to reboot and wake from hibernate/standby?
Hi everyone: I have only found system.windows.forms.application.setsuspendstate method could make system into standby or hibernate state, but I don't know how to reboot the system via .net method. Must I call API functions to reboot the system And I want to know how to wake up the system after hibernate/standby For example, if my user input "3" and hibernate, the system should enter hibernate and wake up itself after 3 minutes. Is that a method could do this in .net framework or which API should I call Thanks very much!!! Um, I don't think there are any program running in hibernate (or suspend) state: it would probably ...Show All
SQL Server SSIS Convertion Function from Integer to String
Hello all Ho can i convert Integer to String in SSIS Derived column. Thanks in Advance Raj Lakamana Is the source table in SQL Server Yes the destination table in SQL Server Yes Are you sure the data doesn't have special characters in it Did not find What code set (1252 ) are you using in your source connection 1252 except datetime and int column for 0. I used SQL Command in the source table. Just because when you look at the data it looks fine, doesn't mean it really is. Yes, assuming your data is convertible, and is not corrupt, SOME data should flow through. But then, I ask again, how are you converting th ...Show All
SQL Server For each loop
Hi, I have a dataset created in a data flow task. I want use a for each loop in the control flow area of the package to process every row individually in the dataset. How can I do this I am currently using a "Recordset Destination" because it says that it creates and populates in memory ADO dataset and I read somewhere that this could be used anywhere in the package. I have even assigned a variable DS which has an object datatype to the Recordset Destination task. How do I use this now in the for each loop container in the Control Flow task I also need to know if I can use the DataReader Destination task instead as it uses ADO.NET ...Show All
Visual Studio Team System Automated Build and Sourcecode Control
Hi, We are about to embark on a large project (4 years+). We are currently using VS2005 along with Sourcesafe. We need to get automated builds in place which tie in with the labeling of sourcecode and distributions. What products should we be looking to use .... teamsystem, sourcesafe and msbuild Any pointers would be greatly appreciated ... can't see the wood for the trees at the moment! Kind Regards Si Hi Siza The post that Rob points to talks about using Continuous Integration with Team Build. If you want an overview of Team Build - you ...Show All
Visual Basic Question on Registering VB 2005 Express Edition
I realize that this is probable not the correct forum for this question, but perhaps someone could point me in the right direction. I recently downloaded VB 2005 Express Edition and have been unable to register it. I get to the point in the registration process where Micro Soft is to send me and e-mail message for e-mail address confirmation, and I never receive the message. I have attempted redoing the process and now I am receiving an error advisory stating "Pending limit exceeded your limit of verification e-mail messages. I have called the help desk and they claim that they can not help in this manner because it is a free trial o ...Show All
.NET Development delegates and event (=? +=?)
Hi, sorry but one more question. i saw an articles in http://weblogs.asp.net/rosherove/archive/2004/03/28/100444.aspx public class Class2 { public delegate void DomSomethingDelegate ( int num1 , int num2 ); public event DomSomethingDelegate MyDeleageteCallback ; } Class1 c = new Class1 (); c . MyDeleageteCallback = new; Class1 . DomSomethingDelegate ( this . Calculate ); the author said: In essence, declaring the event keyword prevents any of the delegate’s users from setting it to null. which that mean of this portion of code will generate a compile error. But after i test it on my visual studio .net 200 ...Show All
Visual Studio Express Editions Getting system icons for TreeView
Hi, I'm trying to get system icons using the code below: SHFILEINFO sfi; HIMAGELIST hImageList; hImageList = (HIMAGELIST) SHGetFileInfo(TEXT( "C:\\" ), 0, &sfi, sizeof (SHFILEINFO), SHGFI_SYSICONINDEX | SHGFI_SMALLICON); treeView1->ImageList = hImageList; // gives compiling error When I try to build the solution, it gives the following compiling error: error C2664: 'System::Windows::Forms::TreeView::ImageList::set' : cannot convert parameter 1 from 'HIMAGELIST' to 'System::Windows::Forms::ImageList ^' No user-defined-conversion operator available, or Cannot convert an unmanaged type to a managed ...Show All
Visual C# A newbie question on Interfaces
hi, I'm new to C# and OO in general. I can't seem to undestand the pertinence of interfaces. From my understanding, the interfaces define the signature of the methods while the class implements these methods. How is this better than simply doing away with interfaces and simply implementing the method in the class Apologies for the rather novice question, an example to illustrate the pertinence of interfaces would be greatly appreciated. regards, Pat Arrays are kind of funky for some reason. I know the docs say that it implements the IList interface, but in playing around with it, the only way I can see ...Show All
Visual C++ What is the syntax for declaring an event as an argument of a function?
How do declare FireEvent(...) so I can use it in foo() With previous beta versions, I can just do this FireEvent(EventHandler^ e), but with beta2 compiler, I get C3918. Thanks, hdp. // class that defines events ref class EventSource { public : event EventHandler^ OnEvent1; event EventHandler^ OnEvent2; void FireEvent(...) { .... } void foo() { FireEvent(OnEvent1);   ...Show All
Visual C# USB printer interface
Hello, I have a BOCA usb printer, that is used for ticket printing on venues. It works under 2 different modes, one is HP PCL printer emulation and the other one is FGL (friendly ghost language) that is used sending ascii instructions through the USB port it is connected to. I need to do a benchmark for a project using both methods, so I need a way to write ascii values directly to the USB port using C#. How can I do this Is speed an issue If not you can buy a USB to serial convertor ( cable ) and write it as if it is a usb port. I am not sure if you can do it directly as if it is a serial port. I done it with a con ...Show All
