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

Software Development Network >> Tom Chen's Q&A profile

Tom Chen

Member List

Pon t3h pony
Ravenna
Jeong-hun
Bhavin B
Rasim_Yilmaz
ormistons
JRickW
Gu1234
Goran Glisic
Udi Raz
BusyDay
root
juanborde
PatrickMagee
Felix Verbitsky
urbal
Scott Oveson
DMTUC10
Douglas D
Dhirendra
Only Title

Tom Chen's Q&A profile

  • .NET Development ThreadPooling in c#

    I have to upload 70 files using ThreadPooling and code i have used is as below.I have set the maxthread size as 10.But it is uploading only 8 files. Please tell me how to make it work.Also if u can please give a sample code.Help will be greatly appreciated. WaitCallback callBack = new WaitCallback ( UploadFileEx0 ); for ( int i = 0 ; i < 70 ; i ++) { if ( true == isThreadAvailable ( true )) { ThreadPool . QueueUserWorkItem ( callBack , GetFileName ( this . listView1 . Items [ i ]. ToString ())); } else { MessageBox . Show ( "Worker thread not available &qu ...Show All

  • Windows Forms How do I add an item to the caption bar context menu?

    Hi, How do I add an item to the context menu displayed when you right-click on the caption/title bar. The current items are: Restore Move Size Minimize Maximize --------- Close What I would like to do is add an item below the "Close" option called "About..." that will display the application's about dialog. I know how to add a context menu to the form but I am having difficulty in getting hold of the above caption bar context menu. Any help in this matter would be highly appreciated Regards Gareth You'll find a similar example on my site in both C# and VB.net. http://www.dotnetrix.co.uk/menus.html ...Show All

  • SQL Server Merge replication using wins mobile 5.0

    Hi all, I have developed a mobile program with sql server 2000 merge replication. It works fine in Win mobile 2003 OS, but, not working at all after I upgrade the mobile OS to Win mobile version 5.0 Does anyone have any idea at all what's going on Thanks a lot. AngelaC Thanks Greg for your prompt reply. The pocket pc program is written in vb.net and I got the following error when I tried to run these codes: Codes: Dim replSQL As New SqlCeReplication ... replSQL.AddSubscription(AddOption.CreateDatabase) <-- error occur Error raised: "can ...Show All

  • Visual Studio Express Editions Variables values

    How can i see the variable values while program is running Set a breakpoint in your code, or put them inside a setter method so when they change you can set their value on a control somewhere. ...Show All

  • Visual J# getResourceAsStream() doesn't work

    Hi; The following code works: System .IO. Stream stream = Class .ToType( SystemWrapper . class ).get_Assembly().GetManifestResourceStream( "resources.resources_en_US.properties" ); This doesn't: java.io. InputStream is = SystemWrapper . class .getResourceAsStream( "resources.resources_en_US.properties" ); Why (SystemWrapper is the class the above calls are in.) thanks - dave   DavidThi808 wrote: Hi; I created a class with no namespace and tried java.io. InputStream is = Dummy. class .getResourceAsStream( "resources.resources_en_US.properties" ); Same problem. So something is not working right here. Also, I think the e ...Show All

  • Visual Studio Express Editions mySQL from C#

    HI! I wanted to connect ti mySQL nativily using the dll and .lib provided with mySQL and I wanted to know if there was a way of doing that in C# Thanks Yes it can be done, but not using the Wizards, you will have to code the datalayer yourself. Here is an example connecting through ODBC. using System.Data.Odbc; using System.Data; private void GetDataFromMySQL() { string connStr = ""; // i am not sure what the connection string for MySql would be, i think it might "Provider=MySQLProv;Data Source=mydb;User Id=UserName;Password=asdasd;" using (OdbcConnection odbcCon = new OdbcConnect ...Show All

  • Visual C# please microsoft or anyone tell me why !!!????

    when i debug this code Process p=process.getAllprocessbyName(processName, Remote MachineName); p.Kill(); i have this exeption this feature is not supported in remote machine what i want to say is why microsoft make this function and told us that we can use it for remote machinr in msdn help i found: C# public static Process [] GetProcessesByName ( string processName , string machineName ) Parameters processName The friendly name of the process. machineName The name of a computer on the network . yes my dear I tried to test my code in domain between two computers ...Show All

  • SQL Server SSIS on a cluster

    HI What is the advantage of running SQL Server Integration Services on a cluster. Regards, Balaji Thiruvenkataraju You abstract the server away from the hardware, and allow it to move between cluster nodes. If you perceive hardware failure as a big risk then you may want to consier it. There are no performance benefits or anything like that to be had. SSIS is not actually cluster aware, but most services can be configured through the Generic Service. For information, there are some guidelines on how to setup SSIS on a cluster here- http://sqljunkies.com/WebLog/knight_reign/archive/2005/ ...Show All

  • SQL Server Connection Pooling

    Is there some way to use only a single connection pool for more than 10 diferent databases You can always turn off OLE DB connection pooling and then roll your own. Add the following to the connection string: "OLE DB Services=-4". (This also turns off automatic transaction enlistment.) More details can be found here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconconnectionpoolingforoledbnetdataprovider.asp and here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/oledb/htm/oledbabout_the_ole_db_documentation.asp Other providers use their own syntax fo ...Show All

  • Visual Studio Team System Recommended setup and hardware requirements?

    Reading my question please note, that I haven't yet received Beta 2 and consequently haven't read the documentation included in Beta 2. Problem: We would like to establish a test environment with the Team System Foundation Server that is as similar to the final production environment as possible. I have searched the web for descriptions of the recommended setup and hardware requirements and the closest I got to answers is the following links: http://msdn.microsoft.com/chats/transcripts/vstudio/050223_vstf.aspx  (search for "requirement") http://blogs.msdn.com/brianwh/archive/category/7742.aspx ...Show All

  • .NET Development ADO.NET 2003 and Access 97

    I am using a Linked Server connection through SQL 2000 to a local Access 97 database.  I have a stored procedure that returns the columns of an Access 97 table that are defined as logical (binary)  The stored procedure is storing the information in a variable defined as a varchar(10) and using a select statement to generate the recordset.  When I execute the stored procedure in Query Analyzer, I see the values of the columns retreived from the Access 97 table, which show as either 0 for false or -1 for true. When I execure the stored procedure from VB 2003 using a datareader to capture the recordset (mydr), I get a ...Show All

  • Windows Forms gif or bmp as icon in exe...

    Hi, I have this gif (or bmp) file that I would like to use as the icon of my app. How can I had the image into my exe (so I don't need to have a separate image file) and then load it as the icon Thanks ...Show All

  • Visual Studio 2008 (Pre-release) System.Servicemodel Problem

    When I'm executing my application that I built in the January CTP I get the following error... System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.serviceModel/services: Could not load file or assembly 'System.ServiceModel, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 112) ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceModel, Version=2.0.0.0, Culture=neutral, PublicKe ...Show All

  • Smart Device Development Trouble enabling WSE in NETCF

    I enabled WSE 3.0 in my web services app but as soon as i built my code I got a lot of errors. So I tried msdn and found foll article . This did a great work and most of the errors were removed except one "The type 'System.Web.Services.Protocols.SoapHttpClientProtocol' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in Reference.cs. Is this assembly only in .net framework I just want MTOM enabled on my web service. Is there a workaround From the error you are getting, the P ...Show All

  • Visual Studio Team System Initialization for plugin "Microsoft.Pcw.currituck" failed with problem on the server

    Hi, I'm just execute VS2005 B2 on tfsservice account (Execute As), try creating a new project and during creation, I got an error : "" Here is the log file : 07/11/2005 10:51:30.953 | Module: ELeadServiceMediator | URL for eLead web service retrieved as " http://192.10.10.140:8080/bisserver/EleadWebService.asmx " from the registration service | Completion time: 0 seconds 07/11/2005 10:51:30.953 | Module: ELeadServiceMediator | eLead web service proxy constructed | Completion time: 0 seconds 07/11/2005 10:51:32.546 | Module: ELeadServiceMediator | Template Information for domain "192.10.10.140" retrieved from eLead web service ...Show All

©2008 Software Development Network