-
- Number of opened sockets simultaneously
by Anat Oren
- 5 Replies
- Last post
by Ðãv? S. Â??????
- Hi All,
I have windows server 2003, operation system, and I'm developing a client - server applications, using TCP protocol, in C#.
I would like to know how many sockets connections, the server could have simultaneously
Thanks,
Anat
-
- How to parse invalid characters
by Kamii47
- 14 Replies
- Last post
by Kamii47
- I am downloading an xml file.It have some invalid characters.In valid characters could be changed.
I have an xml file for my custom setting.I will replace the invalid characters with the valid one.
so I have added a node named InvalidCharacters in which i provide the invalid characters.
1, Now I want's to load these invalid characters in an array [ i will split the string by ',' and load
-
- Match a string containing delimited list of digits
by jd98
- 14 Replies
- Last post
by jd98
- I need a regex that matches a string containing a delimited list of digits. While this seems fairly straightforward, the following requirements must be met:
1) Any number of spaces that occur before or after a delimiter should be accepted (e.g. '3 , 9 ' is OK) 2) The string can end with spaces or a delimiter (e.g. '3 , 9 , 8 ,' and '3 , 9 , 8 ' is OK) 3) The string can not contain any other
-
- Retrieving an Access table' structure
by Korzy
- 14 Replies
- Last post
by Paul P Clement IV
- Anyone could help me in figuring out how to programmatically understand the structure of an Access table I mean, given a DB connection and the name of a table, how to determine:
- the name of the fields of that table
- the type of the fields
- any eventually relationship between the fields of this table with others in the DB
Thanks a lot,
Davide
-
- generic DictionaryBase
by bitbonk
- 4 Replies
- Last post
by bitbonk
- In .NET 1.1 there is the DictionaryBase to derive from for own Dictionray classes. What class would I derive from in .NET 2.0 if I where to write a custom generic Dictionary<TKey,TValue> Is there a Generic Base class that adds the basic Dictionary functionality like Dictionarybase does
-
- Username shown on the Start menu
by Jono378
- 3 Replies
- Last post
by Jono378
- Hi,
How can I retrieve the user name thats displayed on the Start menu in XP
I have used Environment.UserName, but this is not the same, because I have used Control Panel>User Accounts and changed my account name to display my nickname. So, where is this stored and what is the best (safest) way to retrieve it
-
- Buffered Socket I/O howto
by dl0haus
- 0 Replies
- Last post
by dl0haus
- I'm writing a custom video stream downloader and it needs to do upwards of 40 streams simultaneously. With plain unbuffered I/O I can get anywhere from 8-12 streams going on the hardware setup I'm using. I had a question about buffered I/O.
What I'm thinking about doing is implementing 2 buffers. One for downloading the stream and one for writing. I would download to a buffer, do an asynchr
-
- Trouble catching exception
by Deepu_a
- 14 Replies
- Last post
by John.Doe
- Hi, I am having this problem catching a exception in a try catch block as shown below try { DialogResult result; result = wizard.ShowDialog(); } catch (PackageCreationException e) { MessageBox.Show(e.Message, "Failed", MessageBoxButtons.OK, MessageBoxIcon.Warning); } now the wizard
-
- .net 3.0 install failu WCF not installed
by roguecoolman
- 14 Replies
- Last post
by Nick Doty - MSFT
- I found this in another thread and this is exactly what i'm having issues with:
[02/26/07,01:40:25] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603 [02/26/07,01:40:52] WapUI: [2] DepCheck indicates Windows Communication Foundation is not installed. [02/26/07,01:40:52] WapUI: [2] DepCheck indicates Micr
-
- How to ignore Time Zone Designator when parsing DateTime
by Edijs
- 4 Replies
- Last post
by Oleh Svintsitskyy
- Hi!
I am having some issus when I parse string to DateTime, if it has Timez Zone Designator (TZD).
See following example:
string ds = "2007-10-04T00:00:00-04:00" ;
DateTime dt = DateTime .Parse(ds);
As a result I expect to get date: 2007-10-04 00:00, but DateTime.Parse method takes into account "-04:00" TZD and also translates the date to my
-
- how to detect internet explorer's event
by udayan
- 3 Replies
- Last post
by RizwanSharp
- Sir ,i develope an application for download manager which can download files from internet when user select or click on download for files,& then files download from internet to a PC. So detect an event when user click on download ,& how to find the URL address from internet. So Please give me code in C# ,so i can detect event in my application & i start download a file.
-
- ms access query + like operator
by ronlahav
- 2 Replies
- Last post
by Avinob Roy
- i guess that this is not the write place to erite the question but i guess that someone from here can help me
i have in ms access 2 tables
t1.ID
t2.ID
i want all the ids in table 1 that exists in table 2
my problem is that the id can be partial for example
001111 is match to 1111
thanks
-
- scheduled job runs fine but does'nt email the output
by sqldev
- 2 Replies
- Last post
by sqldev
- We have an application which is written in c# which runs and emails the excel output to the users, the exe has been scheduled to run every day, so the job runs and emails the output in excel to the users. It was running fine until last week saturday, since saturday we stopped getting the email excel output. I checked the logs in the event viewer I do'nt see any errors and also when I run manually
-
- Best practice while writing C# functions
by AbhimanyuSirohi
- 14 Replies
- Last post
by dagjo
- Hi, Anyone has any idea about how to free up memory in C# functions. Does the GC collects memory after a function has executed How about setting variables to null after we are finished with them, or the GC will automatically set them to null Does setting variables to null in finally causes an overhead
void TestFunc() { XmlDocument xdDoc = new XmlDocument(); try { // use x
-
- Oracle-sequence-OleDbSchemaGuid
by Sebastijan Pistotnik
- 4 Replies
- Last post
by David Sceppa - Microsoft
- Hi I have an oracle table. Let's name it LOCATION.
How is it possible with OleDbSchemaGuid class help, to load, which sequence does this table have Or maybe, to see, does a table.column use sequence How can I do that Is it possible to use isAutoIncrement method or some other feature
Lp Sebastijan
-
- Puzzled about Linq
by Auriga
- 1 Replies
- Last post
by cverdon
- Hi,
I'm quite puzzled... In the last few months i've learned to use TableAdapters, DataTables and all the fancy stuff that's in .NET to "abstract" the database. However, it's still not perfect - as there is no total abstraction between the data structure and presentation layer - it does make creating DAL and BLL easier.
Now I keep coming across (D)Linq which uses a totally differen
-
- SQLDataReader.GetOrdinal() fails rarely with IndexOutOfRange
by Yinon
- 14 Replies
- Last post
by R Hill
- Hi everybody, We were developed some Web-Services that run against SQL Server 2000 with SQLDataReader that executing Stored Procedures in the DB. Most of time (95%) everything is running well, but sometimes (when exactly, we don't know) the same WebService that worked 200 times, fail. The code is simple: public string myFunction( int ANumber )
-
- .net OLEDB provider for Access 2007 ?
by NBtech
- 7 Replies
- Last post
by Paul P Clement IV
- hi,
How to access the New Access 2007 Database using OLEDB Providers in .net
When tried with the the current OLEDB PROVIDER with .net framework 2.0 it does not work.
thanks n regards.
Barath
-
- Generating Sequence numbers
by akjal
- 4 Replies
- Last post
by John Willemse
- Hi I want to generate numbers like 00,01,02,03.... for appending into filename to indicate versions.I cant use Random numbers here. Can anybody help me to resolve this.. Should I use a database or storing latest number in the sequence so that new number can be generated .... Thanks akajl
-
- How to convert .msg to .eml
by Upulab
- 7 Replies
- Last post
by birch
- Hi, Can anybody tell me how to convert a .msg file to .eml file. I could save a MailItem object as a msg file, but I need it to be .eml file. Is there a free 3rd party util or in built util
-
- sent byte array shifted
by Han Qiao
- 10 Replies
- Last post
by Han Qiao
- hi,
I have a case whereby when i try to send an byte[], the receiver receive it as its has been shifted.
When i tried to debug: sender byte[] before socket.BeginSend() consist of: [1] 60 [2] 63 [3] 120 [4] 109 [5] 108 32 [7] 118 101 ...
receiver byte[] after socket.Receive() consist of: [1] 0 [2] 0 [3] 0 [4] 0 [5] 60 63 [7] 120 109 ...
The size of the byte[] is sent beforehead, and
-
- FileLogTraceListener class - implementation ?
by Kunal Sharma
- 11 Replies
- Last post
by Stephen Gryphon
- Hi friends,
Anybody tried using the FileLogTraceListener class for data logging to text files
I've been reading this and getting more confused. If any noble, generous soul can explain it to me or better still share the code snippets to make it work I would be highly obliged.
Thanks, Kunal
-
- vb.net with sql2005
by MffM
- 1 Replies
- Last post
by Deepraj_Majumdar_35eaf1
- Hi all
i want to create new database in sql2005 but useing vb.net 2005
what is the code that i have to write
also i need to deattach a database from sql2005 useing vb.net 2005
how can i do this
thanks a lot
-
- Object reference not set to an instance of an object
by karthi84
- 14 Replies
- Last post
by Jeremy51
- I get this error in an alert message (" Object reference not set to an instance of an object ") when i tried to bind data to my grid view using configure data source window. The rest of the process are working fine. What could be the problem. can any one help me.
-
- Using XML Text Reader
by shax
- 3 Replies
- Last post
by Martin Honnen
- Hi, I have the following XML String <dsInstruction xmlns="http://tempuri.org/dsInstruction.xsd"> <dtInstruction> <ID>0</ID> <Quantity>1</Quantity> <UnitRate>77.09</UnitRate> <UnitDuration>96</UnitDuration> <TotalValue>77.09</TotalValue> <TotalDuration>96</TotalDuration> <InstructionID&g