473,888 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

4
3,664
thread by: John A Grandy | last post Jun 27 '08 by: Ben Voigt [C++ MVP]
Is there a performance difference between forward iteration and reverse iteration through a List<string? for ( i = 0; i < myList.Count; i++ ) { // do work, such as forward iterate through a subset of myList ... } vs
12
1,614
thread by: Mitch | last post Jun 27 '08 by: Ben Voigt [C++ MVP]
I'm wondering if I'm doing myself a disservice by learning Visual C#, considering it does so much of the work behind the scenes. Should I be learning console apps first? I still haven't found the right book. C# For Dummies started out great, then the guy just goes into the stratosphere, with no explanation on how he went from point B to...
4
1,107
thread by: Jay Dee | last post Jun 27 '08 by: Ben Voigt [C++ MVP]
Hi all. I have bean studying the use of Interfaces, and from what I understand if you create a class that inherits from an interface, that class must poses a member that represents each member of the derived interface. Well this all seams sensible because otherwise it would defy the principles behind inheritance, I was studying the...
1
1,391
thread by: Paul | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Hi, I need know the fields involved in a ConstraintException with code. Any idea? Thanks
4
1,068
thread by: vijaysambhe | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Hi , Can i populate the class variables in following fashion? public class abc { string name; public string Name {
3
1,853
thread by: tshad | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
I am calling a function that requires an Exception which you normally get from a Catch ( Catch(Exception exc)). But I have a message I am trying to pass to this funtion, but since it requires an Exception object, I can't just send the message. I need to create an Exception object and make the exc.Message field equal to my message and then...
10
8,085
thread by: ColoradoGeiger | last post Jun 27 '08 by: Peter Duniho
I have a fairly standard server application that I am using asynchronous socket calls to make connections, send and receive data, and all of that jazz. No blocking methods was my goal in writing this and it's gone very well so far. But coming from the blocking world, I want to have some timeouts on my receive routines and I after reading a...
2
2,026
thread by: Dav | last post Jun 27 '08 by: Dav V
I used soapUI (webservice testing tool) to test thrird party secure ondemand webservice and worked fine and communicating from our proxy. they authenticated our proxy port . but when i deploy .NET console C# client to test, I am not getting response and throwing Internal exception error 500. don't know what i am missing in the following code...
1
1,055
thread by: Jeremy | last post Jun 27 '08 by: Peter Morris
I'm trying to work through some sample of WPF. The Simple Binding example says the following: "Install the Windows Software Development Kit (SDK) and open its build environment command window. On the Start menu, point to All Programs, Microsoft Windows SDK, and then click CMD Shell." So, I google Windows Software Development Kit and find...
0
1,286
thread by: hugo | last post Jun 27 '08 by: hugo
billige preise billige preis laufleistung billige autoreifen koeln autoreifen günstig preise billige pkw autoreifen stickstoff billige autoreifen stickstoff billige autoreifen + + + http://billige-autoreifen.mirror-server.net/ http://billige-autoreifen.mirror-server.net/ http://billige-autoreifen.mirror-server.net/
2
2,108
thread by: Andrus | last post Jun 27 '08 by: parez
I'm creating .NET 3.5 WinForms application. I need to create textbox which remembers last 10 entries (stores in isolated storage) and offers users to select them on entry just like IE auto-complete address bar. I think I must use textBox custom AutoCompleteSource. Where to find sample code which implements this ? Andrus.
2
5,154
thread by: Peter Afonin | last post Jun 27 '08 by: =?Utf-8?B?UGV0ZXIgQWZvbmlu?=
Hello, I'm new to Crystal reports. Recently I developed my first report, using class as a datasource, and it works OK. But when I created a second report, I started getting error: "Invalid report file path". I'm using exactly the same class as a datasource, and the path to the report is correct. I've checked the report folder permissions...
2
1,618
thread by: Michael Harrington | last post Jun 27 '08 by: Peter Duniho
Is there a C# equivalent to Vb6's Erase when dealing with arrays? Also vb6 handles the long variable type better (speedwise) than int. Is this also the case in C#? TIA Mick.
2
1,275
thread by: Tony | last post Jun 27 '08 by: Peter Duniho
Hello! I have method CompareTo written below. But I have a problem because I want to sort on HeatNumber which is of type int and if this is the same on MspName which is a string. But according to the compiler I'm not allowed to use < on string. So my question is how do I solve this problem. The object Item is stored in an ArrayList.
0
137
thread by: Paul E Collins | last post Jun 27 '08 by: Paul E Collins
"Adam Sandler" <corn29@excite.comwrote: Here is one way to do it: for (int i = 0; i < s.Length; i++) { string temp = s; int j = r.Next(s.Length); s = s;
8
3,756
thread by: Paul E Collins | last post Jun 27 '08 by: Paul E Collins
This code won't compile because "the modifier 'abstract' is not valid for this item". abstract class X { public abstract static bool operator >(X a, X b); public abstract static bool operator <(X a, X b); } Why is that? -- apart from the obvious reason that the specification doesn't
1
3,012
thread by: =?Utf-8?B?ZmhpbGxpcG8=?= | last post Jun 27 '08 by: mario
We have a code snippet that downloads data to Excel. it is writing row by row. This causes a performance issue. Any ideas on how to speed this up will be appreciated. Please find below an excerpt of the code: #region Method:WriteToExcel /// <summary> /// <para>Description : Method is used to Write the records into excel</para>
10
10,379
thread by: Mauro | last post Jun 27 '08 by: Mauro
I'm trying to use the following VB function to transform a pdf document to a tiff one: http://forums.microsoft.com/msdn/showpost.aspx?postid=1665127&siteid=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=1 Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal fullPathTIF As String) Dim PDFApp As Acrobat.AcroApp Dim PDDoc As Acrobat.CAcroPDDoc Dim...
1
1,615
thread by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post Jun 27 '08 by: RichB
RichB wrote: If it isn't really a part of object A, then it shouldn't depend on it either. Provide a "validation context" type of object to it instead of a "parent", so that it can validate itself against the context, not necessarily the "parent". An interface containing just the needed properties is a good way to go here.
0
970
thread by: Maqsood Ahmed | last post Jun 27 '08 by: Maqsood Ahmed
Hello All, I am try to display a dropdown grid as cell in the DataGridView (.NET 2.0). Can some guide me through? Regards, Maqsood Ahmed
7
5,972
thread by: Ashutosh Bhawasinka | last post Jun 27 '08 by: Ashutosh
Hi, I have a C++ DLL, it exports some some plain C style functions. This functions internally initializes COM and then MAPI. This works fine if I use the DLL from a C++ application (I tested with a C++ Win32 console application). But, when I call/invoke those functions from a C# .Net application using PInvoke, COM initialization fails in...
2
1,271
thread by: =?Utf-8?B?QUEyZTcyRQ==?= | last post Jun 27 '08 by: =?Utf-8?B?TW9ydGVuIFdlbm5ldmlrIFtDIyBNVlBd?=
I am struggling a little with these 2 problems: 1. How can I convert an integer, representing x days from 01/01/0001 (the minimum value for DateTime, in dd/MM/yyyy) to dd/MM/yyyy? 2. Is there any functionality for converting a date from one locale to another? Thanks for your help.
0
1,219
thread by: steven acer | last post Jun 27 '08 by: steven acer
Hi, i'm trying to use the .NET cryptography API to encrypt XML data and move XML files between computers. i'm using asymmetric keys to encrypt the xml tag data with the receiver's public key, then compute a hash for the whole file and sign it with my private key. My problem now lies in finding and reading the keys to make them available to...
0
971
thread by: Ste | last post Jun 27 '08 by: Ste
Good morning, can I read a list of remote shares connected locally with or without drive letter ? Thank you. Stefano.
4
1,241
thread by: =?Utf-8?B?QVZM?= | last post Jun 27 '08 by: kodehoved
Hi, I've need clariifcation regarding the Obejct data type. Is this object a value type or reference type?.... can you please some articles which give explaination as to why it's treated as value type\reference type??? Thanks

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.