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 2007 > threads for monday april 9

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

understanding Singleton
Posted by ruthie at 4/9/2007 11:43:22 PM
Hi, I am a bit confused using Singleton pattern. Using Singleton - do I have one instanse of the class for each web client or do I have one instanse for all users ? Thanks. Ruthie. ...more >>


file.copyto question regarding relative path vs map network drive
Posted by Coaster at 4/9/2007 10:51:57 PM
If I am calling File.CopyTo make a backup copy of a remote file on a remote machine where the source and destination locations are both on the remote machine would it be faster to call the function with a relative path or using the X drive which is mapped to the remote machine? Thanks ...more >>

object reference is required for the nonstatic field method or property
Posted by Mike at 4/9/2007 8:22:33 PM
ASP.NET 2.0 I have some code working in a code-behind that I want to move to a utility class. In the code behind, I can reference the querystring and get the Page value easily. However, when I try to reconstruct the method (below) in a separate class, my attempt to reference the queryst...more >>

about c# assemble registry problem
Posted by thinktwice at 4/9/2007 7:40:33 PM
i have an project which contains c++ dlls & c# dll, my project runs fine on target pc when i deploy them using installing package, but deploy them in the way like xcopy - copy all the files to target pc (target pc has installed Net. Framework and vc redistributable package ) and register all ...more >>

structure in a Dictionary, not modifiable?
Posted by Glenn at 4/9/2007 6:51:20 PM
Hi, I was able to specify a structure for a Dictionary, but once I tried to modify it, I get an error specifying that I cannot modify the return value because it's not a return value..? I can always do an array of the struct, just wanted to be able to access via the name instead of looping ...more >>

Close a blocked socket
Posted by MikeZ at 4/9/2007 6:10:00 PM
I have a sync socket application. The client is blocked with Socket.Receive(...) in a thread, another thread calls Socket.Close(). This unblock the blocked thread. But the socket server is still connected. Any idea? Thanks....more >>

Consuming NOAA XML web service
Posted by xml .NET group at 4/9/2007 4:58:16 PM
I am trying to consume web services at http://www.nws.noaa.gov/forecasts/xml/ using the web reference http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl My code is as follows: gov.weather.www.ndfdXML proxy = new gov.weather.www.ndfdXML(); string xmlData = proxy.NDFDgenByDay(4...more >>

How to remove all comment tags from XML string
Posted by Andrus at 4/9/2007 4:15:53 PM
I need to remove all comments ( between <!-- and --> tags) from XML string. I tried the following code but comments are still present. Or is it better to open xml string with a StreamReader, read all the text inside and remove all the "<!--" and "-->" substrings? How to remove comments ? ...more >>



can you do a global multi-thread "lock", that locks out everything?
Posted by titan nyquist at 4/9/2007 3:50:30 PM
I thought I need something like this, but it turns out I don't. I'm still interested if this can be done: Can you do a multi-thread "lock", that locks out everything else, all other threads, without explicitly locking out those other threads? For example, can you take a single section of co...more >>

Which data type should I use for a money value?
Posted by Ronald S. Cook at 4/9/2007 3:30:53 PM
For money values, C# seems to have just DOUBLE as a type. SQL Server 2005 has data types DECIMAL, FLOAT, MONEY, and NUMERIC that seem to all be able to hold a money time. So, given I'll be storing money as a double in code, what datatype should I have in the database for when I pass the va...more >>

Memory Leak Detection
Posted by O.B. at 4/9/2007 3:08:14 PM
I've got this C# .NET 2005 application that has some unmanaged code. At random times, I get: An unhandled expection of type 'System.AccessViolationException' occurred in Unknown Module. Additional information: Attempted to read or write protected memory. This is often an indication that oth...more >>

float to Money cast
Posted by soni2926 NO[at]SPAM yahoo.com at 4/9/2007 2:18:45 PM
Hi, I have the following: float.Parse(myproduct.Price.Value.ToString()); myproduct.Price.Value.ToString() returns $24.00 (with the $) Is there anyway to do the above cast, I know the float.Parse(...) doesn't like the $, as i keep getting an invalid cast exception, is there anyway to get th...more >>

casting a c++ pointer to a c# class
Posted by james NO[at]SPAM nospam.com at 4/9/2007 2:16:01 PM
I have an existing MFC c++ ocx control that I need to work with a c# class. If I use a locally defined data structure, everything works. For example, in my C++ app I declare. MyCSharpClass DataStructure; To use the data structure in my c# class I use DataAccess::Select(%DataStructu...more >>

DateTime.Now - Does't give seconds.
Posted by TheLostLeaf at 4/9/2007 2:04:32 PM
DateTime tTime = DateTime.Now; ------------------------------------------------------------------------------------------- tTime returns "1:59:00 PM" it never returns seconds. Database field is SQL datetime or smalldatetime. ...more >>

Outlook Programming using C#
Posted by anku at 4/9/2007 1:12:03 PM
Hey folks, I have created two empty.pst files and it created two empty folders both named "Personal Folder". This is fine, but my problem is I have two .pst files, p1 and p2. I want to move Inbox messages to Inbox of p1 and Sent messages to Sent folder of p2. I am not sure how should...more >>

AdomdConnectionException
Posted by Cindy Lee at 4/9/2007 11:17:59 AM
I get the error "No connection could be made because the target machine actively refused it " when trying to connect with AdomdConnection (the same code works on other servers). I'm just trying to connect on the local host. I'm running windows server 2003 service pack 1. I think I mig...more >>

help with enum,webusercontrol,asp.net
Posted by rodchar at 4/9/2007 11:04:04 AM
hey all, i'm trying to say something like the following but tripping up on syntax. Basically, i'm trying to expose an enum that's inside my webusercontrol to my client which is my .aspx page private DisplayType _type; public DisplayType Type { get { return _type; } ...more >>

Remoting objects extending abstract class
Posted by sean.j.gage NO[at]SPAM gmail.com at 4/9/2007 10:26:36 AM
I was trying to abstract some properties and methods for a group of remoting objects, but it seems that during testing I am finding that the remoting objects are generating null reference exceptions when I try to access these properties and methods. Below is a sample of what I was attempting to ...more >>

static class, used in a webservice, cannot find it's XML file
Posted by j at 4/9/2007 10:26:06 AM
I'm using a static class to read (from an XML file) some 'frequently used' settings that will be shared in both console applications and web services. The class works for console applications, butn using the same class in a web service always results in a FileNotFoundException. I have verifie...more >>

How can I index an IList/Collection associated with a ListView, after the ListView has been sorted?
Posted by forest demon at 4/9/2007 10:09:55 AM
I have an IList/Collection that contains items in a ListView. If i click on an item in the ListView, i can capture the index (lv.SelectedItems[0].Index) and reference the correct item in the associated IList/Collection . Once I've sorted the ListView, obviously the indices do not match up a...more >>

AutoSize Panel (Vertical only)
Posted by Nathan Laff at 4/9/2007 10:01:22 AM
I have a panel that I want to AutoSize with an AutoSize mode of GrowAndShrink, but I only want it to autosize vertically. Reason being I have anchors set up to a usercontrol which can resize. Any idea on how to accomplish that? ...more >>

Creating A Configuration Settings Object
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 4/9/2007 9:07:40 AM
I'm just looking for suggestions here. Currently, I'm implementing a = configuration settings object as follows: I create an XML file Similar to this: <Config> <GeneralSettings> <GSSetting1 value=3D"somevalue" /> <GSSetting2 value=3D"somevalue" /> </GeneralSetting...more >>

Capturing text between two words with Regex
Posted by ffreino NO[at]SPAM gmail.com at 4/9/2007 9:00:00 AM
Hi, I'm trying to capture text between two words in a multi-line string. For example: 89. This is the text I would like to capture. This is another line. 90. End of the example. I would like to capture text between the words (numbers in this case) '89' and '90' Any ideas? Thanks in adva...more >>

How to compress a file(s)?
Posted by Wayne Gore at 4/9/2007 8:26:02 AM
Hi I want to achive 2 things. First I would like to compress an existing file on my harddrive. I can easily find out if a file is compressed or not by using "File.GetAttributes". But no matter what I do I simply can't set the compressed attribute using "SetAttributes". I have no problem s...more >>

Dictionary or List?
Posted by Jordan at 4/9/2007 7:58:41 AM
I want to store small collections of objects that have a unique id string:"Name", so I opted to use a Dictionary<string,MyObject> collection. However, since my collection will rarely exceed 10 or 12 items, would I be better of just using a regular List<MyObject> and looping through the Names to...more >>

How can I read a file on disk into a memory stream?
Posted by chance at 4/9/2007 5:55:52 AM
Hello, I have a file on disk called TEMP.ZIP and I would like to somehow get this into a memory stream so I can eventually do this: row["DOCUMENT"] = dataStream.ToArray() However, I am not sure of the correct way to get it into a memory stream. Any help appreciated. tia, chance. ...more >>

accessing a class instance from a separate class running in a separate thread
Posted by titan nyquist at 4/9/2007 4:35:10 AM
I have a class with data and methods that use it. Everything is contained perfectly THE PROBLEM: A separate thread has to call a method in the current instantiation of this class. There is only ever ONE instantiation of this class, and this outside method in a separate thread has to access ...more >>

delete cookies programmatically
Posted by itrahulsoni NO[at]SPAM gmail.com at 4/9/2007 3:52:16 AM
hi all, I want to delete the cookies that are set by the google personalize home page or when once i view the you tube video cookie is set I want it to delete programmatically so I am able to see same video hundreds of time. my question is straight i want to delete the cookies that are set by...more >>

How can I access procss?
Posted by ofiras at 4/9/2007 1:59:19 AM
Hii everyone, I tried to find how can I access process, but all I could find is how can I get processes running, get info about them, and kill them. I wodered how hackers access the dump of process and change it by entering ASM to them. Someone know how to do it? Please help, Ofir. ...more >>

.cs file not visible
Posted by Zeba at 4/9/2007 1:53:47 AM
I'm not able to 'Add New Item' to my Website in Visual Studio. WHat may be the reason for this ? Also, I'm trying to call a public function in a class in my App_Code \Web folder from my MyCart\BuyItem folder. but it is not visible ( i.e. Visual Studio - intellisense does not show any suggestio...more >>

System Information
Posted by BVS at 4/9/2007 1:44:10 AM
I am moving from c++ to c# and I have been converting code to c# I have not been able to convert the following code: SYSTEM_INFO siSysInfo; GetSystemInfo(&siSysInfo); SystemID = siSysInfo.dwOemId.ToString(); ProcessorType = siSysInfo.dwProcessorType.ToString(); ProcessorMask = siS...more >>

how to stop multiselection on mouse move
Posted by Neeraj at 4/9/2007 12:17:35 AM
hi guys How is it posssible to stop multi selection on mouse move. i want the multiselection only on ctrl + mousemove combination Thanks Neeraj ...more >>

Generic Function
Posted by T at 4/9/2007 12:15:02 AM
Hi there, I have a whole library of math functions which take a single double argument and return a double argument. Now I need to overload all of these functions to take a DataTable and return a DataTable which contains the result of the original function called on each row. For example: ...more >>

difference between CAO and SAO in remoting
Posted by chandu at 4/9/2007 12:00:00 AM
any body give exact explanation on how CAO and SAO can be used in remoting application ...more >>

what is the exact diff between marshallbyvalue and marshallbyref object
Posted by chandu at 4/9/2007 12:00:00 AM
Please give explanation ...more >>


DevelopmentNow Blog