Re: [DOTNET] COM GUID --> file location?

2002-04-29 Thread Thomas Tomiczek
Yes, registry access. Basically, the dll location is in the registry :-) Open the regeditor and search for a GUID you know, and you can see the entries. Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message- From: Don McNamara [mailto:[EMAIL PROTECT

Re: [DOTNET] Remoting Question

2002-04-29 Thread Deepak Rao
Check out RemotingServices.Marshal() to remote an existing object. You can then use Marshal.Connect() to connect to it and Marshal.Disconnect() to stop serving the object HTH Deepak > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > Alex Henderson >

[DOTNET] Remoting Question

2002-04-29 Thread Alex Henderson
Hi All... I've written a medium-sized multi-threaded server - currently hosted as a windows service - in addition to the server classes I have a "watcher" class which attaches to server and is derived from System.MarshalByRefObject, it acts as a façade picking up statistics from the inner working

Re: [DOTNET] ImageLists and System.Reflection.TargetInvocationException?!?

2002-04-29 Thread Chris Sells
Oh my lord, that's it! I swear I've used imagelists since I added that manifest file. Thanks! Chris Sells http://www.sellsbrothers.com/ > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > Scott Densmore > Sent: Tuesday, April 30, 2002 12:02 AM > To: [

Re: [DOTNET] ImageLists and System.Reflection.TargetInvocationException?!?

2002-04-29 Thread Scott Densmore
This is looking for the manifest file... Using common controls 6.0... You probably have the manifest file for IDE??? It works ok but causes some flakiness with new apps and completely hoses up the SQL Server integration. (This is probably why they left it out). scott -Original Message-

Re: [DOTNET] ImageLists and System.Reflection.TargetInvocationException?!?

2002-04-29 Thread James Johnson
If you have the devenv.exe.manifest file installed you need to create one for your application too. IIRC this is the same error I was getting before I created one for my application. James Johnson -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Chris S

[DOTNET] ImageLists and System.Reflection.TargetInvocationException?!?

2002-04-29 Thread Chris Sells
All of a sudden, when I build a WinForms app with a non-empty imagelist, e.g. this sample [1], it throws a TargetInvocationException on the following code inside of InitComponents: this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList 1.ImageStream

Re: [DOTNET] Send data with SendMessage

2002-04-29 Thread Keith Homiski
Hi Jan, Could you post the code you are trying to get working with WM_COPYDATA? Thanks, Keith On Mon, 29 Apr 2002 01:15:53 -0700, Jan Dropczynski wrote: >Hi Steve, >thanks for your help. > >And I have another question. I have found the WM_COPYDATA message. How >about with it? Do you know how

Re: [DOTNET] Aiming to high!?!

2002-04-29 Thread Jeff Fedor
Have you looked at the templates that ship with VS.net enterprise? Would give you a running start j -Original Message- From: Andreas Håkansson [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 7:27 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Aiming to high!?! I'm planning to deve

Re: [DOTNET] Creating Add-In for VS.NET

2002-04-29 Thread Sills, Adam
How is it not running? You're pressing F5 (or clicking the Run command) and it's not doing anything? Are you sure your Addin is loaded in VS.NET (you can tell in the addin manager). I've found many times (moreso in Beta2 than RTM version) that there would be an error in my code and VS.NET would st

Re: [DOTNET] Trace question.

2002-04-29 Thread Marsh, Drew
Chris Jenkin [mailto:[EMAIL PROTECTED]] wrote: > Good ideas. I was hoping to avoid remoting...oh well. Can you > expand on OutputDebugString a little, not familiar with this. OutputDebugString is part of the Win32 Debug APIs that basically takes a string from any process and funnels it out to an

Re: [DOTNET] Cookieless Forms Authentication

2002-04-29 Thread Chris Kinsman
According to ScottGu they renamed CookieAuthenticate to FormsAuthentication in anticipation of possibly adding cookieless forms authentication in a *future* release. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss

Re: [DOTNET] Trace question.

2002-04-29 Thread Axel Heitland
WMI or the System.Management.Instrumentation namespace is my answer to this question. Exposing the logtraces as a WMI-Event won't give you an automatic popup of your viewer - you'll need to start your own logviewer explicitly. The rest of it is quite easy to implement and the performance oft hese

Re: [DOTNET] IDynamicMessageSink and new Context

2002-04-29 Thread Franklin Colbert
Thanks Henkk, I have alot to learn about remoting and call contexts so bear with me please I guess I naively though the principle of message sinking and interception could apply to existing client contexts. Indeed, since my object derives from ContextBoundObject the infrastructure DOES allow

Re: [DOTNET] Trace question.

2002-04-29 Thread Tomas Restrepo
Drew, > I'm sure someone has to have already written one of > these. Well, in that case, I guess SysInternal's excellent DebugView [1] would be more than enough. [1] http://www.sysinternals.com/ntw2k/freeware/debugview.shtml -- Tomas Restrepo [EMAIL PROTECTED] You can read messages from the DO

[DOTNET] Creating Add-In for VS.NET

2002-04-29 Thread Mike Best
Hello all, I'm trying to build an add-in for VS.NET, but seem to be missing something. I cant enable debugging for the add-in code. The only way I can get it to run is to compile the add-in, install it, then run it from the IDE. But of course, at this point I'm running compiled code, so I can'

[DOTNET] unsunscribe

2002-04-29 Thread vikas
- Original Message - From: "Chris Jenkin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 30, 2002 5:10 AM Subject: Re: [DOTNET] Trace question. > Good ideas. I was hoping to avoid remoting...oh well. Can you expand on > OutputDebugString a little, not familiar with this

Re: [DOTNET] Trace question.

2002-04-29 Thread Chris Jenkin
Good ideas. I was hoping to avoid remoting...oh well. Can you expand on OutputDebugString a little, not familiar with this. Thanks again, CJ -Original Message- From: Ingo Rammer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 4:28 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] T

Re: [DOTNET] Trace question.

2002-04-29 Thread Ingo Rammer
> Also, while it would be windows specific, you might consider > just looking for a a listening app that uses DebugActiveProcess > and WaitForDebugEvent with a DEBUG_EVENT value of > OUTPUT_DEBUG_STRING_EVENT because the > System.Diagnostics.DefaultTraceListener implementation on > windows broadca

[DOTNET] Aiming to high!?!

2002-04-29 Thread Andreas Håkansson
I'm planning to develop a system that consicts of one www section and one application section. The system is an e-Commerce system that uses the www side as a presentation layer and the windows application as a manager utility to manage the contents of the e-Commerce site. >From what I have been a

Re: [DOTNET] Trace question.

2002-04-29 Thread Marsh, Drew
Ingo Rammer [mailto:[EMAIL PROTECTED]] wrote: > write a trace lib that checks something like a semaphore [1] > which will be flagged as soon as the "Tracer GUI" is running. > It will then (only if the app is listening, i.e. if it's > flagged) send remoting requests to an object which is > publish

Re: [DOTNET] Trace question.

2002-04-29 Thread Ingo Rammer
Oh and yes, there's a problem on some operating systems which results in server side remoting channels not immediately closed after the application exits. These problems will result in an exception if you try to restart the server within a period of about 2 to 5 minutes. If you aren't afraid of s

Re: [DOTNET] Trace question.

2002-04-29 Thread Ingo Rammer
Hi Nick & Chris, well ... I'm an Ingo so I'll try to offer some advice ;-) I'd do it like this: write a trace lib that checks something like a semaphore [1] which will be flagged as soon as the "Tracer GUI" is running. It will then (only if the app is listening, i.e. if it's flagged) send remot

[DOTNET] ANN: Don Box's keynote at the Web Services DevCon now available!

2002-04-29 Thread Chris Sells
Don Box's keynote at the Web Services DevCon: The Role of Virtualization in Web Services Virtualization is a fundamental mechanism for raising the level of abstraction in software systems. All modern operating systems virtualize physical memory and interrupts through the use of a virtual memory m

Re: [DOTNET] Trace question.

2002-04-29 Thread Nick Wienholt
Hi Chris, It should be pretty simple - write a trace listener type that takes the trace output from the 2 apps and sends it to the console app via remoting. Handling instantiation of the display app could be a little tricky, but shouldn't be impossible. The display app could own a mutex, and the

[DOTNET] Debugging .NET Framework DLLs

2002-04-29 Thread Teo Lachev
Is there any way to debug (step through) the .NET Framework DLLs, such as System.dll, etc? In other words, do they come with PDB files? I am aware of the fact that I can reverse-engineer them but I am not sure whether there is any way to directly debug them. You can read messages from the DOTNET

[DOTNET] How-to convert StdPicture to .NET Image?

2002-04-29 Thread Alex Yakhnin
Hi All, I get a StdPicture returned through Interop. How can I convert it a valid Image object? Thanks... Alex You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Trace question.

2002-04-29 Thread Chris Jenkin
I would like to create a trace console for my assemblies. Example: I write 2 exe's and both use my generic trace class, I would like to pop up a console app that takes a peek at what those other 2 applications are doing while they are running. Is this possible? Was I vague enough :) CJ You can

Re: [DOTNET] why IE 5.01

2002-04-29 Thread Daniel Bowen
Starting with IE 3.0, Internet Explorer has been used to distribute several "OS" types of updates - common controls (list view, tree view), shlwapi (PathFindOnPath, UrlCombine, etc.), etc. If you look through the MSDN documentation on the C APIs to these "OS" types of functions, you can see th

[DOTNET] Reset/Reconfigure The RemotingConfiguration

2002-04-29 Thread Kelly Jackson
After using a configuration file to configure a remotable object client using the "RemotingConfiguration.Configure()" method. I've noticed that the configuration is somehow persisted by the framework. To try and subsequently read the configuration again causes an exception to be thrown. I would li

Re: [DOTNET] IDynamicMessageSink and new Context

2002-04-29 Thread Henk de Koning
Calls inside a context simply don't use the remoting infrastructure, so there's nothing to intercept. Or did I misunderstand your question ? -- Henkk - Original Message - From: "Franklin Colbert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 29, 2002 11:05 PM Subject:

Re: [DOTNET] lock - how expensive is it to call?

2002-04-29 Thread Henk de Koning
Yeah. Those sizes surprised me. I'm running on a 2 processor box, using V1, no service packs. Did the simple test, create a bunch of objects and print out the address where they're located. No boxing, so I should see the real sizes. Could have sworn last time I tested this, I got the same sort of

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

[DOTNET] IDynamicMessageSink and new Context

2002-04-29 Thread Franklin Colbert
Hello, I am attempting to do interception using IDynamicMessageSink, IDynamicProperty and IContributeDynamicSink interfaces. My hope was that I could inject my sink into the current (client) context w/out the need to create a new one and the accompanying overhead of cross context calls. (My sim

Re: [DOTNET] Problem w/ Custom Server-Side Control

2002-04-29 Thread James Alexander
Thanks Victor, any ideas on how to get around having to use the user control at all? Thanks, James -Original Message- From: Victor Garcia Aprea [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 3:43 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Problem w/ Custom Server-Side Cont

Re: [DOTNET] AxHost and IDocHostUIHandler: Check this new book out

2002-04-29 Thread David Anthoff
Oh, one more question: Would your approach still allow me to use AxHost's default implementation of IOleClientSite, IOleControlSite, IOleInPlaceSite, IPropertyNotifySink and ISimpleFrameSite that are implemented in the private class OleInterfaces inside AxHost? If not, do you provide alternative i

Re: [DOTNET] AxHost and IDocHostUIHandler: Check this new book out

2002-04-29 Thread David Anthoff
Cool! I'll buy the book right away! Just one last question: The book has a different cover colour on amazon.co.uk: http://www.amazon.co.uk/exec/obidos/tg/stores/detail/-/books/0764549146/ reviews/026-8165170-4859667 But that is the right book, isn't it? Cheers David > -Original Message

Re: [DOTNET] UrlDecode & escape characters question

2002-04-29 Thread Erick Thompson
- Original Message - From: "Marsh, Drew" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 29, 2002 1:42 PM Subject: Re: [DOTNET] UrlDecode & escape characters question > Erick Thompson [mailto:[EMAIL PROTECTED]] wrote: > > > I've noticed that the HttpUtility.UrlDecode does

Re: [DOTNET] UrlDecode & escape characters question

2002-04-29 Thread Marsh, Drew
Erick Thompson [mailto:[EMAIL PROTECTED]] wrote: > I've noticed that the HttpUtility.UrlDecode doesn't handle > some of the old style character escapes, such as "&" and > " ". While I understand that the %xx format should be > used, a lot of sites still use the older style of escapes. Is > there

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

2002-04-29 Thread Murphy, James
Well alrighty then. Thanks All. Jim > -Original Message- > From: Brad Wilson [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 29, 2002 3:44 PM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] newbie question: no tree class? > > > Axel Heitland wrote: > > > From what I know std::map is ind

Re: [DOTNET] Disrespect

2002-04-29 Thread Reggie Burnett
Henk, I agree the thread is getting old but there is an important point here. As long as I maintain professional courtesy to the other members of this list and do not let my posts turn into bash sessions toward individual corporations, I want to feel at liberty to post without individuals trying

Re: [DOTNET] why IE 5.01

2002-04-29 Thread Reggie Burnett
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? I am imagining that calling a web service over SSL will be much easier using .Net than using MFC/WTL/wxWindo

Re: [DOTNET] why IE 5.01

2002-04-29 Thread Reggie Burnett
Absolutely! I really appreciate Jerry's answer to the question and Bill's response. Good work! Reggie > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of > Bill Schmidt > Sent: Monday, April 29, 2002 12:51 PM > To: [EMAIL PROTECTED] > Subject: Re: [DOT

[DOTNET] UrlDecode & escape characters question

2002-04-29 Thread Erick Thompson
I've noticed that the HttpUtility.UrlDecode doesn't handle some of the old style character escapes, such as "&" and " ". While I understand that the %xx format should be used, a lot of sites still use the older style of escapes. Is there some way to convert these escapes, or should I manually repl

Re: [DOTNET] AxHost and IDocHostUIHandler: Check this new book out

2002-04-29 Thread Ted Faison
David, The book shows how to make a Windows Form act as an OleClientSite, allowing all the various customization interfaces (such as IDocHostUIHandler, IDocHostShowUI and others) to be handled. --Ted On Sun, 28 Apr 2002 11:48:13 +0100, David Anthoff <[EMAIL PROTECTED]> wrote: >That sounds pro

[DOTNET] COM GUID --> file location?

2002-04-29 Thread Don McNamara
Is there an easy way to programmatically determine the location of the DLL from a COM GUID in dotnet? I tried System.Type.GetTypeFromCLSID(), but it keeps giving me the mscorlib.dll. Am I using GetTypeFromCLSID incorrectly? You can read messages from the DOTNET archive, unsubscribe from DOTNET,

Re: [DOTNET] Problem w/ Custom Server-Side Control

2002-04-29 Thread Victor Garcia Aprea
<%= this.Parent.ScriptPath %> You will need to cast Parent to your custom type, HTH, -Victor. > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of James Alexander > Sent: Monday, April 29, 2002 3:46 PM > To: [EMAIL PROTECTED] > Subject: [DOTNET] P

Re: [ADVANCED-DOTNET] remoting from browser, security bug (?)

2002-04-29 Thread Michael Bealer
Thank you for the link and the information, but I'm very confused now. Basically what it seems to be saying is that although I have given unrestricted access to the sql client and ole db permission set, it's useless because the assemblies involved do not allow partially trusted callers? Regardles

Re: [DOTNET] Versioning and AssemblyInfo.cs

2002-04-29 Thread Scott Hanselman
Thanks Graeme! Scott Hanselman Technology Evangelist - Corillian Corp [EMAIL PROTECTED] - 1.503.629.4342 -Original Message- From: Graeme Foster [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 12:04 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Versioning and AssemblyInfo.cs Th

Re: [DOTNET] SP1 and trusting an assembly?

2002-04-29 Thread Chris Kinsman
I reported this bug after SP1 launched. Basically it doesn't matter if you have a policy set on the assembly unless you place the site it comes from into the trusted sites. Until that time it doesn't even look at your policy I found... You can read messages from the DOTNET archive, unsubscribe

Re: [DOTNET] Character escapes and HttpWebResponse

2002-04-29 Thread Erick Thompson
Jim, Thanks for the pointer. It appears to work correctly now in my application. Is the HttpWebResponse.ResponseUri always going to be the same Uri as was passed to the WebRequest.Create method? If the server does a redirect, is a new Uri created to reflect the actual responding Uri? Thanks, Er

Re: [DOTNET] LB SelectedIndexChanged firing on tab control?

2002-04-29 Thread Chris Kinsman
On Mon, 15 Apr 2002 11:14:12 -0700, Matt Tagliaferri <[EMAIL PROTECTED]> wrote: >I have a listbox on page 2 of a TabStrip. I set the SelectedIndex of the >listbox to 0 in code. When I click on page 2 of the TabStrip, the >SelectedIndexChanged fires again, even though the selected index is not >ch

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] Character escapes and HttpWebResponse

2002-04-29 Thread Jim Arnold
If create the request from a Uri, you can have some control over this. Try this: Uri uri = new Uri(uriString,true); HttpWebRequest req = WebRequest.Create(uri); The bool in the Uri constructor tells it to not escape the string. The Uri.UserEscaped property tells you if it has been escaped or n

Re: [DOTNET] FormsAuth.._OnAuthenticate question

2002-04-29 Thread Chris Kinsman
>In my formsAuthentication_OnAuthenticate event I want to >replace the user intrinsic with my own user object. I need to populate my >user object with additional info ( e.g. roles ); however, I do not want to >store this stuff in a cookie, and I don't want to reload it from the >database on each O

Re: [DOTNET] Devexpress Grid!

2002-04-29 Thread Chris Kinsman
I think the problem is their lack of overloaded constructors. I made a suggestion two releases back to perhaps improve on this. Just got 1.5 and haven't looked to see if they included any new constructors... You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to

Re: [DOTNET] how to pass httpcontext.user to another assembly

2002-04-29 Thread Marsh, Drew
Pete B [mailto:[EMAIL PROTECTED]] wrote: > I'll be using Forms Authentication, so I think I see what your saying. > > I can change the Thread::CurrentPrincipal in, say, the > FormsAuthentication_OnAuthenticate event. Then my user could > be accessed from my windows service or from ASP.NET by > ch

Re: [DOTNET] Datagrid problem

2002-04-29 Thread Marsh, Drew
Marshall Harrison [mailto:[EMAIL PROTECTED]] wrote: > I'm already using a DataView and I've looked at the Filter > method but that only seems to allow me to filter on existing columns. > > I need to take the lat/lon of an origin and a destination > then calculate the mileage between them. After p

Re: [DOTNET] Problem w/ Custom Server-Side Control

2002-04-29 Thread James Alexander
Ya that would definitely help. However I found that the reason I can't access properties from with in the user control is because its simply cast as a control, I would need to cast it as a the Server control from inside the user control. All around, it seems to be the better solution to pass the s

[DOTNET] Character escapes and HttpWebResponse

2002-04-29 Thread Erick Thompson
Does anyone know the rules for how the HttpWebResponse handles the path and query escapes in URIs? If I request a page with the following format: http://www.somewhere.com/page.asp?#section the HttpWebResponse.ResponseUri.AbsoluteUri is http://www.somewhere.com/page.asp?%29section It looks like

Re: [DOTNET] Disrespect / IE 5.01 requirement

2002-04-29 Thread Steve Loughran
- Original Message - From: "Reggie Burnett" <[EMAIL PROTECTED]> Sent: Sunday, April 28, 2002 1:42 PM Subject: Re: Disrespect / IE 5.01 requirement > yes, I have several responses concerning distributino of IE but the second > part of my question specifically asked for a technical reason

Re: [DOTNET] Versioning and AssemblyInfo.cs

2002-04-29 Thread Graeme Foster
There's some ideas on this subject in MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/h tml/tdlg_ch1.asp Under "The Build Process" it recommends splitting the AssemblyInfo.cs file into bits that are shared between assemblies and bits that aren't. You then use SourceS

Re: [DOTNET] how to pass httpcontext.user to another assembly

2002-04-29 Thread Pete B
I'll be using Forms Authentication, so I think I see what your saying. I can change the Thread::CurrentPrincipal in, say, the FormsAuthentication_OnAuthenticate event. Then my user could be accessed from my windows service or from ASP.NET by checking Thread::CurrentPrincipal, and I'd be good to g

Re: [DOTNET] Datagrid problem

2002-04-29 Thread Marshall Harrison
Thanks Shawn, I'm already using a DataView and I've looked at the Filter method but that only seems to allow me to filter on existing columns. I need to take the lat/lon of an origin and a destination then calculate the mileage between them. After performing the calculation I need to do one of t

Re: [DOTNET] Per Machine Singleton...

2002-04-29 Thread Marsh, Drew
Shawn Wildermuth [mailto:[EMAIL PROTECTED]] wrote: > I searched through the archives and found one discussion > about this, but it referred to a solution that wasn't posted > anymore. Is remoting my only solution to a Per Machine Singleton? Yes. =) The beauty of it is you can configure the app

Re: [DOTNET] Datagrid problem

2002-04-29 Thread Marsh, Drew
Marshall Harrison [mailto:[EMAIL PROTECTED]] wrote: > 1. After retrieving the data I need to programtically adjust > the data in a column. To be exact I need to convert a string > date in MMDD format to a proper date format. I can't seem > to find a way to do this? Use a DataGridTextBoxColum

Re: [DOTNET] Problem w/ Custom Server-Side Control

2002-04-29 Thread Bryan Batchelder
Do you need to call the base CreateChildControls function? --b Bryan Batchelder eBusiness Consultant ConnectWise, Inc. 813-935-7100 x 425 > -Original Message- > From: James Alexander [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 29, 2002 2:46 PM > To: [EMAIL PROTECTED] > Subje

Re: [DOTNET] Datagrid problem

2002-04-29 Thread Sills, Adam
> 1. After retrieving the data I need to programtically adjust the data > in a column. To be exact I need to convert a string date in MMDD > format to a proper date format. I can't seem to find a way to do this? If you're using a database, why not convert the MMDD date string to an actual

[DOTNET] Problem w/ Custom Server-Side Control

2002-04-29 Thread James Alexander
I've been attempting to write a server-side web control and have run into a bit of a hurdle. In my web control, I'm overriding the CreateChildControls method to load a user control, like this: protected override void CreateChildControls () { EditorControl oEditorControl = (EditorControl) Page.

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

2002-04-29 Thread Axel Heitland
>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 ;-) My regards Axel -Original Message- From: Murphy, James [mailto:[EMAIL PROTECTED]] Sent: Montag, 2

Re: [DOTNET] Per Machine Singleton...

2002-04-29 Thread franklin gray
on the server I take it. You can pass in an ID to the shared Instance function, the search a list of objects stored (you don't have to just have one) to see if that person already has an instance. If not, create one, if so, return that one. -Original Message- From: Shawn Wildermuth [m

Re: [DOTNET] lock - how expensive is it to call?

2002-04-29 Thread Willy Denoyette
Small correction... A 'naked' object holding a boolean takes 12 bytes, adding an int makes it 16 bytes, and adding up to 3 booleans will not change this, as the CLR will change the lay-out and put all booleans in one Int32, however adding 4 booleans will make it 20 bytes long. Willy. - Or

Re: [DOTNET] Datagrid problem

2002-04-29 Thread Shawn Wildermuth
I can't remember off the top of my head how to do #1 (but it can be done), but #2 can be done with a DataView. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Marshall Harrison > Sent: Monday, April 29,

[DOTNET] Datagrid problem

2002-04-29 Thread Marshall Harrison
I'm binding a DataGrid to a DataView and I have two small problems: 1. After retrieving the data I need to programtically adjust the data in a column. To be exact I need to convert a string date in MMDD format to a proper date format. I can't seem to find a way to do this? 2. After retrievin

Re: [ADVANCED-DOTNET] remoting from browser, security bug (?)

2002-04-29 Thread John Cavnar-Johnson
You still have a similar problem. Although System.Data.dll does have the attribute many of its methods require full trust. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetse c/html/aptcatypes.asp for a complete list. It is important to remember that FullTrust and the

Re: [DOTNET] Per Machine Singleton...

2002-04-29 Thread Ingo Rammer
Shawn, I guess that maybe apart from using COM interop to do it "the old way", Remoting is the way to go here. It will only take a couple of lines of code to publish an object. Just don't forget to override InitializeLifetimeService() to return null, else your object will be destroyed after some

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

2002-04-29 Thread Kit George
Arild, We are looking at what standard collections would make sense to include in the product in future versions. Tied in to this decision is of course the introduction of template (generics) support. While no decisions have been made on either of these topics, we do welcome any feedback you, or

Re: [DOTNET] lock - how expensive is it to call?

2002-04-29 Thread Willy Denoyette
As far I can see a 'naked' Object instance takes 12 Bytes, one with a single int 16 and adding 1 up to 4 boolean takes 20 bytes. Willy. - Original Message - From: "Henk de Koning" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 29, 2002 7:12 PM Subject: Re: [DOTNET] lock

Re: [DOTNET] VS.NET on XP

2002-04-29 Thread Jeff Fedor
I actually used to get 100% spikes on a P-3 1GHz CPU with 512MB RAM and then VS.net would be "not responding" so it was pretty much hung but also did get the same thing you described below same machine is fine with 2000AS and .net enterprise server though j -Original Message- From: Pe

[DOTNET] [Q] OnItemDataBoundEventHandler/Cast to...?

2002-04-29 Thread João Pedro Martins
Hello, I have a DataGrid binded to a SqlDataReader. I want to customise the looks (all values in one line, and not the default of several columns with values) of each datagrid line, so I created a OnItemDataBoundEventHandler event handler: public void OnItemDataBoundEventHandler(object sender, D

[DOTNET] Versioning and AssemblyInfo.cs

2002-04-29 Thread Scott Hanselman
Hey All, We have a complex ASP.NET application that consists of on 50+ ASP.NET pages 2 WebServices 4 Interop Libraries Several ASP.NET User Controls 200+ Unit Tests * Consequently there are 66 AssemblyInfo.cs files. * All of them are set to [assembly: AssemblyVersion("1.0.*")] for now. It's t

Re: [DOTNET] Per Machine Singleton...

2002-04-29 Thread Shawn Wildermuth
I mean one (and only one) instance of an object for each client and process. I had implemented it as an all static class (in-proc singleton), but now I realize that I need one instance per machine. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussio

Re: [DOTNET] why IE 5.01

2002-04-29 Thread Bill Schmidt
Jerry -- Congratulations. In 24 replies to the original post, you are the first one to actually answer the question (except for Andrew Cherry's guess, which was only speculation). I appreciate contributors who actually read the question and stay on topic. Despite all of the emotional rhetoric,

Re: [DOTNET] how to pass httpcontext.user to another assembly

2002-04-29 Thread Marsh, Drew
Pete B [mailto:[EMAIL PROTECTED]] wrote: > I'm just going to validate that a user is within a certain > role and perform tasks or filter data based on that role. > I'll define a separate 'superuser' and I'd like my window's > service to run in the context if this 'superuser'. If this is the case

Re: [DOTNET] VS.NET on XP

2002-04-29 Thread Peter Waldschmidt
This happens to me as well on a Windows XP machine with a single monitor. It is not really hung. I can get it back using the "Switch To" button on the Windows Task Manager. > -Original Message- > From: Brian G. Vallelunga [mailto:[EMAIL PROTECTED]] > Posted At: Monday, April 29, 2002 1:

Re: [DOTNET] lock - how expensive is it to call?

2002-04-29 Thread Henk de Koning
Ahhh. The current build aligns on a 4 byte boundary. So, what you're saying is, adding one boolean could actually increase in-memory class size with 4 bytes ? Wow ... -- Henkk ;-) BTW, a naked System.Object instance seems to take 32 bytes. A user defined class with one Int32, takes 36 bytes. Add

Re: [DOTNET] Confirm string GetHashCode reflects string, not object

2002-04-29 Thread Erick Thompson
> But the question I would ask is are you actually wasting more space by > storing MD5 hashes than you would be by just remembering the strings in the > first place? Unless your strings are on average longer than 128 bytes (the > size of an MD5 hash) then it will actually be rather more expensive

Re: [DOTNET] Per Machine Singleton...

2002-04-29 Thread franklin gray
what do you mean by Per machine? As in having an object on the server for each client, or having an object on each client, but only one object? -Original Message- From: Shawn Wildermuth [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 11:57 AM To: [EMAIL PROTECTED] Subject: [DOTN

Re: [DOTNET] ImageList/resource-problem

2002-04-29 Thread Sean Greer (SBI-Chico)
I've seen this before and it didn't have anything to do with the resources, but IIRC, it was caused by my having declared another helper class in the source *before* the class that had the imagelist member. That is, namespace Pluto { public class PlanetHelper { //

Re: [DOTNET] VS.NET on XP

2002-04-29 Thread Brian G. Vallelunga
I have seen this too, but the program doesn't hang, it merely can't be restored. Usually, right-clicking on VS and choosing Maximize gets it working again. Brian -Original Message- From: Kevin Burton [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 1:05 PM To: [EMAIL PROTECTED]

Re: [DOTNET] VS.NET on XP

2002-04-29 Thread Kevin Burton
I have found that if I have Outlook or Word or any application that uses Word that VS.NET help will hang (stay minimized in the bottom application bar). I have to either restart my machine or simply log out to regain control. I have not noticed it to be specific to XP but I will keep my eyes open.

[DOTNET] Possible VS.Net bug ... in templatecolumn

2002-04-29 Thread Guha, Rahul
Gentlemen, Let me describe a scenario which seems to me a reproducible bug in VS.Net : I am creating a ASP.Net web app in c#. In the aspx page ( or in ascx ), in the design mode I add some kind of data bound server side control ( like a datalist / datagrid ). Then use the templatecolumn for that

[DOTNET] Per Machine Singleton...

2002-04-29 Thread Shawn Wildermuth
I searched through the archives and found one discussion about this, but it referred to a solution that wasn't posted anymore. Is remoting my only solution to a Per Machine Singleton? Thanks, Shawn Wildermuth [EMAIL PROTECTED] http://adoguy.com http://shawnwildermuth.com "...for the programmer

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

2002-04-29 Thread Arild Fines
> I think you mean binary tree - which can get very unbalanced. The standard specifies logarithmic time lookup for associative containers such as std::map. If the tree is not balanced, it could degenerate to linear time in certain cases(if the data is already sorted, f.ex). So I say its a fair be

Re: [DOTNET] VS.NET on XP

2002-04-29 Thread Jeff Fedor
yes -- switched back to 2000 because of it :( j -Original Message- From: Mackay, Scott [mailto:[EMAIL PROTECTED]] Sent: April 29, 2002 12:23 PM To: [EMAIL PROTECTED] Subject: [DOTNET] VS.NET on XP Has anyone else had problems with VS.NET and XP's multiple desktops. (XP Professional)  

[DOTNET] VS.NET on XP

2002-04-29 Thread Mackay, Scott
Has anyone else had problems with VS.NET and XP's multiple desktops. (XP Professional)   When I select a desktop with VS.NET and try to restore it from minimised it quite frequently hangs!   Thanks Scott   *

Re: [ADVANCED-DOTNET] remoting from browser, security bug (?)

2002-04-29 Thread Michael Bealer
Sorry, I guess I should have been more specific. In my case I am not trying to use remoting, the thing that is happening to me is that I cannot connect to a SQL Server database without giving full-trust. The odd part of my problem and Steve's problem is that giving every permission available doe

Re: [DOTNET] why IE 5.01

2002-04-29 Thread Jerry Sidfrid
I believe the reason the IE 5.01 is required is because Dot Net installs a MIME filter that is compatible with version 5.01 and greater. When this MIME filter detects a managed assembly is being downloaded, it makes a call to CorBindToRuntimeEX - bootstrapping the CLR. This allows IE to host manag

[DOTNET] ImageList/resource-problem

2002-04-29 Thread MSTSE Developer
hy all, I´ve the following problem: I created a control and than added an ImageList to this control. I put some pictures into the list and everything was fine. There were no problems, neighter at designtime nor at runtime. Now I´ve added only one little picture and changed the order of items

Re: [DOTNET] Thread.Sleep and DateTime resolution

2002-04-29 Thread Shawn Wildermuth
TickCount has never clicked every millisecond. Depending on the OS, it's been anywhere from 10-40 ms if my memory serves me correct. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] > On Behalf Of Richard Kucia > Sent:

  1   2   >