Answer Questions
Ehsan76874 C# Thread Safe Class events
Right now I have created a custom base class that has numerous events. These events have non-standard signatures and are fired from a thread I have that is basically just a while loop checking variables against older ones for telling when something has changed. As far as I know this is the best way to go about doing this is to just make a void on another thread in a while (true) loop, in the loop just doing ifs... than doing a thread sleep. ...Show All
Shalabh BIndlish Obtain WHO performed change to filesystem
Hello Folks - I apoligize if this has been asked and answered, but none of my searches have yielded any useful info thus far. I'm trying to determine the Windows Identity of a user who last changed a file (or directory) using .NET. I'd like to log who does what on a shared drive of a Win2k3 server. I'm using a FileSystemWatcher running on the server to monitor the folder, but so far I'm unable to determine how to find out who is performing the ...Show All
lalbertoth Working on Dev Pc but no else can access it!
I have built one and it works great on my dev PC. I can put the address to the asmx page in my browser and it comes up fine. Another dev in here puts the same address into his browser and he gets the friendly asp.net error msg. even though I have the 'Off' in the customerrors tag. How can I fix this Thanks Deasun Hey Deasun, Are you hosting your web service in IIS, or through a file-based web site in VS 200 ...Show All
LLL1111111111111 performance of NGENed C++ .NET assemblies vs native C++
I'm writing a hobbyist type direct X game in C++ express edition. I've opted to go for targeting the .NET framework instead of the win32 api since i'm more familar with it from having programmed in C# a lot but I have native C++ code from another project i want to reuse. What i'm wondering is what will be the performance impact of targeting .NET as compared to targeting native code If i run NGEN over my assembiles at install time will this im ...Show All
MarinaNZ prevent header being added in xml file
Hi, I get errors reading an xml file with my MDA, and its because of this header in the xml file: < xml version="1.0" standalone="yes" > How can i remove it and make sure that its not comming back Manually removal didn't work. After appending from xml file to xml file, its being added again. Can anybody help me with this issue I apologize for taking a bit to get back to you... ...Show All
Bogdan B Transporting a newline character (\r\n) across a web service
Hi, I had some trouble getting newlines to serialize across web services. I then read that a web service in .NET 2.0 adheres to a certain soap/xml standard wherein each \r\n character is serialized as \n. I've already written a string substitute class that overrides its own serialization and replaces the unix newlines (\n) back to Environment.Newline (\r\n). I was wondering if there is a better (cleaner) way to do this, e.g. some setting or twea ...Show All
tuanzhang Bitwise byte operators ?
I have a run the simple following lines and I am very surprised by the result byte a = 1, b = 2; Console.WriteLine((a | b).GetType()); I get a System.Int32 output. Why didn't I get a byte output Performance wise, it does not change anything, and it has the advantage of making sense in terms of typing. Thanks in advance, Joannes I believe the reason C# doesn't have them is because the CLR only su ...Show All
HYDROPOWER delete a row from an xml file using DataView
I have the following code that is deleting a row from an dataview, then writing the dataview to an xml file: string filePath = Server.MapPath(@"~/Home/XMLMenus/user_favorites/someFile.xml"); DataSet ds = new DataSet(); DataRow dr; string someValue = "someValue"; ds.ReadXml(filePath, XmlReadMode.InferSchema); DataView dv = new DataView(ds.Tables[0]); dv.Sort = "someColumn"; int i = dv.Find(someValue); if (i ...Show All
Foster Hardie How to call a specific Method via a Proxy
Hi, Here is the problem, on a client side, i got a servername, a proxy for a well know object, a method name, the methodinfo structure and the parameters of this method. What i want to do , is calling a method on the obj on the server represented by the proxy. As i load every interfaces and implementations dynamically, i cant call a method via the usual proxy.methodname(parameters) thing cause the proxy is stored as a generic obj. i tried method ...Show All
AL... Have multiple versions of .Net - can I delete them?
My computer is running XP Pro, fully updated including SP2. During my "winter clean-up" of my programs, hard drive, etc., I noticed that 3 versions, with updates, of .Net Framework was on my computer. They are: 1.0; 1.0 HotFix; 1.1; 1.1 HotFix; and 2.0. I'm pretty sure that I didn't download these (though I might have) and assume that they were downloaded with some update, or maybe some program. I never directly access th ...Show All
gaxtell Shared Memory or Memory File
Hi all, Is it feasible for me to create a chunk of SHARED MEMORY or a MEMORY FILE in .net to share some objects across boundary of processes It will be great, if you can post some working samples! Thanks, Ning Hello Ning, The newest version of the .NET Framework - 2.0 [codenamed Whidbey] includes an inter-process communication channel for Remoting based on pipes. For more information, see System.Runtime. ...Show All
Amrit Which .NET Framework compatible with which versions of .NET Framework??
I know Visual Studio .NET 2002 ships with .NET Framework 1.0, Visual Studio .NET 2003 ships with .NET Framework 1.1 Visual Studio .NET 2005 ships with .NET Framework 2.0. But how about other combinations Can I use Visual Studio .NET 2005 with with .NET Framework 1.0 Please, inform me which combinations of Studio and Framework are valid Thanks in advance. So is there no way I can compile to 1.1 from VS. ...Show All
inetcnslt XSLT for an XML with Namespace
HI can anyone help me out with this, im a newbie to xml n stuff. i really have tough time working on this . Xml file: <p:win32_Service xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:p=" http://schemas.microsoft.com/wsman/2005/06/wmi/root/cimv2/win32_Service "> <p:AcceptPause>true</p:AcceptPause> <p:AcceptStop>true</p:AcceptStop> <p:Caption>Windows Management Ins ...Show All
DLiu Array class problems.
Hi, I have som array problems, I have looked for informations about my problem, but can't find any solutions. The code below i a simpel exampel of my problem. Gratuful for any answear of my question. BR Matt Sweden --- using System; public class TelephoneBook { //!QUESTION!-HOW SHOULD A CONTRUCTOR LOOK LIKE FOR "arrPhoneBook" //!QUESTION!-HOW SHOULD A DESTRUCTOR LOOK LIKE FOR "arrPhoneBook" //Methods public ...Show All
ktm300 Using ActiveDirectoryMembershipProvider to authenticate against ADAM
Hi there, I've searched all over the internet and found more developers with the same problem, but no solutions at all. I'm using the June CTP of VS.NET 2005 on WinXP SP2 and want to use the ActiveDirectoryMembershipProvider to validate my users against ADAM. My web.config contains the following parts (where CDomain\MyUsername is a local administrator that is also member of the administrators-group in the ADAM-instance): < connectionStr ...Show All
