Paul Cheung's Q&A profile
Visual Studio Express Editions Do I need to Uninstall VS.net 2003?
My PC currently installed VS.net 2003. Do I need to uninstall VS.net 2003 before trying VS.net 2005 No, you do not need to uninstall VS .NET 2003. VS .NET 2005 will install and work alongside VS .NET 2003. ...Show All
Visual C# Syntax using an array of classes bizzare error with language parser
This is a simplified version of my code to highlight my problem. It seems as if the parser loses the type information. namespace myname { class A { public string b; public FileSystemWatcher c; public A() { c=new FileSystemWatcher(); } } public class D { A []e=null; public void f() { for (int index=1 to 10) { e[index] = new A(); e[index].a="Test"; e[index].c.Filter = "*.wav"; e[index].c.NotifyFilter = S ...Show All
Visual Basic Identifier
Public Sub () RaiseEvent Button2.Click(TextBox2.Text & TextBox3.Text) End Sub It says i need a identifier before () on Public Sub (), but im not sure wut i need to do. Can someone post the correct code What is you sub called. What its telling you is that you need to give your sub a name. You cant just leave it blank. How would you then be able to refer to this sub Example Public Sub XYZ() RaiseEv ...Show All
.NET Development StreamWriter conflicting with DB execution
Hi, I recently ran into this problem in which my query (which at most should have taken 7 secs) would always timeout. It was fixed when I removed a filestream I had surrounded the execution code with to write to a file a quick estimate of execution time for different sections of the function. I used OleDb objects and the StreamWriter object for file writing. My code was essentially: [...] Dim s as new System.IO.StreamWriter(&q ...Show All
SQL Server Client can not connect to SQL Express
Hi, When I try to connect to SQL Express from another computer I get error 26. The setup is as follows: Server is Windows XP Pro, Firewall turned off. Client is Windows XP Pro, Firewall turned off. Both computers are on the same workgroup, no domain or other servers on the network. The server is configured for network: protocols enabled, browser running. The client has MS SQL Server Management Studio Express installed. When ...Show All
Visual C# Writing directly to the console buffer
First, my situation: I'm trying to make a simple 2d game using the Console and special characters. I need to update the map quickly, is there any way to directly access the characters and change them without having to do Console.Write I need to do it very quickly so it doesn't flicker :) Try playing around console API functions, as it will give you more control over console printing. Use GetStdHandle with -11 ...Show All
Windows Forms How to input like powerbuild in datagridview?
Dear all, I really like the datawindow in powerbuild. If you input somevalue in a column (just like a production id), and this column is binding with datasource (like t_prod), the column right will display the binding data ( here like production description). How to do such a case in datagridview Need to write a new control or override a event of datagridview Thank you very much! ...Show All
Windows Forms what functionality should be included in the client download?
hiya, In a normal clientServer scenario, the .EXE might reside in a fileShare/ IIS on the server. I understand that the client can download the .EXE via clickOnce. Good so far I hope :-) Does the code that is included in this .EXE simply contain&nbs ...Show All
Software Development for Windows Vista didn't post the entire error message
Hi everyone, I am having some trouble with the DTC on a client machine and need help to get it working. The problem started while doing some experimenting with the new WCF stuff, but has evolved into a simple client side dtc problem. In a nutshell, I can't get dtctester utility to work. Some interesting points: * I am running winxp sp2 on both client and server * server is running SqlServer 2000 * both computers are in same domain * several oth ...Show All
Software Development for Windows Vista native API CreateProcess & redirecting output
Hi, I'm writting some code in C# that makes use of native API CreateProcess and I'm trying to read console output from cmd.exe. But my code will hang in the Read() function (last line of my sample code). I have no idea what is happening. I've looked at a lot of samples and mine seems to be alright. Any help will be appreciated. Sample Code ---------------------------------------- using System; using System.Collections.Generic; using Sys ...Show All
Software Development for Windows Vista Best archtiecture for long runnig workflow?
Hello, I'm still not came over a good example for long running workflows with human interaction and don't see clearly the best architecture for it. Would a Windows Service be the perfect host It should contain some Webservice interfaces. Especially the one to start it with. Greetings, Andreas Can you give me a bit more information on what you are trying to do StateMachines can be run with Long running ...Show All
Visual C# Logic Problems
How come when i run this i get 62 but i am trying to get the average...The average is 15.4 but when i compile it i get 62...why is that can some one help using System; class Average { public static void Main() { int num1; int num2; int num3; int num4; int num5; num1 = 10; num2 = 12; num3 = 15; num4 = 22; num5 = 18; float average = num1 + num2 + num3 + num4 + num5 / 5; Console.WriteLine("Average is {0}",aver ...Show All
Visual FoxPro Downloading data on webserver
I would have an program (.exe) connect to an external webserver and download or read a datafile (updating prices) Anyone have a idea to get this job done. I should upload a .dbf file to www.mywebsite.com/prices/price.dbf How can i read this data into my progrs database Thanks in advance. Take a look at http://www.west-wind.com/presentations/wwCodeUpdate/codeupdate.asp for a great example of ...Show All
Visual Basic I need help with Printing
Ok, I am making a program for a this small bussness I work for. Now they wanted me to set up a database for our products serial-numbers and a front end program for it. Now on top of the program they want me to make they also want hardcopies of each serial number entered, including all the info that goes along with it. Now I have been hunting all over for information to make it so I can just print the MDI child form as is. Well all ...Show All
Smart Device Development Windows CE from commandline?
Is there a guide or document explaining how to use the to use the tools in VC\CE directory I can create a smart device project inside the IDE but it is only limited to ARM processor. I want to perform compilations from commandline but I have yet to find a reference for the tools. Even a simple hello world program will do fine. -- Henrik However, if you use EVC clarm, some libs are linked automatically. &nbs ...Show All
