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

Software Development Network >> CUI WEI's Q&A profile

CUI WEI

Member List

RomanJB
50322899
EL.AHONG.F
MarilynJ
CrashCreator
ScottStamper
santosh_nm
cchan
Rottengeist
Olivier MATROT
olichap1
Sebastien Andrivet
Oliver Slay
Kishor Kurapati
Marcus Alexandre
Nguyen Ha Tuan
Denis Cilliers
lostagent2
Mark Edgerton
Whairs01
Only Title

CUI WEI's Q&A profile

  • Windows Forms A few questions

    I'm developing a Math related project in C#.  The project does this: 1) Read a list of integers delimited by commas from a text file. 2) Run special algorithm against the integer list and produce a result set in matrix table. 3) Display the result in Crystal Report. Here's my questions: 1) How to format the integer list on a text file  Put the integers ...Show All

  • Visual C# Sockets

    How can I handle over 1000 live sockets each client socket is almost always reading / writing few bytes is it really practical to create a thread for each socket what is the best wat do handle this kind of a problem thanks,             Shimi. Creating a thread for each of these 1000 sockets isn't a good design.  You'll need to do Asynchronous communication with these sockets:  http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconusingnon-blockingserversocket.asp  is a good article on starting with A ...Show All

  • Visual Studio Express Editions DataAdapter Update Error :Syntax error in INSERT INTO statement

    I am trying to add a record to an Access DB Table, everytime I try to update the DataAdapter with the updated DataSet I receive the Error: Syntax error in INSERT INTO statement. Here is the code: Dim da As OleDb.OleDbDataAdapter Dim ds As New DataSet Dim con As New OleDb.OleDbConnection Dim sSQL As String con.ConnectionString = "PROVIDER=Microsoft.jet.OLEDB.4.0;Data Source=Alarms.mdb" con.Open() sSQL = "SELECT Message FROM [AlarmsList]" da = New OleDb.OleDbDataAdapter(sSQL, con) da.Fill( ds, "AlarmList" ) Dim dsNR As DataRow Dim cb ...Show All

  • Windows Forms Internet zone

    Hi, I have problems with applications deployed using ClickOnce from the Internet zone. I have created a sample application (just a form with a button that makes an illegal operation in this zone - looks if a file exists). http://www.valil.com/TestExpress/TestExpress.zip I have set the zone to Internet and I have deployed it on the web server. When I try to run it, I get the message "Application has been blocked ..." (the message you get when you try to run a full trust application). I must mention that my website has the problem from this thread ("Problems with MIME settings at the hosting provider") so the deployment manifest has the ext ...Show All

  • Microsoft ISV Community Center Forums Need help!Cangrow does not works properly.Pictures in Crystal Reports and VB dotnet

    Dear All, I am new to dot not. I'm using vbdot net 2003 with crystal reports that bundled with vs2003 for creating catalogues for our company. We have furniture pictures in access db. In design time I have added picture field to the crystal reports and ticked the cangrow property so the picture can fit into its true aspect ratio. but some pictures grow into full page of the report. unticking 'cangrow' property also makes trouble as the picture does't streches well. I want 6 pictures to appear in each page by 2 column wise. We want to automate printing catalogues of chosen furnitures by our customers. I'm struck with this problem for pas ...Show All

  • Visual Basic Creating a file list

    How would I accomplish the following: Create an array containing the names of all files in a directory. Delete each file contained in that array from the directory. Keep track of the progress with a progress bar. I can guess on the last one but creating a list of files is giving me some troubles. With the BackgroundWorker make sure WorkerReportsPrgoress property is set to true. Here's an quick overview of how it works: 1. You can RunWorkerAsync() on the backgroundworker object, and whatever is in it's DoWork event handler executes in another thread. You can put some data in e.Result, which will be passed to RunWorkerComplet ...Show All

  • Windows Forms Capture Icons

    Hello all i want to know how to capture the icon of a file or folder , or at least create shortcut icon for it , and then use it in my application thx all:) Check out this link: http://www.codeproject.com/csharp/imagecapture.asp ...Show All

  • .NET Development DbCommand.Prepared not supported by the DbDataAdapter and DbDataAdapter is the only way to do Bach Updates

    How to get a DataAdapter to use Prepared Commands or get Batch updates to work with out a DataAdapter Using SQL profiler you will see that if the InsertCommand is Prepared and executed directly, a stored procedure is created once and then executed repeatedly.  This is a nice way to implement store procedure implicitly.   Using the DataAdapter you will see that the SQL text is sent to the server and execute using the sp_executesql command.   The DataAdapter will never use the Prepared Command.  You will also notice that the sp_executesql takes little longer to execute than the Prepared InsertCommand.   Is the ...Show All

  • SQL Server Enhancement: SSIS Designer

    Not quite sure if this is the right place for this comment... While using SSIS Designer came across a DUE where the package was setup to: SEQ1 - Truncate staging tables SEQ2 - Load staging tables (sequence container had been setup to hold multiple data flows) For some reason one data flow was run before the truncate table sequence. Looking in the designer it appeared that the dataflow was a member of SEQ2 but looking at the Package Explorer it was outside the sequence container. It would be good to have some visible indicator to show that a task is a member/not a member of a container John. ...Show All

  • SQL Server SSMS-EE: Creating and Using Stored Procedures - Error Messages 111, 156, & 102

    Hi all, I tried to use the SQL Server Managemet Studio-Express Edition to execute the following code statements: --- SQLQuery.sql--- USE testDB DECLARE @procID int DECLARE @procName varchar ( 20 ) DECLARE @procType varchar ( 20 ) CREATE PROC sp_getRecords AS SELECT * FROM Inventory CREATE PROC sp_insertRecord @procID int , @procName varchar ( 20 ), @procType varchar ( 20 ) AS INSERT INTO Inventory VALUES ( @procID , @procName , @procType ) CREATE PROC sp_deleteRecord @procID int AS DELETE FROM Inventory WHERE ID = @procID CREATE PROC sp_updateRec ...Show All

  • SQL Server RS2005 ReportViewer

    Is it possible to use the ReportViewer user control in an ASP.NET 1.1 Web App All the tutorials I have found integrates the reportviewer control from RS2000 and not RS2005. ...Show All

  • Visual C++ DLL initialization failure

    I've translated a VC7 project that builds a COM dll, to VC8.  It builds, but I can't register it: Regsvr32 reports "LoadLibrary("<path>") failed - A dynamic link library (DLL) initialization routine failed." The dependency viewer suggests that all the required libraries are present.  The failure occurs before execution reaches by code (DllMain).  How can I debug and find out what's going on Phil Atkin We did solve the issue in an ugly sort of way by patching the MSFRT.lib so that it always returns zero( ) to VS2005 after calling its init routines. I am more than happy to do some digging ...Show All

  • Visual Studio Express Editions String transfer

    I know that many have asked this question, but as i searched i just couldn't get answer to this so i'm asking it in my own thread. I have two forms, in form1 i have a textbox where certain person should enter his/her name, what i want is that the name that certain person entered is transfered into form2 so i could use that name in form2 to be shown in the MessageBox. One other thing, how can i transfer integer from form to form, so if i have int named Number and i do calculations in form1 and the Number = 10, how can i transfer that int Number so i can use it in form2 and that it has same value that it has in form1 after the calculatio ...Show All

  • SQL Server Dynamic SQL Server Destination???

    Hi, Is there anyway to dynamically change the Sql Server Destination Let's imagine i want the data to go to a table based on a specific parameter like year for example... Imagine tables like table1_2005, table1_2006 and i want to dinamically change the SQL Server Destination so it would insert 2005 or 2006 and so on.... I can't seem to find that option... It was really a good idea for microsoft to implement Expressions in such components... Dynamics it's all about it :)   Best Regards, Luis, From my experience the words dynamic and data flow task don't seem to go hand in hand....and SSIS leaves a lot to be desired i ...Show All

  • Visual Studio How to display a specify value in a textBox due to the original value in DataTable

    Hi: I have a textBox in my ReportViewer, it will display a dataTable DateTime field's value, I would like display null (a space) if the dateTime is before some date (because the user doesn't care too early date). How can I do it Thanks! Use an expression like this: =IIf(Fields!MyDateField.Value < #03/27/2006#, "" , Fields!MyDateField.Value) ...Show All

©2008 Software Development Network