Software Development Network Logo
  • Visual Studio
  • Visual C#
  • VS Team System
  • Visual FoxPro
  • Visual Basic
  • Smart Device
  • Microsoft ISV
  • Architecture
  • Visual J#
  • Windows Forms
  • Visual C++
  • SQL Server
  • VS Express Editions
  • Windows Live
  • Windows Vista

Software Development Network >> William Zhi's Q&A profile

William Zhi

Member List

JoeGeeky
daveman
Ifgash
katokay
ccaci
Gaurav Rehan
ms_peterk
zwang2
Chris_Bond
Admiralman
Chris Denslow
Cosmin Paun
sreekanthr
Teddydino
SAJU JOHN
musicandstamps
Harsh Modi - MSFT
?everser
RobinP
meno
Only Title

William Zhi's Q&A profile

  • Visual Studio Team System Beta2 Static Code Analysis Problem: why doesn't the SQL injection security rule work?

    VS Team Developer Beta 2 shipped with an unfortunate problem that disables several interesting FxCop checks for managed binaries. One such rule is the security check 'Review SQL queries for security vulnerabilities' that detects hard-coded string literals used as SQL queries. There is a simple workaround to get this analysis up and running. In the FxCop binary subdirectory (eg, "C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop"), create a new subdirectory named Repository. Create a new file inside this subdirectory named index.xml. Add the following content to that file: <TypeIndex /> After doing thi ...Show All

  • Windows Forms No Publish Options Available??

    I'm using the Beta version of Visual Basic 2005 Express, and I don't see any options for publishing a "ClickOnce" application.  There's no "Publish" options under my application.   Is there another install I'm missing   I tried installing the "bootstrapper" app from MS but it did nothing. Any help is appreciated, thanks! Wow, tha ...Show All

  • Visual Studio Express Editions Registration is somewhat confusing

    I think I registered successfully but I haven't received a key, only a thank-you email. Does anyone understand exactly what is supposed to happen when registering Thanks. i'm having the same problem and i need to sort the key out as using the package for my studies just received 5 thank you emails and no product keys at all can anyone from microsoft shed any light on this issue ...Show All

  • Visual Studio Team System Disk space requirments for TFS servers

    Hi, Can anybody suggest rules for evaluation of disk space requirements for Data Tier and Application Tier machines I suppose it should be something like XMb * expected number of Work Items. Leon, As far as version control goes (on the data tier), most of the space is taken up by tbl_LocalVersion.  This is the table that tracks what version of the items each user has in their workspace.  On our dogfood server, this table averages 475 bytes per row.  So, you can get a pretty good estimate of: 475 x number_of_files x number_of_users ...Show All

  • Visual Studio SortFields

    Hi, i'm trying sort a document report by an database field parameter, i make: DatabaseFieldDefinition def = my_report.Database.Tables[ "PLANO" ].Fields[ "DESIG" ]; int c = my_report.DataDefinition.SortFields.Count; my_report.DataDefinition.SortFields[0].Field = def; And receive this exception: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX)) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.R ...Show All

  • Visual C# EMERGENCY! Number Guessing Game

    Hey, I'm new in C#, I am trying write a program about number guessing... I start to design, and writing code, but I need your help some point. The program generating a number with random()... But the user could determine how many digit include the number... ( 3-9 )(COMBO BOX)... and how many chance to find the number ( max. 15 chance)(TEXT BOX), and the user could determine, the number of digit will be repeat or not... ( if user choose "dont repeat" the number must include different digit like: 123456, if user choose "repeatable" the number can be 445666... etc. (RADIO BUTTON) After this choice the game opening... And t ...Show All

  • Visual Studio Team System Team System Build question

    Hi Folks, Currently with our VS2003 solutions (which contain multiple projects), we have the solution outside of source safe with only the projects being part of source safe. For our website projects we also leave the web.config file OUT of source safe. this way, when we COPY PROJECT the web.config is not copied up to the various servers (dev, test, uat and production). Also, on our local host machines which we develop on, we can have our own web.config settings (eg. connection string, etc) without having to check out/in which could piss off another developer who has their own web.config settings. all is good - all works really well. ...Show All

  • SQL Server How to copy a assembly from one db to another db with T-SQL ?

        I have deployed a asembly to db1, it includes 2 CLR stored procedures, I want to copy it to db2 with T-SQL, so db2 has the assembly and the 2 CLR stored procedures. Not to deploy with VS2005 again, can T-SQL do this Greetings. Looks possible. If you are doing this, I guess I would only take the dll(s). Also, I would use DROP and CREATE, not ALTER ASSEMBLY. Remember that you need to drop all items (aggregates, UDTs, functions, procedures, triggers) you have used from the assembly before deleting the assembly itself. Could be a lot of work, this. If you are going to do it properly. ...Show All

  • Visual Studio Team System Testing webservice on Build Server - WebDev.WebService.Exe not found

    I'm trying to run a webserver test on the build server. I have tried to install the build server with the minimum of tools: Performance Tools, Code Analysis Tools and Testing Tools. The test is using the "local development webserver" and fails because the webdev.webservice.exe cannot be found. The webdev.webservice.exe should be located in the .NET framework directory (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727), but apparently the files in this directory are not all installed with the framework install. I would prefer not to install the Visual Studio IDE to get this working. Does anyone know how I can just install the necessary items to ...Show All

  • Windows Forms Disable input to controls on a form without disabling?

    Is there a way I prevent user input (mouse and key events) for a control (or all controls on a panel) without disabling it I have a smart client application where accesses to the server are done on background threads. To prevent new interaction with the controls until the running access is done, I want to prevent new events. When disabling the panel all controls "blink" in a rather anoying way (when they are greyed out and then enabled). Instead an hourglass and a progress indicator should be enough to inform the user that it is working. I also have the impression that the enable/disable screen updates affects the performance for fast server ...Show All

  • Windows Forms AppUpdater Not Working

    Anybody else had any troubles getting it working   I've got the folder in IIS set to allow directory browsing, but after AppUpdater.DownloadUpdate() is called, I get this error... 5/10/2004 6:02:47 PM:  UPDATE FAILED with the following error message: System.Net.WebException: The remote server returned an error: (501) Not Implemented.    at Microsoft.Samples.AppUpdater.AppDownloader.Download() &n ...Show All

  • .NET Development Thread-Safe wrapper

    Hello, i would like to use something to write a file, but that also controls the concurrency. My problem is that i have mutiple threads that can write to the same file. I saw this method from TextWriter : http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemiotextwriterclasssynchronizedtopic.asp  that creates me a thread-safe wrapper around the specified TextWriter (received as an argument). My question is: will the resulting wrapper control the simultaneous access to the file for me   That is, will the resulting wrapper blocks a thread when it wants to write in a file that is being wri ...Show All

  • Visual C# Selecting a pixel region ?

    Hi. Let's say I have a picture box with an image loaded in it...what I want to do is to select a certain region with pixels from this pictureBox and display them in another pictureBox...is there a way to do this... Thanks in advance! sure... what i want is do display a certain region from one picturebox into another...i tought that "selectin pixel region" is a proper name!maybe not :) yea...lets say i have a picturebox 80x80 and i want to display a region 10x10 from it....can you tell me how to select a region and display this region into another picturebox ...Show All

  • Software Development for Windows Vista inet_addr() function in win2000 and win2003?

    as in win2003, inet_addr() thinks ".1.2.3" as invalid ip address, but in win2000, inet_addr() thinks it is valid ip address. anyone knows why this happens Thanks a lot! No doubt because it is an invalid IP address and 2003 is an improvement over 2000. ...Show All

  • Visual FoxPro Time format saved a character field

    Hi, Can somebody pls help me figure out how am i going to compute the time format such as this one "05:32:44" saved in a character field. The output should also be a time format not like this one when i'm summing up all the records "190:119:255". The time is in this format Hour:Minute:Second. I will appreciate very much if somebody can help me on this. Thank you in advance You can use conversion functions like: Function TimeStr2Seconds Lparameters tcTime Local Array aTime[3] Alines(aTime,m.tcTime,.T.,':') Return Val(aTime[1]) * 3600 + ; Val(aTime[2]) * 60 + ; Val(aTime[3]) Function Secon ...Show All

©2008 Software Development Network