Re: [ADVANCED-DOTNET] Environment.ExpandEnvironmentVariables throws a security exception

2002-06-26 Thread Brad Wilson
Jeff Roberts wrote: > why would a Environment.ExpandEnvironmentVariables call throw an exception > while being executed out of the Intranet security zone ? Because it can be used to reveal sensitive details of the machine. Imagine letting anybody expand "windir", "PATH", or "ComSpec" and you can

[DOTNET] [OT] Jumping the gun

2002-06-11 Thread Brad Wilson
And hopefully not jumping the shark. :) I'm un-subscribing from this list because of the new segregated lists. See you all there! Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMent

Re: [DOTNET] Is this DOTNET list available after 7/1/02 ?

2002-06-11 Thread Brad Wilson
Jeff Roberts wrote: > I noticed that when I search the archives, it says that the list will be > retired on 7/1/02. What does this mean ? The list itself will be "unpostable" as of 7/1. There are new lists set up that segregate the traffic (and so far, for those who have used them, has done an e

Re: [DOTNET] ADO.NET and Dispose

2002-06-11 Thread Brad Wilson
Chris Anderson wrote: > Basically..Am I going overkill on the Dispose methods? Not at all. If a class implements IDisposable, that means it wants to call Dispose the absolute moment you're through. In the case here, it means database connection resources are returned to the pool to be used by ot

Re: [DOTNET] UI for Windows service

2002-06-07 Thread Brad Wilson
Erick Thompson wrote: > My questions are related to managing the service. I want to have a fairly > complex form to manage the service, which is started from the context menu. > Should I put this form in a completely different assembly then the service, > and/or call it from a different thread? W

Re: [DOTNET] Tool to convert vs.net csproj, sln to nmake file?

2002-06-07 Thread Brad Wilson
Andy Elmhorst wrote: > I am also looking for a way to do this. Has anyone created the tool yet? I > am very novice when it comes to creating nmake files, so I'm hoping an > nmake pro could do the job. . . Google for "Slingshot". It can convert .csproj files to makefiles and NAnt build files. Br

[DOTNET] XML is not a database

2002-06-07 Thread Brad Wilson
Bryan Batchelder wrote: > In memory databse using XML and Xpath: > http://www.15seconds.com/issue/010410.htm While this is an interesting possibility, it presents a few (perhaps important) problems: 1. Significant memory consumption. For the moment, XPath requires a DOM, and a DOM requires t

Re: [DOTNET] Using DataSets as an IMDB

2002-06-07 Thread Brad Wilson
Connolly, Paul wrote: > Yea but where else are you going to get a SQL compliant, fully featured > RDBMS for free. We've used it here for the past couple of years for our > remote workers and have had very few problems. Even using a replication > scheme we wrote ourselves! Surely you jest, right?

Re: [DOTNET] Using DataSets as an IMDB

2002-06-07 Thread Brad Wilson
Connolly, Paul wrote: > Why not use MSDE all you'll need is a different connection string and its > free :-) Sure, and it's huge, a pain to install and un-install properly, it runs all the time and will consume up to 1/2 the system RAM. MSDE is like driving nails with thermonuclear devices. Wro

Re: [DOTNET] Using DataSets as an IMDB

2002-06-06 Thread Brad Wilson
Dean Cleaver wrote: > Means I have to have 2 different database access methods, although I > guess that's not so bad now - have to get out of the COM mindset and > think assemblies... If you use the OleDb* family of classes and limit yourself to the lowest common denominator, it's just one set o

Re: [DOTNET] Using DataSets as an IMDB

2002-06-06 Thread Brad Wilson
Dean Cleaver wrote: > I have a project that the client wants to be able to operate in a > corporate environment with many users on SQL Server, and also in a > standalone environment (I don't mean these users working offline, I mean > a "1 user site") without SQL Server. > One thought I had was t

Re: [ADVANCED-DOTNET] Size of object

2002-06-05 Thread Brad Wilson
Joel Mueller wrote: > That's the problem, though, isn't it? Every time a GC runs, and you > don't know when that is, your entire cache is cleared out, except for > the objects that you might happen to actually be using at the time of > the GC. Wouldn't it be better to retain the items that were u

Re: [DOTNET] ANN: QuickAdmin V1.1 - Maintenance interface builder

2002-06-05 Thread Brad Wilson
David Steinblock wrote: > It is not a spam. I personally like to see what is going on in the > industry by reading this list and yes, that includes the product > announcements. It is highly relevant content to the list. It is not YOUR > list and it is not YOUR mail box. Actually, the owners of t

[DOTNET] Newsgroups (was Re: [DOTNET] Administrative Announcement - Please Read)

2002-06-05 Thread Brad Wilson
Zane Thomas wrote: >> And a newsgruop is a more convinient format of these kind of >> discussions. > I completely agree with that. It's not clear to me why the mailing list couldn't be bridged with a news group. That's pretty simple technology, and would allow people to consume the list in the

Re: [ADVANCED-DOTNET] Size of object

2002-06-04 Thread Brad Wilson
Murphy, James wrote: > I understand that the refinement over using weak references would be to > dictate the objects that get collected rather than letting the GC decide. As I see it, these objects will never get out of gen 0 unless they're being held during GC, which should be rare enough (don'

Re: [DOTNET] Odd XML Parsing exception when I pass & in...

2002-06-04 Thread Brad Wilson
Phill Tornroth wrote: > At any rate, my problem is that if I get XML like the stuff shown below: > Result="FAILURE_UNKNOWNUSER"/> > The '&' character in the post causes the data to get chopped in half (I'm > assuming this is because the '&' character is a field delimeter in http).. It should

Re: [ADVANCED-DOTNET] Size of object

2002-06-04 Thread Brad Wilson
Joel Mueller wrote: > Maybe I'm misunderstanding the documentation, but it seems to be saying > that if I have a weak reference to an object, the GC doesn't see that > object as any different from an object to which I have no reference, > even though I might want it to leave weak-referenced objec

Re: [DOTNET] Administrative Announcement - Please Read

2002-06-03 Thread Brad Wilson
Marsh, Drew wrote: > Personally, while I'm wasn't exactly pro-fragmentation initially, as long as > cross-posting doesn't get out of hand then there shouldn't be any real > difference. Technologically, it should be feasible to prevent cross-posting of messages, although I'm not aware that any ma

Re: [DOTNET] Administrative Announcement - Please Read

2002-06-03 Thread Brad Wilson
Reggie Burnett wrote: > At least 50% of the traffic on this list should be posted to the Advanced > list and this list should be focused on the folks asking how to databind > controls and how to set focus to a control. Try not to overwhelm the small team of volunteer moderators on the advanced l

Re: [DOTNET] ANN: QuickAdmin V1.1 - Maintenance interface builder

2002-06-03 Thread Brad Wilson
Jim Stanton wrote: > Come on. Why the hostility? He prefixed it with a ANN. Learn how to use > outlook rules to filter. In his defense, there IS an appropriate list for this kind of stuff. It's called "dotnet-products". Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read

Re: [DOTNET] Administrative Announcement - Please Read

2002-06-03 Thread Brad Wilson
Murphy, James wrote: > 2. Degradation in the value of the list due to "dilution" I get to be the voice of dissent today, I guess. This is the largest problem here, and I disagree that "go somewhere else" is the right answer. These lists provide value because of the people on them, not because o

Re: [DOTNET] Fonts

2002-06-02 Thread Brad Wilson
Tomas Restrepo wrote: > Brad, >> Only TrueType/OpenType fonts in the Fonts folder. This would seem to >> exclude all fixed-size fonts (like Terminal)... > Not really, just those that are not TT/OT. There are several TrueType > fixed-size fonts, such as Lucida Console (assuming, that is, that by

Re: [DOTNET] Fonts

2002-06-02 Thread Brad Wilson
Dustin Wish with NCA Communications wrote: > I would assume that any font in the font folder could be used by windows > (Please correct if I'm wrong). >From Windows, yes, that's true. From Windows Forms (GDI+), no, that's false. Only TrueType/OpenType fonts in the Fonts folder. This would seem t

Re: [DOTNET] Fonts

2002-06-02 Thread Brad Wilson
Ian Griffiths wrote: > If it's not in the FontFamily list of families then you can't use it. > As far as I know this means it will cover all the fonts in the fonts folder. > (Although I'm not sure about the ancient font formats - the strange > plotter-like fonts and the non-scalable ones. I als

Re: [ADVANCED-DOTNET] Constructors and Exceptions

2002-05-31 Thread Brad Wilson
David Williams wrote: > Basic level question maybe, but I can find no other place to ask. :) > What happens when an exception is thrown in a constructor (New() for us > VB'ers)? Is the class created? It is in mid-creation. The resulting code that is attempting to create it, though, will not se

[DOTNET] I am not out of the office. I swear! :)

2002-05-30 Thread Brad Wilson
Zane Thomas wrote: > Dunno about the rest of you, but I get much more tired of getting a couple > of "I will be out of the office until Tuesday, June 4." replies everytime > I post to this mailing list than I do of the occassional > advertisement/annoucement. heh. No problem here, since they get

Re: [DOTNET] Windows Software Restriction Policies and CAS

2002-05-30 Thread Brad Wilson
John Lam wrote: > My question is: how is this handoff managed? I know that under > Windows.Net Server that the Windows loader understands the managed PE > file format, so presumably this is how they did it under Windows.Net > Server. However, the Windows XP doesn't understand managed PE files > n

Re: [DOTNET] Code behind error in ASP.NET

2002-05-30 Thread Brad Wilson
Kevin Burton wrote: > When I try to run it I get the following error. Any idea what is wrong? I > have recompiled the FeaturedProduct.vb code behind and made sure that it is > in the bin directory but I still get the error. Is the FeaturedProduct class in a namespace? You may need to qualify the

Re: [DOTNET] C# Equivs of VB Functions

2002-05-30 Thread Brad Wilson
Jeremy Hopkin wrote: > But I thought it was worth pointing out that VB.NET doesn't have any > libraries that you cannot use from C# (Least not that I am aware of) and > they are all there available to use from C#. > Whether it is sensible to use them or whether you want to use them is a > differ

Re: [DOTNET] Do Enum's take up memory ?

2002-05-29 Thread Brad Wilson
Jeff Roberts wrote: > Does an enum take up memory ? The declaration of that enum does not take up any memory, not. Using one takes up the same amount of (and placement of) memory as its base type. Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTNE

Re: [DOTNET] Operators, CLS compliance, friendly partner methods

2002-05-29 Thread Brad Wilson
Jon Jagger wrote: > Does anyone know... > /1/ why the friendly method should be an instance method rather than a > static method? Actually, I might be tempted to do both, but it depends on the usage. Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the D

Re: [DOTNET] ASP.NET and HTTP request routing in a web farm

2002-05-28 Thread Brad Wilson
George Mladenov wrote: > This is exactly what I want and I was hoping that there is something built- > in to do it. Sorry if it sound stupid, but would it be possible to open up > an HTTP request to the second host directly if there is load balancing > software installed. Like I said, it depends

Re: [DOTNET] ASP.NET and HTTP request routing in a web farm

2002-05-28 Thread Brad Wilson
George Mladenov wrote: > Response.Redirect will require a roundtrip to the browser, correct? How do > you do the same thing without the roundtrip? If it's not on the same machine, then there's nothing built-in that can do it for you. Of course, you could open up an HTTP request to the second hos

Re: [DOTNET] ASP.NET and HTTP request routing in a web farm

2002-05-28 Thread Brad Wilson
George Mladenov wrote: > What I would like to do is to terminate the execution of the current page > and begin the execution of another page but on a specific server from the > farm. Generally server farms don't work this way (however, if you wanted to bounce to another server, you might be able

Re: [DOTNET] VB.NET Oddity

2002-05-28 Thread Brad Wilson
Patrick Burrows wrote: > No, it was converted for display according to local settings. Locale doesn't tell me whether I want to show two or four places after the decimal place. Locale is only helpful for dates & times, and when you are looking for very specific types of formatting (currencies, e

Re: [DOTNET] web dialog

2002-05-28 Thread Brad Wilson
Kompella, Kamesh S APX wrote: > window.showModalDialog() > and > window.showModellessDialog() If you want to limit yourself to IE, these functions work great. I've used modal dialogs in a web application (ASP, not ASP.net, but that hardly matters) because the requirements stated that I should. T

Re: [DOTNET] VB.NET Oddity

2002-05-28 Thread Brad Wilson
Patrick Burrows wrote: > I can't think of a logical reason why the guy who wrote the Format() > function would do this. In fact, I would think it would be best to > convert anything passed in, no matter what, into a string, do the > formatting (which is now easier cause it is a string) and then r

Re: [DOTNET] web dialog

2002-05-28 Thread Brad Wilson
Dawid Greyvenstein [AST EH] wrote: > What is the best (most pure) way of creating ASP.NET dialog forms? (The > equivalent of Form.ShowDialog() in windows forms). Depends on the browser you're targetting. IE 5+ has dialog-box style functionality available from JavaScript. If you need to be cross

Re: [DOTNET] Problem with the VS.NET utilities

2002-05-27 Thread Brad Wilson
Rathna Raj wrote: > Few of the tools like al.exe, sn.exe do work. But many others like > ResGen.exe, TlbImp.exe, WinCV.exe, etc don't work. When was the last time you did a comprehensive virus scan? Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOT

Re: [DOTNET] bug in the compiler? VS.NET? XP? Me?

2002-05-27 Thread Brad Wilson
Jesse Liberty wrote: > Any ideas? I've been unable to find any information on this at all. Bug in Zone Alarm, known about for more than a year at least. Most people gave up, uninstalled it, and moved onto something else (like Black Ice Defender). Brad -- Read my web log at http://www.quality.n

Re: [DOTNET] Accessing struct properties

2002-05-24 Thread Brad Wilson
Federico Raggi wrote: > Interestingly, if you define Foo as a class instead of a struct then Foo > [0].Bar can be modified and has the correct "bar" value after the loop. If > Foo is an struct it doesn't. That's because in the direct array access code, the structs are being directly modified. In

Re: [DOTNET] Accessing struct properties

2002-05-24 Thread Brad Wilson
Jim Arnold wrote: > but *not* this: > Foo[] foos = new Foo[1]; > foos[0] = new Foo(); > foreach(Foo foo in foos) { > foo.Bar = "bar"; > } > The compiler error is distinctly unhelpful: "The left-hand side of an > assignment must be a variable, property or indexer" - which it plainly is. >F

Re: [DOTNET] Generating Makefiles

2002-05-24 Thread Brad Wilson
Stefan Finch wrote: > Does anyone know if there is VS.NET add-in that can generate makefiles? There is an open source program called Slingshot that can turn VS.net project files into either makefiles or NAnt build files. Sorry, no URL handy. Google's your pal. :) Brad -- Read my web log at htt

Re: [DOTNET] How to insert into the Head - Solved

2002-05-23 Thread Brad Wilson
Collins, Michael G wrote: > if( control as LiteralControl != null ) More readable, IMO: if( control is LiteralControl ) :) But in reality you should probably just use as to perform the cast into a local, and then check that against null and use it. Prevents the expensive double

Re: [DOTNET] Hashtables and structs

2002-05-23 Thread Brad Wilson
Greg Gates wrote: > 2) What is the most efficent way to sort and filter a hashtable in .NET. Hash tables are not stored in any ordered fashion. Retrieval will appear to be random based on the hash algorithm used. Of course, you can retrieve all the items and use your own sorting system as necess

Re: [ADVANCED-DOTNET] Help Architecting A Middle Tier

2002-05-23 Thread Brad Wilson
franklin gray wrote: > "Honestly, I think clients concerns about you being in the same DB as > other companies' is weak at best." > I agree, but my boss doesn't. He says that companies will not use our > product if their data is shared with others in a DB. I can't argue that > because I don't kn

Re: [DOTNET] .NET Command Window Shell

2002-05-23 Thread Brad Wilson
David Ferguson wrote: > I can't get anything to work if I use %comspec%. In order to use > %..%, I thought you had to create a SZ_EXPAND key, which you can't > normally do through REGEDIT. You can use REGEDT32 to create REG_EXPAND_SZ keys. Brad -- Read my web log at http://www.quality.nu/dotn

Re: [DOTNET] Source code to CodeDom Graph

2002-05-22 Thread Brad Wilson
Howard Kim wrote: > If anyone has any other ideas that would be great! Likely your best (free) bet is to check with Mono and Portable.NET to see if/when they intend to implement this functionality. Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTN

Re: [DOTNET] strange behaviour with Garbage Collector

2002-05-20 Thread Brad Wilson
Howard Bartfield wrote: > i'm not convinced it's to do with 2 GCs, because the following > doesn't work either: > Excel.ApplicationClass appClass = new Excel.ApplicationClass(); > appClass = null; > GC.Collect(); > GC.Collect(); Well, then, my last estimation would be to say that the objects j

Re: [DOTNET] strange behaviour with Garbage Collector

2002-05-20 Thread Brad Wilson
Howard Bartfield wrote: > i checked to see if System._ComObject implements a Finalizer using > ildasm, and it doesn't appear to. Hmm, I thought it did implement one, which released the COM object. It even behaves as though someone in the chain does. Perhaps the code is inserted into the generate

Re: [DOTNET] strange behaviour with Garbage Collector

2002-05-20 Thread Brad Wilson
Howard Bartfield wrote: > however, I'm just concerned to find out why the Garbage Collection doesn't > work in the first example, but does in the second. Probably because it implements a Finalize. You'll need to collect twice to actually get the object cleaned. Objects with finalization require

Re: [DOTNET] Forcing Exception Handling

2002-05-17 Thread Brad Wilson
David B. Bitton wrote: > In Java, if something is defined as throwing an exception, the calling > function must catch it. Is there anything like this in C#? No. See the archives if you'd like to witness the entire lengthy debate on the subject. :) Brad -- Read my web log at http://www.qualit

Re: [DOTNET] C# Nesting an If/Else inside of an If/Else???

2002-05-16 Thread Brad Wilson
Wareham, Matt wrote: > meaning can it even be done?? Yes, it can be done, and your code looks right. Was it a paste or a re-type? Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMe

Re: [DOTNET] IJW and P/Invoke

2002-05-16 Thread Brad Wilson
madhu c. wrote: > Thank you very much Brad..I may still bug you guys with my stupid doubts > about .NET in this forum. > BTW coud you suggest any books for Managed C++ ? Yep. "Visual C++ .NET: A Primer for C++ Developers" http://www.amazon.com/exec/obidos/ASIN/1861005962 Brad -- Read my web

Re: [DOTNET] IJW and P/Invoke

2002-05-16 Thread Brad Wilson
madhu c. wrote: > I still don't understand what the advantage IJW gives to the programmer > (if we have more work to do). More work, more benefit. You get full fledged objects, and an easy path from which to promote your unmanaged code to managed code (without having to muck with changing the cl

Re: [DOTNET] IJW and P/Invoke

2002-05-16 Thread Brad Wilson
Madhu Cheriyedath wrote: > 1) Use P/Invoke in Visual Basic.NET and call the functions in the DLL This should certainly work, and is the path of least resistance, especially since I'm assuming that the DLL currently just exports a bunch of functions (since you couldn't have directly consumed a C+

Re: [DOTNET] ref and cast

2002-05-15 Thread Brad Wilson
Rolls, Robert wrote: > so the call is > Object othingy = thingy; > DoTheCall( ref othingy); > Why can't I simply cast thingy at the time of call to an object like so > DoTheCall( ref (object)thingy ); Because it's a temporary. You'd never be able to get the changes back from the call. The box

Re: [DOTNET] Win32 API to Framework mapping?

2002-05-15 Thread Brad Wilson
Casey Schmit wrote: > It doesn't have to be 100% accurate, or contain every function, but if > it could shove me in the right direction, it'd help quite a bit. Does > this resource exist? Sounds like a nice (and probably extensive) project for the MSDN documentation people. Put "see also" refer

Re: [DOTNET] ping V2

2002-05-15 Thread Brad Wilson
Dumitru Sbenghe wrote: > The example use sockets in an unsual way (raw sockets) > Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, > ProtocolType.Icmp); > and the asp.net user ASPNET doesn't have enough rights to do that; I believe you need administrative privileges to op

Re: [DOTNET] CLR execution

2002-05-14 Thread Brad Wilson
Sam Gentile wrote: > Right-) Guess I meant in-directly executed by the VES. So In Windows, the > VES does nothing? IL is never executed by it? That question I can't answer. That's a new term for me... Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the D

Re: [DOTNET] CLR execution

2002-05-14 Thread Brad Wilson
Sam Gentile wrote: > But does it ever really "process" or "execute" CIL in its VES since all > .NET code is JIted and always runs native code? In MS's .NET implementations, CIL is never directly executed. However, if you use the Mono interpreter (MINT), then it is (I assume that's what you mean

Re: [DOTNET] AOP & .Net

2002-05-14 Thread Brad Wilson
Peter Foreman wrote: > 1) Is anyone working on AOP for .Net? John Lam has an Aspect Weaver for .NET that he's working on. http://www.iunknown.com/AOP/fog000114.html http://www.iunknown.com/AOP/fog000115.html No clue on your other questions. Brad -- Read my web log at http://www.quali

Re: [DOTNET] Auto-Minimizing Console Apps

2002-05-14 Thread Brad Wilson
Boyd Campbell wrote: > Is there a way in code (C#) for me to specify that my console applet run > minimized? The Win32 code would be: ShowWindow( GetConsoleWindow(), SW_SHOWMINIMIZED ); Not sure if the console APIs are exposed in .NET or not... you might need to P/Invoke to GetConsoleWindow

Re: [DOTNET] Hide part of code from Developers

2002-05-13 Thread Brad Wilson
Peter Vertes wrote: > The original key doesn't get transmitted via the network nor does it get > hard coded. Two comments. First, "strSecretKey" is your key. How do you not call that hard-coded? Second, did you read the original post? Someone is trying to find a way to hide the key they need t

Re: [DOTNET] Hide part of code from Developers

2002-05-13 Thread Brad Wilson
Peter Vertes wrote: > How about storing the key on a remote server ? When you need it you connect > to it get it. Or extending on this idea; you could store the key on a > remote server, when you need to authenticate you call the authentication > code on the remote server side and have it spit

Re: [DOTNET] Hide part of code from Developers

2002-05-13 Thread Brad Wilson
Brent E. Rector wrote: > There is no absolutely secure way of doing this. It all boils down to > how hard do you want to make them work to get the key. +1. Anything that the code can do automatically, a person can walk the code to discover it as well. Brad -- Read my web log at http://www.qual

Re: [DOTNET] Hide part of code from Developers

2002-05-13 Thread Brad Wilson
Kevin Hector wrote: > actually, i just read the user guide and can't find any reference to > obfuscating internal data, but at least they have a 'community edition' > which is a free, command-line only code obfuscator I've never seen an obfuscator that obfuscates data, only symbols and code. Br

Re: [DOTNET] Timeout on UDP Packet

2002-05-12 Thread Brad Wilson
dave wanta wrote: > I'm writing a UDP program and I'd like to have the socket time out if it > doesn't recieve an answer in n milliseconds. You won't get any support here from the socket layer, because it's not designed to do this. Write a timer and do it yourself. Brad -- Read my web log at h

Re: [DOTNET] Attacked again (---

2002-05-12 Thread Brad Wilson
Sam Gentile wrote: > Well, now I am apparently the subject of an attack about my rant [...] Well, my gut feeling is to ignore these kinds of things. It was a personal attack combined with ego gratification ("here's how _I_ would've handled it"). From an objective standpoint, he sure looks like a

Re: [DOTNET] Attacked again (---

2002-05-12 Thread Brad Wilson
Mark A. Gregory wrote: > The link you give to the attack is "not found", > maybe it has been pulled? http://www.kuro5hin.org/story/2002/5/12/03311/9485 (Haven't read it yet, just figured out the right link) Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages fro

Re: [DOTNET] Encrypt Key in the code

2002-05-11 Thread Brad Wilson
Farhan wrote: > It's sat night and i am getting brain dead. I am encrypting username and > password using System.Security.Cryptography, but problem is that i have > hard-coded Key in the code, which is not safe. How will i hide the Key from > developers to see? I have no idea what your applicati

Re: [DOTNET] OT - Job posting list

2002-05-10 Thread Brad Wilson
franklin gray wrote: > 1) Is there a Job Posting list? [EMAIL PROTECTED] > 2) Below is where I have looked in the past for the area I am in now > (Houston, Tx). Any other ideas? Dice.com HotJobs.com Getting in with many reputable headhunters is probably your best bet in this market. Brad --

Re: [DOTNET] Lame compiler error of the day...

2002-05-10 Thread Brad Wilson
Marsh, Drew wrote: > You exceeded 2046 characters in one line of code?!? :O It was machine generated code, and ASP.net tossed cookies all over my browser as a result. Lame! Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTNET archive, unsubscribe f

[DOTNET] Lame compiler error of the day...

2002-05-10 Thread Brad Wilson
Compiler Error Message: CS1034: Compiler limit exceeded: Line cannot exceed 2046 characters /me suggests the compiler team might consider that wacky "dynamic buffering" thingy everybody talks about these days... Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages

Re: [DOTNET] Could not access 'CDO.Message' object

2002-05-09 Thread Brad Wilson
John wrote: > Is there any way around this (Excluding things like giving the ASPNET > account System rights). I just want to be able to write the script copy to > my host and have it work. Actually, you should be just fine if you don't set the SmtpServer property at all. Brad -- Read my web l

Re: [DOTNET] Csc problems with using statements

2002-05-07 Thread Brad Wilson
Sills, Adam wrote: > class GreatLand.Core.DataManager {} [...] > using GreatLand.Core.Data; If this isn't a typo, then what you really wanted was: using GreatLand.Core; There doesn't seem to be a GreatLand.Core.Data namespace anywhere. Brad -- Read my web log at http://www.quality.nu/dotn

Re: [DOTNET] Confusion about the Type system...

2002-05-07 Thread Brad Wilson
Shawn Wildermuth wrote: > 1. Specify in my base class that a constructor style is required (like > marking it abstract, but C# doesn't support this of course) > .or. > 2. Create objects of the Type of my base class and at runtime, up-cast > them to the new type. As ugly as it sounds, I would say

Re: [DOTNET] RFC: COM "Smart Pointer" for .NET

2002-05-07 Thread Brad Wilson
Peter Stephens wrote: > So I made a wrapper object that implements IDisposable and then calls > Marshal.ReleaseComObject(...) on Dispose(). I think it's nearly criminal () that the .NET team didn't add Dispose() support automatically on generated COM wrappers! > // Properties >

Re: [DOTNET] Detecting DotNet from the browser

2002-05-03 Thread Brad Wilson
Justin Harrell wrote: > IE is also the only browser that allows CLR client deployment too, > right? For all intents and purposes, you aren't really going to be realistically running code _inside_ the browser in any browser, over the public Internet, with the SP1 security changes (unless you can

Re: [DOTNET] Detecting DotNet from the browser

2002-05-03 Thread Brad Wilson
Nikhil Kothari wrote: > The HTTP_USER_AGENT string contains the version of the CLR installed on > the user's machine. If you're using ASP.NET, you can use the ClrVersion > property of the HttpBrowserCapabilities object to get the version of the > CLR. This only works if the user browses to your

Re: [DOTNET] Sockets on one machine?

2002-04-30 Thread Brad Wilson
Erskine, Bill wrote: > My question is if an application sends and receives socket communication on > the same machine, does it actually use the NIC card? No. > And how can I verify this? You can trust me? :) (Local communications go through what's called a "loopback" adapter, which sorta simu

Re: [DOTNET] Big map for games

2002-04-30 Thread Brad Wilson
Paul Mercer wrote: > Just as a side note DirectPlay can be troublesome if you are going to be > running the game behind proxy/NAT/firewall devices. Really? You think opening up 1000 ports on your firewall is a potential issue for some people? :-D Honestly, DirectPlay is crap. Until they can l

Re: [DOTNET] why IE 5.01

2002-04-29 Thread Brad Wilson
Reggie Burnett wrote: > Also, [and I think I know the answer to this] would it be everyone's > suggestion here that if I am going to leverage web services from a client > app, then .net will make my life much easier? The MS SOAP Toolkit can be used from unmanaged languages like C++ and VB. There

Re: [DOTNET] newbie question: no tree class?

2002-04-29 Thread Brad Wilson
Axel Heitland wrote: > From what I know std::map is indeed using a balanced tree since the > lookup time in a map should have log(n)-complexity. > However there might exist some dumb std::map's out there ;-) By definition, std::map must have log(n) lookup; given the other requirements, that pre

Re: [DOTNET] Windows authentication and Netscape

2002-04-28 Thread Brad Wilson
Reggie Burnett wrote: > Digest auth is a web server function. Why in the world would it require a > domain controller? IIRC, I believe that digest authentication is tied to an Active Directory. The typical way to get secure logins for non-IE is basic auth inside HTTPS. Brad -- Read my web log

Re: [DOTNET] Disrespect

2002-04-28 Thread Brad Wilson
Reggie Burnett wrote: > There is not a person there to be hurt. Really? Microsoft is an advanced artificial intelligence, devoid of any humans at all? This is real news! > M$ is not a sign of disrespect, it is a sign of disapproval. No, disapproval is writing opinion pieces in papers, and havi

[DOTNET] Disrespect

2002-04-27 Thread Brad Wilson
Michael Weller wrote: > M$ Dev Environment 2002 v7.0.9466 > M$ .NET Framework 1.0 v1.0.3705 Can you please show proper respect when posting to a technical forum? This sort of behavior is fitting of adolescents, not professionals. Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You

Re: [DOTNET] why IE 5.01

2002-04-27 Thread Brad Wilson
Reggie Burnett wrote: > Any idea where I can get a full install of IE 5.01 that I can ship on my > products cd? It is possible/likely that some of my clients may not have > active net connections at the time of installation. The only way you're allowed to redistribute IE is by signing up for th

Re: [DOTNET] [OT] eBooks (was Wrox)

2002-04-26 Thread Brad Wilson
Curtis Koppang wrote: > I don't know why technical publishers (i.e. Wrox, MSPress, etc) have not > bought into the eBook thing yet. There's more money to be made in physical books, and the piracy problem of e-books really needs to be addressed (solidly) before it will become popular. Personally,

Re: [DOTNET] Try Ctrl-M Ctrl-O, it rocks!

2002-04-25 Thread Brad Wilson
Rob Perkins wrote: > They all sound a lot like the old Wordstar/Turbo Pascal keyboard macro > commands. heh, and people complain about Emacs! :) This is the same kinda stuff... (By the way, one of my co-workers was very impressed at the Don Box demo by the fact that Box used Emacs and the comma

Re: [DOTNET] Super stupid version question...

2002-04-24 Thread Brad Wilson
Rory Becker wrote: > I can't get this to work. > It does not seem to affect the version number displayed under the > properties of the exe produced. > Can anyone think of a way I might have turned the incrementation off? Only two ways I know of. One is, the file with your assembly properties

Re: [DOTNET] Exception architecture of .NET

2002-04-24 Thread Brad Wilson
Miguel Ángel Chacón wrote: > where is the ‘throws’, that makes a developer to ‘mark’ his functions that > throws a particular type of exception. There is no "throws" specification in C#. See the mailing list archives for massive quantities of debate on both sides. Brad -- Read my web log at ht

Re: [DOTNET] Named Pipes for Remoting - thanks you (and a question about named pipes)....

2002-04-23 Thread Brad Wilson
Tom Archer wrote: > Yep. I came from OS/2 years ago and with NP being the IPC of choice on OS/2 > hated those early versions of Windows. I think you can use anon pipes though IIRC, you can access a named pipe that already exists if you're on 9x, but you can't create a new one. It's a ludicrous l

Re: [DOTNET] XMTextReader or XML?

2002-04-21 Thread Brad Wilson
Rolls, Robert wrote: > Would that mean having to load the whole document before the expression > could evaluate. Yes. Generally a document needs to be parsed to use XPath, although I believe there is some work towards a forward-only version of XPath that could then be used against a streaming pa

Re: [DOTNET] XMTextReader or XML?

2002-04-21 Thread Brad Wilson
Rolls, Robert wrote: > is it possible to give one of the xml reader classed an XPath expression > so it trundles off through the XML until it finds it? I've got a large > file and I want to locate a set of nodes within it. Look at System.Xml.XmlDocument. It derives from XmlNode, which implements

Re: [DOTNET] Wrox

2002-04-19 Thread Brad Wilson
Marshall Harrison wrote: > Have you forgotten your weblog? > It's been 11 days now and nothing new to read. Must be busy or something. Too busy! And not enough important opinions of late. ;) Brad -- Read my web log (whenever I manage to update it, that is...) at http://www.quality.nu/dotnetgu

[DOTNET] Wrox

2002-04-19 Thread Brad Wilson
Marshall Harrison wrote: > Is it just me or has WROX quality gone down? The difference between Wrox and (let's pick a good company, here) AW is that when a Wrox book comes out, you have to know the author is good. I've found that Wrox books appear to have very little editing done to them (gramma

Re: [DOTNET] Green thread support

2002-04-19 Thread Brad Wilson
Jim Arnold wrote: > I'll take your word for it. Actually, no I won't :-) Why *would* fibers be > any more scalable/available than threads? I don't see how splitting an > already interruptible thread into yet more mini-threads would give you > anything but more interruptions. Primarily because

Re: [DOTNET] Green thread support

2002-04-19 Thread Brad Wilson
Jim Arnold wrote: > I don't know that such 'virtual' threads would have any advantage over > native threads (if threads are available on the target platform) other > than avoiding a context switch. I disagree. The use of user-controlled threads on the Win32 platform (fibers) can lead to some inc

Re: [DOTNET] Use of unassigned local variable

2002-04-19 Thread Brad Wilson
Curtis Koppang wrote: > I guess it's too much to ask for the compiler to figure this out. Exactly! :) Be glad it cares about things like this. I remember the "bad old days" (*snicker*) of C/C++ compilers that let you do whatever the heck you wanted, and all it cared about was the proper placemen

  1   2   >