Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > april 2006 > threads for tuesday april 18

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Trees
Posted by trusiki NO[at]SPAM yahoo.com at 4/18/2006 10:57:58 PM
I am trying to use C# for my program that deals with manipulation of trees (i.e. finding distance between different nodes, assigning labels to nodes, storing trees, etc.). I know I can probably use a multi-dimensional array as my data structure. However, I wanted to find out if C# had any bui...more >>


Hashing and comparing of arrays
Posted by Ole Nielsby at 4/18/2006 9:40:32 PM
How does the GetHashCode() of an array object behave? Does it combine the GetHashCode() of its elements, or does it create a sync block for the object? I want to use readonly arrays as dictionary keys, based on their content, not their identity. Is this feasible using the arrays directly, o...more >>

Passing memory pointer to unmanaged C++ dll
Posted by Joe Tavares at 4/18/2006 9:35:01 PM
I have a dll that takes a byte pointer. Similar to this: writeDataToBuffer(byte *buffer, int *BufferSize); The buffer is allocated by the dll. I have no problem with the BufferSize parameter it is the buffer parameter that I am not sure of the best way to handle. What is the recommended ...more >>

is there any limit to how long of a string SqlDataReader.GetString() can return?
Posted by Daniel at 4/18/2006 8:41:43 PM
is there any limit to how long of a string SqlDataReader.GetString() can return? ...more >>

How to click a link in the VS 2005 WebBrowser control
Posted by cweeks78681 NO[at]SPAM yahoo.com at 4/18/2006 8:29:39 PM
I am porting some VB6 code that automates navigation through a web page by getting all the <a> tags into a collection and then calling the Click method on the appropriate one. How do I click a link in a web page using the WebBrowser control in VS 2005 C# Express and .NET 2.0? ...more >>

FileSystemWatcher and multiple, fast changes
Posted by Steve at 4/18/2006 6:03:32 PM
I have a FileSystemWatcher watching a directory where I will add and update files. When it detects a change, I search through all the files and update my list of files in the UI. This works fine. Now, my other application that is writing the files that are being watched, does something li...more >>

Remoting + Firewalls
Posted by Alexandre Brisebois at 4/18/2006 5:56:26 PM
Hi, I have currently developped a small test app for remoting, it currently works great if the firewall is turned off. how do i deal with firewalls ? i currently am using onecare on my dev machine and the server will be local and the client will be remote how do i go though the firewall ? ...more >>

c# string size limit? length of string limit?
Posted by Daniel at 4/18/2006 5:38:52 PM
c# string size limit? length of string limit? ...more >>



using [alias] = [namespace]
Posted by Josh at 4/18/2006 4:35:05 PM
I've just seen some code that uses the=20 using [alias] =3D [namespace] formular. Does this have any effect on the compiled code, or is it just = a feature to save the programmers fingers from long namespaces? --=20 #####-----#####-----##### POV Tips and Hints at ... http://povman.blog...more >>

Obtain MCSE,MCSD,MCSA,MCDBA without exams(Pay after check results)100% passing gaurantee
Posted by vinay at 4/18/2006 2:05:55 PM
FRIENDS Here i m going to tell you the fastest way to get MICROSOFT,CISCO,COMPTIA,ORACLE,SOLAIS certified without efforts...... friends i have five vue and prometric testing sites here in INDIA.......so, i will do the exams on the behalf of the candidates, make them pass and charge some extra...more >>

Database Connection Passing Problem
Posted by shade73 at 4/18/2006 1:38:39 PM
Hey all. I currently have two seperate namespaces and I'm trying to pass a connection around to them. I want to use the same connection & leave it open for 6 methods & then close it. However, all 6 of those methods use that same connection. So my solution was to pass the SqlConnection as a p...more >>

overloading ASP.NET intrinsic event handler methods
Posted by John A Grandy at 4/18/2006 1:12:48 PM
For ASP.NET UserControls , is it possible to provide multiple overrides of the intrinsic handler methods (those for which the delegate that wires the event to the handler is built-in , such as Init , Load , PreRender , Render ) ... ? I need to create various .ascx controls on-the-fly , call...more >>

Newing a static var?
Posted by Brett Romero at 4/18/2006 12:53:36 PM
I'd like a variable to be created once and called statically from anywhere in the app. Is the following sufficient or will multiple instances still be created: private static SqlConnection Conn = new SqlConnection(); Is it necessary to create the above as a private field, use a property an...more >>

ArrayList.BinarySearch returns various negative values if item not found
Posted by illegal.prime NO[at]SPAM gmail.com at 4/18/2006 12:42:47 PM
So I see from the documentation here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemCollectionsArrayListClassBinarySearchTopic.asp That the code uses the less than operator: int myIndex=myList.BinarySearch( myObject ); if ( myIndex < 0 ) ...more >>

How would you handle this? array or object?
Posted by Kevin Blount at 4/18/2006 12:10:20 PM
Let me first state that I'm a new C# (ASP.NET) developer, spending the last 8 years with ASP and having attended 2 fairly basic ASP.NET courses, so my knowledge is a dangerous case of "I know how to do that in ASP, so it must be possible in ASP.NET" Here's what I want to do, which oddly is not...more >>

Binding the result set from a called stored procedure
Posted by Alex at 4/18/2006 12:07:42 PM
Hello All, I am new to ASP.Net and would like to know how to place the results from a stored procedure that I call into another form within my project. Currently, I can see my results in my grid that I bind to, but have not a clue how to write the results into the (practice.aspx) ...more >>

Arrays storage
Posted by alcabo at 4/18/2006 11:42:03 AM
Hello, I'd like to improve several critical routines involving arrays (vectors and matrices)... How are arrays stored in memory? Row major or column major? (Like in C or like Fortran?) Thank you in advance...more >>

mfc to .net
Posted by dotnetchic at 4/18/2006 11:41:14 AM
I am about to develop a plan for porting our codebase from vc++/MFC to vs 2005 -- eventually, we would like to end up with the majority of the codebase in c#. But I guess initially we'll be moving to c++/clr (using :oldSyntax?). Just looking for advice/comments/reference material and whether ...more >>

No flicker here, but flicker there.
Posted by shumaker NO[at]SPAM cs.fsu.edu at 4/18/2006 11:16:45 AM
If my GDI+ code is in the onpaint code for the window, there is no flicker. But if I put the same code in the onpaint event for a large panel, it does flicker. Why would this be? ...more >>

Which codec is required?
Posted by UJ at 4/18/2006 10:34:28 AM
If I've got a video/audio file, how can I tell what Codec it needs? I want to be able to let the user upload a file to a server but I want to make sure before hand that the codec is already installed on the machine. If not I'll tell them it won't work. Any ideas how to do this? (I don't ...more >>

Bug in C# 3.0 compiler
Posted by hammad.awan_nospam NO[at]SPAM gmail.com at 4/18/2006 10:05:56 AM
My apoligies if this has been posted already or is already known about. Using reflection to invoke the constructor of an object, assigning the constructed object to a member of type object, and then later trying to upcast that member to the appropriate type throws an invalidcastexception. Ha...more >>

Dynamic HTML table with textboxes
Posted by stephen.clancy NO[at]SPAM gmail.com at 4/18/2006 9:50:47 AM
I have created a Table on the fly with embedded textboxes. I need to update a database based on the input to these textboxes. What's the best approach? Sample of setup; Table table = new Table(); table.CellPadding = 5; table.ID = "Results"; cell = new TableCell(); TextBox tb = new TextBo...more >>

Docking Panels with Titlebars
Posted by Joe at 4/18/2006 9:42:44 AM
I'm creating a C# application, and want to use docking windows. However, I want the docking windows to look like the docking windows withing VS2005, with a title bar, close button, etc... When the user clicks and drags the docking window, it'll un-dock, and open in a tool window, and ...more >>

display data in stored procedure from multiple tables in label con
Posted by Joe Campbell at 4/18/2006 8:34:03 AM
I have a DBA that wrote a stored procedure that does a SELECT from a particluar SQL Server table. Within that stored procedure he links over to grab a column from another database table. I need to display this information in 5 different label controls in an ASP.NET web page. When I test the st...more >>

DateTime and timezones question
Posted by Flack at 4/18/2006 8:34:01 AM
Hey guys, I need to compare two times that the user selects. The user selects the hour, date, and timezone (which can be either NY, LN, or HK timezones). How can I compare two dates of different timezones? For example: Date1 = 11:30, 4/18/06, NY Date2 = 16:30, 4/18/06, LN These times sh...more >>

Validating user credentials against active directory
Posted by Raghu at 4/18/2006 8:32:00 AM
I have following code that validates a given user credentails against a active directory. The login part works but I can not search as it fails to return the record. Does any one have any idea what is wrong? public void Login(string user, string pwd, string domain) { ...more >>

OT: .NET and Java
Posted by Jordan S. at 4/18/2006 8:29:10 AM
Does Java have anything equivalent to the .NET base class libraries? Or is Java mostly "just another OOP language". My motivation for the question: just trying to understand why the .NET version of the Pet Shop required thousands FEWER lines of code than the Java version. See the 2nd chart ...more >>

Unmanaged Struct Array Pointer
Posted by bbembi_de NO[at]SPAM lycos.de at 4/18/2006 8:28:40 AM
Hello, I want to use this C++ method in C#: int doSomething(MyStruct*** structArray); MyStruct is a struct and MyStruct *** is a pointer to an array of pointer of my structs. How can I use that in C#? I have the struct definded in C# but this doesn't work: [DllImport("MyDll.dll")]...more >>

redicting standard output
Posted by Zenon at 4/18/2006 7:48:45 AM
I have an application where I create a Plink process to communicate with an HP Unix box. The problem I am having is that while reading the redirected output, it seems to try to continue past the end and gets caught in an endless loop. I am checking for the end of the output like this: while...more >>

regex to find an stored proc name
Posted by kevin at 4/18/2006 7:45:02 AM
I want to return a list of every sp that is called by a given sp, and sp_depends is anything but... The user will have to supply the name of the first/top level SP and then my app will do the rest from there. My question: Will the following expression always work. I have tested it and it...more >>

Detecting when a datagrid control loses focus
Posted by Greg at 4/18/2006 7:37:47 AM
The LostFocus event of datagrids is fired when the focus is added to a cell. How do you go about detecting it when the control as a whole has lost focus to another control? Slightly confused by this! Greg. ...more >>

CurrencyManager Refresh After New DataRow
Posted by Brian Richardson at 4/18/2006 7:00:02 AM
Hi, Please can anyone kindly offer some suggestions as to why the CurrencyManager might not refresh. I am using the CurrencyManager to navigate through a DataView. I am aware that there is an issue when adding a new record with using bound CheckBoxes ('http://support.microsoft.com/defau...more >>

passing a string from a jscript program to a C# function.
Posted by Hema at 4/18/2006 4:11:12 AM
Hi all, Is it possibe to create a string in a jscript code and pass it has a argument to a c# function... a separate user defined project?if so how to do this? thanks in advance, hema ...more >>

Compile speed affected by amount of machine ram?
Posted by _DD at 4/18/2006 2:13:03 AM
I know that going from 512M to 1GB of RAM will generally benefit system speed, especially when running ram-hungry compilers, etc. Just curious if the additional jump up to 1.5GB will offer any advantage, or if it's overkill. This is presuming that there is little else running except for VS2005...more >>

Reading system configuration such as memory, HDD size, processor speed
Posted by Sek at 4/18/2006 1:58:46 AM
Hi, Is there any namespace/class in C# to get the system configuration details such as RAM size, HDD capacity, processor details and things like that. I went through the ManagementObject class, but that uses specific names/labels to get specific property. I couldn't find any way to read th...more >>

Problem with listbox at client side
Posted by Anup at 4/18/2006 1:20:43 AM
Hi Group, In my application there is a very common functionality, where two list box and present and items are moved between them on button clicks when selected, This I am doing client side, Client side code is like this -> function assignInspector(listboxAllFieldEngineers,listBoxAssign...more >>

get a Answer from Server
Posted by MAT at 4/18/2006 12:58:56 AM
Hi... I am new in .NET and C#. I have such a problem: I connect to the SQL Server over Web Services and send a request. Another user must see this command (my request) and do somtehing and send me an asnwer back. The problem is: This process can last a few minutes (The other user can send ...more >>

Finding memory of a Datatable at runtime....
Posted by conckrish NO[at]SPAM gmail.com at 4/18/2006 12:12:39 AM
Hi all, Can anyone tell me how to find out the memory used by a DataTable at runtime? I am appending lot of data to datatable at runtime.I have to measure this memory comsumption programatically... Plz help me... Thanx in advance... Jacob... ...more >>

sector writing on MMC ?
Posted by Krunoslav Ostrouska at 4/18/2006 12:00:00 AM
How can i write on specifyed sector on a multimedia card? I must go round file system and write/read direct. C# VS2003 Thanks Kruno ...more >>

C# version of std::map
Posted by Torben Laursen at 4/18/2006 12:00:00 AM
Hi Can anyone tell me if there is a class in C# similar to the class std::map in C++? I need a way to map enum to double and was hoping to avoid using any "if" code Thanks Torben ...more >>

How to compare two byte arrays ?
Posted by Oleg Subachev at 4/18/2006 12:00:00 AM
Is there other way of comparing two byte arrays than iterating through the two and compare individual bytes ? Oleg Subachev ...more >>

auto int
Posted by Hrvoje Voda at 4/18/2006 12:00:00 AM
How to automaticly add a new int number into table? I use a column ItemInx wich is Int32. ...more >>

Managing/Disposing Memory in local scopes
Posted by AAJ at 4/18/2006 12:00:00 AM
Hi I have written a wrapper that encapsulates the Excel object model. As anyone who's done a similar thing knows, its important to release the objects when the app exits otherwise they still remain as a running process within windows. I've done this and so long as the code is called, it ...more >>

PerformanceCounter and ThreadID
Posted by Michael Moreno at 4/18/2006 12:00:00 AM
Good morning, Here is the objective: monitoring the CPU usage of a given thread in my own C# application. Here is what I do: - on a Form I put a PerformanceCounter - I set e CategoryName = Thread - I set the CounterName = % Processor time - I set the Machine = . (local machine) Then ...more >>

P#
Posted by Tunga Torgal at 4/18/2006 12:00:00 AM
Hi, is there anyone here with exprience in p# (a prolog interpreter for .NET). ...more >>


DevelopmentNow Blog