Answer Questions
medel Performance Issue - Binary serialization with large amount of data.
I want to serialize a dataset (typed) which contains more than 10,00, 000 records. i am reading the information from the file(s) and populating the dataset. i am using binary formatter. it is taking lot of time to serialize and de-serialize the data. can any one help me to improve the performance. 10 million records will take a lot of time to serialize, there's nothing you can do about that. I would suggest that your design is at fault, and needs to be relooked at. Why on earth do you need to serialize so many records in one operation It is a lot of items to serialize. How long time does it take now How long time do you need it to take Are you using the resources in a good way For instance if you have a ...Show All
Cory6132 Deleting file from fileserver
I would like to be able to delete a file from a file server. I have code to do it for an ftp server, but u nfor tunately applying this code to files on a file server does not work since the following does not exist: FileWebRequest request = ( FileWebRequest ) WebRequest .Create(serverUri); request.Method = WebRequestMethods . File .DeleteFile; I also have a way to make a temporary z drive and work with code that basically inputs into a command window. The problem here is I am not sure what the command line is to delete a file. Also, the file server will be protected by a username and password, so I need to take that into account. Does anyone know the best way to go about deleting a file from a file server If you leave ...Show All
nerdyome Fastest way to call C++ code from C#?
I would like to write plug-ins for my application using C#. My plan was to make the C# objects COM visible and derive from my plug-in interface. I’ve been told that the transition to and from managed code is a very expensive operation and I should limit the transitions as much as possible. This makes sense but I would still like to do things in the most optimal way since there will be no way from the transitions to be eliminated. That said, what would be the optimal way to call C# code from C++ (COM) and C++ code from C# My current plan is to use COM visible interfaces to call C# code C++ and COM connection points to call C++ code from C#. Hi, When you compile with the CLR ...Show All
fshrago C# Send Files or Folder to Recycle Bin
How do you do this Does .NET 2.0 have a built in function for handling this To do this in C# 2.0 do these steps: Add a reference to Microsoft.VisualBasic assembly. The needed class is found in this library. Add this using statement to the top of the file using Microsoft.VisualBasic.FileIO; Use FileSystem.DeleteFile to delete a file, it has the option to specify recycle bin or not. Use FileSystem.DeleteDirectory to delete a directory with the option to specify to send it to the recycle bin or not. If you are in VB.Net the need to reference the VB assembly is not required, just reference the namespace. Hey soconne Can u send the code that u have used to delete a file and put it in Recyclebin, ...Show All
Mongsreturn I get the message "Could not find installable ISAM"
I'm trying to get a record deleted, they way i want to do it is , that the user enters in the id and then clicks on the delete button, I've used this code and everytime i try to test the delete i get "Could not find installable ISAM" and idea's on whats going wrong Private Sub BackDelete_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackDelete.Click Dim db1 As ADODB.Connection db1 = New ADODB.Connection db1.Provider = "Microsoft.Jet.OLEDB.4.0;" db1.ConnectionString = "C:\db1.mdb" db1.Open( "DELETE FROM data WHERE ID= " & txtId.Text) If MsgBox( "Deleted" , MsgBoxStyle.OkOnly) = MsgBoxResult.Ok Then End ...Show All
hotsauce Is there a downside to using synchronous socket calls in a dedicated thread?
I am writing a server client socket application and have got to choose between synchronous and asynchronous patterns. In a single threaded process I can see why it is advantages to use the asynchronous calls - you can do something else whilst waiting for incoming coms. But the async calls are a bit mind bending so... I could use blocking socket synchronous/calls in a separate dedictated thread. That way the main thread is not blocked. This is a much simpler solution to code than the asynchronous calls but it seems too good to be true. Can anyone see a significiant downside to this approuch For instance do the blocking socket calls use loads of resrouces   ...Show All
RNG In C#, what is the difference between System.String and System.string (lowercase)
This mignt not be the correct forum, if so, I'm sorry about that. I am trying to get a better understanding of the .NET library. I am programming in c# and I see that System.String (uppercase String) and System.string (lowercase string) seem to be the same objects. However they are color coded in different colors. I am guessing that there is a reason, but I cannot seem to find it in the documentation. Can anyone shed some light on this Thanks! Bob You are correct, "string" is a keyword, "String" is a type name. Dark and light blue, respectively. The relevant section in the C# language specification is section 4.2.3: "The keyword string is simply an alias for ...Show All
Andrew E449473 server connection
hello, iam trying to connect to web server using ftp in C# via port #80. The connection is also established. so, is there any ftp command is available in c# to do.if so, pls kindly give a small details Thanx in Advance hai very thanx to u.. i want some more help ... suppose my database is located at some other place(let us take at us) , i want to able to retrive 10 records of customer table from that place to my system .. thru tcp/ip i can able to connect to sql server to the other system (which is located at some other place) by taking corresponding ipaddress and port using sockets.. so, using that sockets concept only i want to retrive the 10 records of the custome ...Show All
BitShift reading file size, date, name from the internet
i'm using ftp to transfer all of my html, asp file to the server. Now what i would like to do is to write an asp file using vbscript or aspx or vb.net to have a webpage that basically read all of the file in that directory and give me the name, size, date of each file like this Name size date file1 7kb 07/25/2006 file2........................................................... coudl anyone help me with this ty is this not the similar question to your previous thread Well this is easily done again in ASP.NET assuming if the files are local then you just use the same methods I described in your previous thread: http://forums.microsoft.com/MSDN/ShowPost. ...Show All
Mateusz Rajca XMLTextWiter Stops Output with no Exception
Hi, I've started a project using XML writetextwriter and it's really the first time I've written an XML application. The XMLtextwriter goes through the entire Database and just stops writing at the very end with no exception - mid item - last item. The Output looks like this: <Service>Violence</Service> <Description>When you're worried about violence</Description> <Para1>The organizations listed below provide trauma counseling services, services to those who have been sexually abused, and help in crisis situations involving survivors or witnesses to violence.</Para1> <Narrative>More complete information about these organization’s locations, contact person, hours of operation, fees c ...Show All
Maxwellvz Cannot Connect to SQL Server 2005
Hello, I have been stuck on this problem for a couple of days. The sys admin gave my username access to a database on sql server 2005 using windows authentication. I try to connect to it using this and it says that my username cannot access the db. What can be wrong, the sys admin said that all looks well on his side. SqlConnection myConnection = new SqlConnection(); myConnection.ConnectionString = "Data Source=serverName;Initial Catalog=DBName;User Id=MyUsername;Password=myPassword;"; myConnection.Open(); Thank you, Karina All you need for integrated security is: Data Source=serverName;Initial Catalog=DBName;Integrated Security=SSPI;"; Try this and let us know if it works. You should never enter you ...Show All
Taoyo How to animate in the console?
Hi, how can i "animate" the Text in the console, so that i can show that something is going on. e.g. . .. ... . .. ... usw. You know what i mean I've seen this kind of animation several times, but i don't know how to do that. By the way, I just noticed that this won't work as copied out of the post. The forum has collapsed the number of spaces in the Console.Write(" ") statement that I used to clear the line. Just make sure there are five spaces in there and it will work. There might be a better way to clear the line, and of course the real trick in anything like this is how to keep updating it while you are actually doing work, instead of just simulati ...Show All
Mike Martin24365 You help will be appreciated: Connection to DBF free table files
I have an app which runs perfectly OK on Windows 2000 boxes, but it refuses to run on any XP Pro box. It would always give me an error message: "Provider cannot be found. It may not be properly installed". The error occurs on the Conn.Open line shown below. The code is VBScript. I have some nearly identical vb6 code which gives me the same error on XP Pro. I installed MDAC2.7, vfpodbc, and vfpoledb, but none of it matters. Please point me in the right direction. Thanks in advance - Shigang Zhang. Here are the 2 lines: Set Conn = CreateObject("ADODB.Connection") Conn.Open "Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDb=" & Path & ";Extended Properties=dBA ...Show All
Tobbe2 Selecting text in word and reading/storing into vb.net
I'm trying to be able to read lines in word document forms. Streamreader can't help due to the fact that it displays the escape box. Decided to use Word commands (added reference for office/word) to try and select the text in the first cell using .selection.endkey (to get everything in the cell). I'm not able to figure out how to get the everything in the cell then store it to a variable. I can however get whatever i have stored onto the clipboard. just missing the one step. any help would be greatly appreciated!!!!!! are you able to use a richtextbox control to load the document Well, I guess it depends the type of document, RTF document format is of course only (I think) supported by the RTB control. If it is an RTF docume ...Show All
Bijay Mandal Database file tied up after connection closed
Hi, I am writing an application that: 1) downloads a database file 2) connects to the database file that was downloaded and then updates another database with it Once the update is done, I want to delete the downloaded file but I cannot seem to do this - it seems to be tied up by the sql server express instance Is there any way to be able to free up this file I am using VS2005 on a pc with windows xp pro. thanks -Barb thanks for the reply putting: "use master; drop database my database" after I open the connection to the database does indeed drop the database ( it physically deletes the database file which was kind of unexpected but was what I had intended to do in t ...Show All
