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
May 2008
June 2008
all groups > dotnet framework > july 2004 > threads for july 15 - 21, 2004

Filter by week: 1 2 3 4 5

Multiple concurrent asynchronous writes on a Stream (NetworkStream
Posted by Rua Haszard Morris at 7/21/2004 8:44:03 PM
Here's a (I think) simple question: If I issue multiple async writes on a NetworkStream, is the data guaranteed to be sent in the correct order? i.e. stream.BeginWrite(.. data A ...); stream.BeginWrite(.. data B ...); Will data A always be completely sent before B is sent? I figure...more >>


how to define this?
Posted by ZhangZQ at 7/21/2004 3:53:04 PM
if there is a C function in a DLL(My.dll) has this declaration, struct MyStruct { int a; int b; }; int MyFunc(int param1, MyStruct** param2); how to define this in C# ? if there is another C function like this int MyFunc1(int param1, char** szRtn);, I can define it as [D...more >>

String object optimization in Framework 1.1 compared to 1.0
Posted by Oleg Sobol at 7/21/2004 2:04:36 PM
Hi, all... The question I have concerns string objects and how they are executed by CLR. Based on an article written in 2002 (last updated Dec 2003) http://www.codeproject.com/dotnet/strings.asp , it is more advisable to use StringBuilder class than the String object to manipulate strings in ...more >>

Methode required equal to URLDownloadToCacheFile()
Posted by Thorsten at 7/21/2004 12:24:39 PM
Hello, the class WebClient has a method DownloadFile(), but in this case I would need to care for the target directory and filename, as well as for deleting the file after use. In urlmon.dll is a method URLDownloadToCacheFile(), which downloads files directly to the cache of Internet Explor...more >>

playing sounds
Posted by Balint Toth at 7/21/2004 12:00:02 PM
Hi all, I have an incomming raw PCM data (byte[]) in 2048 bytes blocks. I would like to play these sounds, but I cannot find any function that does such a thing. Please help me! THanks in advance! Best regards, Balint Toth ...more >>

Winforms
Posted by Alvin Bruney [MVP] at 7/21/2004 11:02:15 AM
I've read and seem to find support for the notion that winforms is stillborn. Anybody else share the same feeling? ie, it didn't lift off like Asp.net or console apps. Is this (winforms) being used widely in industry. What would make an author stake a claim that winforms was unsuccessful? (c...more >>

iSCSI target implemented in .Net
Posted by Ken Allen at 7/21/2004 10:35:24 AM
I am interested in developing an iSCSI target component, but instead of writing it as a device driver, I wish to implement it as a Windows service developed in .Net (and C#). I understand that Microsoft provides an iSCSI client, but they do not provide the target code at all. Basically my iSCSI ...more >>

Referencing Binaries (Copy Local False) without GACing
Posted by Shikari Shambu at 7/21/2004 10:09:35 AM
Hi, Is there a way for a web application (ASP.NET) to reference binaries and use it without having copy local set to true or GACing the binaries. If yes, how would I do it. TIA ...more >>



Is there any tunnelling support in .NET?
Posted by Peter Steele at 7/21/2004 6:19:00 AM
I need to write a simple proxy that forwards requests from an external client to another server's address/port? Is there support for this kind of tunnelling in .NET? ...more >>

Unrecognized configuration section 'appSettings'
Posted by winshent-google NO[at]SPAM yahoo.co.uk at 7/21/2004 3:23:44 AM
I receive the following message which i cant figure out what is the problem. A copy of my web.config file is below it.. Any ideas? Server Error in '/myWebApp' Application. -------------------------------------------------------------------------------- Configuration Error Descriptio...more >>

Implementing .NET Passport - registry setting for XP
Posted by jukia NO[at]SPAM hotmail.com at 7/20/2004 10:37:54 PM
I need to update the client registry on an XP machine so it can log into the Passport pre-production nexus. However, the link provided in all of the Passport SDK documentation to download the sample registry file does not work. Does anyone know where I can find a copy of the registry file? Th...more >>

Are .NET Framework 1.1 apps on Linux possible?
Posted by Ron Fluegge at 7/20/2004 4:16:58 PM
I have both a Windows Form application and a ASP.NET web-based application built with .NET Framework 1.1 that a client wants to run on a Linux box. I have searched the net and MSDN but cannot determine if the applications can or will run on a Linux box. Searching for Linux on the Microsoft sit...more >>

XML WebService Deserializer choking on SOAP Faults
Posted by DoomBringer at 7/20/2004 4:09:05 PM
I'm hitting up a XML SOAP WebService (developed with Apache Axis). Any time the web service sends a SOAP fault across the wire, the XML deserialization process throws a XMLException, as opposed to the SoapException as it should. The SOAP messages look 100% fine to me (they look up to spec), so it ...more >>

Window not repainting
Posted by Phil at 7/20/2004 12:11:03 PM
I have a .net/C# com object that creates a thread and a window to output results obtained in the thread (the thread is reading a com port). Everything seems to be working correctly (I don't get any errors), but no results are displayed in the window. If I move the window it is not repainting itsel...more >>

save the XML string or the XmlDocument object in session?
Posted by Bob at 7/20/2004 10:58:58 AM
I'm wondering how much more memory an XmlDocument object takes than the corresponding Xml string? I have some user data to store in ASP.NET session and everytime it's used, an XmlDocument object is needed. If there's not too much difference in the memory consumption, then saving the object woul...more >>

search in a HashTable, DataTable, and XmlDocument, which is faster?
Posted by Bob at 7/20/2004 10:55:39 AM
I have a name-value pair type of data that I need to search against. It's to determine what menu item to highlight given the asp.net page name. So the list has all my page names (unique) and the corresponding menu IDs. Some pages have the same menu IDs. One every page load, I want to check the...more >>

reference question
Posted by z f at 7/20/2004 7:28:20 AM
Hi, if i make a DLL with vb/c# dot.net and then reference this DLL from another application, is there some global initialization occured on the DLL from only having the reference or does it use memory and make initialication only when the referencing app making a new class instance and a func...more >>

Setting <customErrors mode="Off">
Posted by winshent-google NO[at]SPAM yahoo.co.uk at 7/20/2004 7:12:47 AM
I get this problem and cant sort it.. i have read a number of threads which all seem to point to the fact that it does work.. However, i am connecting to a remote SQL Server and the webserver is also remote. I cannot debug either. I have read that i might need debugging permissions on the we...more >>

DLL Referencing...
Posted by fahad at 7/20/2004 4:57:02 AM
Hya, I am working on an application which is divided into many projects. All of the projects are are divided into two major portions... - the persistance (all related projects in a same solution) - the business (all related projects in a same solution) If a project of persistance requires ref...more >>

Is this a memory leak?
Posted by BenC at 7/20/2004 4:30:01 AM
Hi, I've been having problem with a socket listener as a windows service consuming all available memory. The following code reproduces my problem: Dim lSocket As New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP) lSocket.Bind(New IPEndPoint(IPAddress.An...more >>

dotnet application project plan
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 7/19/2004 10:23:52 PM
Guys have a look at the following website. They have dotnet project plan templates for application development. http://www.balfourgroup.com.au...more >>

Encryption
Posted by Alvin Bruney [MVP] at 7/19/2004 8:25:11 PM
Anybody have some code for two way encryption? I'd be interested in storing credit card information securely in a database and retrieving as needed. -- Regards, Alvin Bruney [ASP.NET MVP http://mvp.support.microsoft.com/default.aspx] Got tidbits? Get it here... http://tinyurl.com/27cok ...more >>

RegularExpretion for negation of expression?
Posted by Evgeny Zoldin at 7/19/2004 5:39:08 PM
High ALL, in MSDN for .NET is the following: [^aeiou] Matches any single character not in the specified set of characters. Is it possible to constract Regular Expression that will do something like this: ^<EXPR> Matches any expression (sequence of symbols) does ...more >>

Compare two files?
Posted by Klaus Jensen at 7/19/2004 3:46:21 PM
Hi! I need to compare two textfiles and find out IF they are dirrefent (how they are different does not matter). I need to do it as quickly as possible, since thousands of files are going to be compared. I basicly need to do what the dos-program "fc" (filecompare) does. What is the best w...more >>

AARRRRGGGGGHHHHHHHH!!!!! I'm pulling my hair out here. OpenType fonts aren't working!
Posted by Tim Greenwood at 7/19/2004 3:20:06 PM
We've added the opentype font 'Myriad' to our windows install. There are several variations. These fonts do not show up in the System.Drawing.FontFamily.Families array. I wrote a quick Visual C++ app to use the EnumFontFamilies() WINAPI to get a list of fonts and they show up. There's got to ...more >>

FormsAuthentication.HashPasswordForStoringInConfigFile
Posted by Mircea Pleteriu at 7/19/2004 2:36:37 PM
Does somebody know how FormsAuthentication.HashPasswordForStoringInConfigFile works inside? ...more >>

Framework 2.0 available?
Posted by Goober at christianDOTnet at 7/19/2004 12:02:53 PM
Is (when) the Dotnet Framework 2.0 going to be available? SC ...more >>

Heterogeneous Messaging Libraries
Posted by David Elliott at 7/19/2004 10:31:08 AM
I know this is slightly off topic. The MSMQ groups looked unused. I am looking for some messaging libraries that can be used in a heterogeneous environment. We are expanding our MS .NET distributed application to take advantage of some 3rd party tools on the Unix platform. In doing so, I w...more >>

Performance cost of casting
Posted by Joel at 7/19/2004 9:45:35 AM
Is there a run-time performance cost for casting? ...more >>

using .h files in C#
Posted by MVB at 7/19/2004 8:14:03 AM
Hi I am writing a windows application in C# and I want to use some header files from a C++ program in my C# code. How can I do this?? Thanks and Regards MVB ...more >>

.NET Windows Service
Posted by Peter Milne at 7/19/2004 2:25:15 AM
Hi, I'm new to the windows service area. I have built a few of the examples of a windows service (in C#) that are available on the net. Everything goes to plan and they each install successfully with the Installutil.exe prog. My trouble starts when I attempt to start the service, i get the mes...more >>

Is it (null == something) or (something == null)?
Posted by Stano at 7/19/2004 1:43:05 AM
I frequently see .NET coders, especially C# coders, use the following syntax: if (null == something){DoSomething();} instead of the much more intuitive if (something == null) {DoSomething();} Is this an example of anally-retentive programming held over from some bygone C era, or are ther...more >>

Assembly loading question
Posted by David zhu at 7/18/2004 10:49:39 PM
I'm confused that if only the strong named assembly can't be loaded successfully for different AssemblyVersion, or it works on every assembly?...more >>

More book recommendations...
Posted by Mark Broadbent at 7/18/2004 6:56:42 PM
please :) Im looking for books particularly for the 70-315 exam (Developing and Implementing Web Applications with Microsoft Visual C#T .NET and Microsoft Visual Studio .NET) , the 70-300 exam (nalyzing Requirements and Defining Microsoft .NET Solution Architectures). For the 70-315 the Ka...more >>

version resistant serialization
Posted by Lloyd Dupont at 7/18/2004 4:10:46 PM
I wrote a custom channel to do custom remoting :) I would like it to be version resistant. Let say I have a customer having an old version of the product and an other having a newer version with some different field, sigh... I would like the communication to kind of try to work anyway. I ...more >>

.NET 2003 subtract precision of double & float
Posted by Clever & Smart at 7/18/2004 8:00:03 AM
Hi there I'm using the Visual Studio .NET 2003 -> C#. If i try to subtract 145.05 - 140.0 i will get 5.050000000001. Why isn't the result 5.05? My testcode is: double a = 145.05; double b = 140; double c = 0; c = a - b; this.txtResult.Text = c.ToString(); I thought that could...more >>

Interactive Window Station
Posted by Nnamdi Onyeyiri at 7/17/2004 7:08:41 PM
Hi. Is it possible to create a desktop in a new interactive window station (has WINSTA_READACCESS right) and view it? I am making a desktop switching application, that can switch between desktops on the default window station, however - I would like to add the ability to have "run once" app...more >>

ANN: .NET 2.0 Beta - CODE COVERAGE EDITION
Posted by Thomas Scheidegger [MVP] at 7/17/2004 9:44:38 AM
NET Framework Version 2.0 Redistributable Package Beta 1 (x86) CODE COVERAGE EDITION The .NET Framework Code Coverage Edition is a new mechanism that enables you to give Microsoft direct feedback on what portions of the .NET Framework and Win32 you're most reliant on. http://www.microsof...more >>

Just-In-Time Errors [Please Help]
Posted by Tiraman at 7/16/2004 9:49:20 PM
Hi , i m getting the following errors under the eventlog while i m trying to run some class that i wrote. at the first i got an error about the just-in-time : access denied and i added the permissions as i read in some article but this didn't help to so i disable the JIT from the IDE properti...more >>

to use or not to use weakreference ?
Posted by hb at 7/16/2004 6:23:34 PM
Hi Suppose i keep my data query results in the cache using the cache object that comes with .net. What do you think if i keep them in cache using WeakReference so GC can collect them ? I was doing some testes with it, but the items seem to be too much times garbage collected... and my cache...more >>

DCOM Permissions Configuration from .NET
Posted by Robert Bogue at 7/16/2004 5:32:53 PM
Has anyone seen any code for setting DCOM permissions from .NET? There's the DCOMPERM sample from VS 6.0 C++ but I've not seen a way to do this in ..NET. I can convert the code but I'm looking for an easier solution. I'm trying to put together an installer and I need to tweak the access per...more >>

Trying to read IP Address information from the registry
Posted by Larry Powell at 7/16/2004 4:12:35 PM
I'm attempting to read IP addresses from the registry and have hit a stumbling block. While I have no difficulty moving through the registry values finding strings of the REG_SZ type when I try to get information form the REG_MULTI_SZ - I get errors. The following code works just fine. It...more >>

event notification remotely?
Posted by nick at 7/16/2004 3:54:39 PM
What's the best way to implement the RPC/XML-RPC or similar ones between two Windows applications running on different PC?...more >>

Question about SelectedItems in ListViews
Posted by Beringer at 7/16/2004 2:54:42 PM
Hello, I have a listview and have set the MultiSelect property to false. I assumed that if I monitored the OnSelectedIndexChanged event that I could obtain the currently selected item from the SelecteItems collection by referencing the 0 index. When I do this however, I get a runtime exce...more >>

Do I need to "release" a reference to an object living in a different app-domain.
Posted by Peter Strøiman at 7/16/2004 2:20:53 PM
Hi. I have a component that needs to run in its own execution environment and with its own configuration file. Therefore I create a new AppDomain at runtime. Let's say that my component exists in "a.dll" there I have public class MyClass : MarshalByRefObject { public void test();...more >>

evaluate math expressions
Posted by OJO at 7/16/2004 2:14:39 PM
Hello microsoft.public.dotnet.framework! I'm wondering if there is any class in framework that provides ability to evaluate math expressions like for example "(2+2*8)^2". I searched through assemblies but found nothing usueful. As my application uses internet connection, I though about us...more >>

can I use this same Validation control to validate multiple textboxes?
Posted by Bibin at 7/16/2004 11:08:37 AM
Dear All, I am developing a POS application in ASP.Net. In my ASP.Net forms, I may be having around 15 TextBox controls. I will need to validate these controls while editing. I just want to know that, can we able to use a single validation control for multiple TestBox? Becaue some textbox...more >>

static props and methods = global variables??
Posted by Daniel Billingsley at 7/16/2004 10:57:28 AM
I'd like to set (on launch) and then keep some AppDomain-wide variables. Is there anything "bad" with doing something like this (dumb example), or is there another more "standard" way of accomplishing it? public class SomeInfo { private static _someText; public static string Text...more >>

How many people have the .NET framework installed?
Posted by johtib NO[at]SPAM hotmail.com at 7/16/2004 3:33:07 AM
Hi! I'm trying to decide if there are enough people with the .NET framework installed for me to be able to write applications for the home market in it. Are there any statistics on how many downloads/installations there are? Thanks, Johan Tibell...more >>

WEBCAST ON Data Structures found in the .NET Framework
Posted by NK at 7/16/2004 3:24:02 AM
Hi, I saw a recorded webcast regarding data structures found in the .NET Framework. However I am unable to locate a link to it now. It would be a great help if any one who sees it can send a URL to it. thanks NK...more >>

DataGrid and DataTable probs
Posted by Edge at 7/15/2004 10:00:14 PM
Hey all, I have a simple datatable consisting of a few columns of the type Boolean and some rows. Using the defaultView of the table, I connect it to a dataGrid. The datagrid automatically displays the table as a grid of checkboxes. You can set and unset these boxes and the table is updated a...more >>

HttpWebResponse without connecting to Server
Posted by Daniel Danilin at 7/15/2004 9:37:19 PM
How can I use HttpWebResponse without realy connecting to a WebServer, and only use it, for example, to parse HTTP Response from a file or byte array, or a stream? Or is there other way without to self implement HTTP Protocol? Thanks Daniel ...more >>

Can i comment out "private System.ComponentModel.Container components = null;" to avoid warning in wizard generated code?
Posted by Daniel at 7/15/2004 6:44:38 PM
When ever I add a projectinstaller to a C# windows service the wizard generated code causes this compile time warning: C:\foo\foo\ProjectInstaller.cs(21): The private field 'foo.ProjectInstaller.components' is never used -- Is it safe to resolve this by just commenting out "private System.Comp...more >>

mixing .NET and .NET Compact DLL's on a PocketPC
Posted by Jo Vermeulen at 7/15/2004 5:24:27 PM
Hello, I'm working on an application which depends on XPath queries. I would like to port it to the .NET Compact framework though. Is it possible to replace the usual .NET Compact DLL by a full .NET framework DLL (System.Xml in this case)? I would also like to know the procedure for doin...more >>

Weak Reference Race Condition
Posted by Chris Mullins at 7/15/2004 3:55:13 PM
If I have an object held only by a weak reference, and I write code that looks like: dim strongRef as Object if wr.IsAlive() then strongRef=wr.Target else strongRef=new MyObject() end if There is a fairly signifigant race condition - between the "wr.IsAlive" call and the wr.Target c...more >>

Call a process in a .NET add-in
Posted by kyx368 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 7/15/2004 3:21:53 PM
Hello all, I am working on an Add-in to the .NET framework using C#. I need to call another .exe file in my application. Right now I can only make it work using the absolute path for that exe file like this way: myProcess.StartInfo.FileName = "C:\\Documents and Settings\\user\\translato...more >>

How to see if another application/Window is minimized?
Posted by DraguVaso at 7/15/2004 2:32:48 PM
Hi, How can you see with a VB.NET-application if the Window of another Application (for exemple an opened Word-Document) is Mimized? Is there also a way to see if it is Maximized? Thanks a lot, Pieter ...more >>

Interested in trading ?
Posted by Mark at 7/15/2004 2:12:43 PM
Hi group I have one ebook for (ebook)-70-315 MCSD MCAD -- Develop & Implement Web Apps with C#.pdf (www.correctexams.com) And ebook for O'Reilly - Programming C# 2nd Edition.pdf In return of that I want Amit Kalani's book and Microsoft MCAD/MCSD Self Started Kit. We can work i...more >>

Linkage to MS Office...
Posted by The Goulds at 7/15/2004 11:35:02 AM
Can you link .net framework objects inside an MS Office App, say the rich text box within an Access database? Thanks! ...more >>

Invoking delegates in a base constructor
Posted by Joel at 7/15/2004 10:36:40 AM
Here's a tricky one for all the .NET heads. I have a base class B with a constructor and an initialization method: public B() { Initiliaze(); } private void Initialize() { //enumerate through a farily large list } I have a derived class D that implements the default constru...more >>

DockPanel Suite and DockManager Control
Posted by DraguVaso at 7/15/2004 10:07:31 AM
Hi, I want to use the "DockPanel Suite" or "DockManager Control" from Weifen Luo (http://www.freewebs.com/weifenluo/DockManager.htm). Did anybody here used them once? And did they work fine? And what about the DockPanel Suite? It is indicated as the new version of the dockManager, but it's ...more >>

Figure out whether DirectX is installed or not
Posted by esch NO[at]SPAM syssoft.uni-trier.de at 7/15/2004 9:33:56 AM
Hallo, i am writing a C# application using dotnet. My problem is: The application has to figure out whether DirectX is installed or not. Can anybody tell me how to do this? Thanks...more >>

C# Reflection: const string from enum; how to
Posted by Stuart Baker at 7/15/2004 6:17:57 AM
HI there: Without delving into too much detail I wish to accomplish the following: Given: enum enumError { TooBig, TooSmall, Mandatory, } const string TooBig = "Oi - this exceeds your limit!"; const string TooSmall = "oooh! Not big enough!"; const string Mandatory = "ju...more >>

Treenode selection confusing
Posted by Aristeidis Bampakos at 7/15/2004 2:46:02 AM
I have a tree node called Sales with two child nodes, Persons and Products. There are also two context menus, one for Sales and one for Persons/Products.When I select Sales with left click its ok. After I have selected Sales, I right-click a child node but the context menu of the Sales appears. That...more >>


DevelopmentNow Blog