Re: [ADVANCED-DOTNET] Using a common form for web and windows-based application.

2004-04-20 Thread Shawn A. Van Ness
Or vice versa, host a .NET UserControl in the HTML... (I mention only for the sake of completeness -- and because I just accidentally replied to the cross-post on dotnet-winforms... please don't do that, Vince.) http://msdn.microsoft.com/msdnmag/issues/02/01/UserCtrl/default.aspx Just how great

Re: [ADVANCED-DOTNET] Using a common form for web and windows-based application.

2004-04-20 Thread Mark W
Here is an example of doing this using XAML [1]. Cool idea but I think the work involved might out weigh the benefits (until all target desktops are longhorn or up). HTH Mark [1] http://www.devx.com/DevX/Article/20785/0/ -Original Message- From: Moderated discussion of advanced .NET to

[ADVANCED-DOTNET] UTF32 CodePoints, UTF8 Combining Chars / Surrogate Pairs, and .NET

2004-04-20 Thread Chris Mullins
I've spent quite a bit of time over the last year trying to implement RFC 3454 (Preparation of Internationalized Strings, aka 'StringPrep'). This RFC is also a dependency for RFC 3491 (Internationalized Domain Names / IDNA) which is something that I also need to support. The problem that I've bee

Re: [ADVANCED-DOTNET] Smuggling delegates via the context

2004-04-20 Thread Arlie Davis
I still don't understand why abusing the remoting infrastructure helps you at all. Just use a static event, or a static naked delegate instance. Or, store a reference to your "main" form in a global field or property. The type system is your friend, not your enemy. Your code should only interac

Re: [ADVANCED-DOTNET] Using a common form for web and windows-based application.

2004-04-20 Thread Curt Hagenlocher
From: "Seref Arikan" <[EMAIL PROTECTED]> > I'm certainly aware of the differences between local apps and HTML. The > ONLY capability i want to use is to display a form for data entry. > That's all. No data validation on client side, no fancy user interfaces, > they're as simple as they can be (cal

[ADVANCED-DOTNET] Moderator Notice

2004-04-20 Thread Richard Blewett
Just to let people know - Ian, Mike and myself have been beaten into submission by the sheer volume of spam we have to process in order to moderate this list. For some reason listserve software can't be set to spam filter *moderated* lists. So as of now, the Advanced .NET list has changed to an un

Re: [ADVANCED-DOTNET] Smuggling delegates via the context

2004-04-20 Thread Ross Diesel
I recognise that I'm abusing the call context in this specific situation. The motivation was primarily an R&D one as it appeared to be the quickest mechanism (without reworking interfaces) to get a notification from any one of a number of modeless dialogs back to my main test harness dialog. The m

Re: [ADVANCED-DOTNET] Using a common form for web and windows-based application.

2004-04-20 Thread Tiseo, Paul
Unless you get somewhat fancy, as in using something like XUL, XAML or MXML to describe an interface, and using something (XSLTs?) to transform it for one or more targets, with the transformation engine being smart enough to adapt/reduce for each target. But, which ends up being less work? Create

Re: [ADVANCED-DOTNET] Using a common form for web and windows-based application.

2004-04-20 Thread Brown, Peter
I'm a huge fan of windows forms apps. However, in this case I have to ask why you are even bothering with one? If the form is as simple as you say, and you have to maintain a web version anyway, why bother with a windows forms app at all? Or perhaps conversely, why bother with a web app at all? :-

Re: [ADVANCED-DOTNET] Using a common form for web and windows-based application.

2004-04-20 Thread Seref Arikan
Well, I'm certainly aware of the differences between local apps and HTML. The ONLY capability i want to use is to display a form for data entry. That's all. No data validation on client side, no fancy user interfaces, they're as simple as they can be (call it exteremely idiotic if you want). My bu

Re: [ADVANCED-DOTNET] Smuggling delegates via the context

2004-04-20 Thread Arlie Davis
There are so many different ways to do this, and many of them seem preferable to (ab)using the remoting infrastructure. Can you describe what you are trying to accomplish, and why you believe it requires using the call context? -- arlie -Original Message- From: Moderated discussion of a

Re: [ADVANCED-DOTNET] Is this legal? -> no compiler or runtime errors are generated

2004-04-20 Thread Arlie Davis
Enums are not boxed directly to their base (integer) type. Casting an instance of an enum to object boxes the enum instance. Try this some time: Console.Write (((object) TestEnum1.Value).GetType().FullName); -- arlie -Original Message- From: Moderated discussion of advanced .NET topics

Re: [ADVANCED-DOTNET] Using a common form for web and windows-based application.

2004-04-20 Thread Thomas Tomiczek
> This would speed things a lot, especially for enterprise development. Possibly. But only if you like extremely idiotic surfaces. You may not be aware of it, but the capabilities of local applications and html are vastly different. You CAN NOT move environments without basically getting the wo

Re: [ADVANCED-DOTNET] Using a common form for web and windows-based application.

2004-04-20 Thread Seref Arikan
Hi, This is the question that i've been thinking about for some time. My idea is to design a GUI form, and save it in some format (probably XML based) and then render it to different types of environments like web or windows forms. XUL on java is based on this idea, if i'm not wrong, and XAML w

Re: [ADVANCED-DOTNET] Public abstract classes with internal abstr act methods

2004-04-20 Thread J. Merrill
At 03:04 AM 4/20/2004, Marek Malowidzki wrote (in part) >I believe that it happens quite often in varions object libraries that >although they are based on interfaces or even sometimes on classes, they in >fact only operate on objects created earlier by the library. The genuis(es) who designed .N

Re: [ADVANCED-DOTNET] Is this legal? -> no compiler or runtime er rors are generated

2004-04-20 Thread Block, Jeffrey A. (Jeff)
Certainly legal from the compiler's perspective. I think of enums as more of a business-rule named constant. That said, yes, 1=1, but the semantics of Value == SomeOtherValue might not be true, but only your logic surrounding these two enums can make the call on this. Jeff Block -Original

Re: [ADVANCED-DOTNET] Is this legal? -> no compiler or runtime errors are generated

2004-04-20 Thread Thomas Tomiczek
Hmpf. ::I assume that this works since the enum value is boxed and unboxed to an int. Wrong. It works because enums CAN be cast to their primitive type. Boxing never enters the equation here. What you ask for is legal - by design. Reference: Language specification. Thomas Tomiczek THONA Softw

[ADVANCED-DOTNET] Is this legal? -> no compiler or runtime errors are generated

2004-04-20 Thread Chris Stefano
Consider two enums enum TestEnum1: int { Value = 1 } enum TestEnum2: int { SomeOtherValue = 1 } and the code object x = TestEnum1.Value; TestEnum2 y = (TestEnum2)x; I assume that this works since the enum value is boxed and unboxed to an int

[ADVANCED-DOTNET] Has MS's design of ObjectSpaces changed considerably?

2004-04-20 Thread Bill Bassler
I looked at info on ObjectSpaces back in the summer. It appears that MS might have received negative feedback on their original design (I'm attempting to remember ... ObjectSpaces seemed to be little more than some kind of simple data container) I took another look today. I'm seeing more what I wo

[ADVANCED-DOTNET] Smuggling delegates via the context

2004-04-20 Thread Ross Diesel
Hi I'm trying to smuggle a form event handler to another form using the context, and I'm getting a cast error when I try to retrieve the delegate from the data slot. DelegateDef.cs == namespace X { public delegate void DaEventHandler(object sender, EventArgs e); } Form1.cs

Re: [ADVANCED-DOTNET] Public abstract classes with internal abstr act methods

2004-04-20 Thread Marek Malowidzki
> > However, if DoSomething() operates on a number of objects: > > > > t.DoSomething2(someIf1, someIf2, someOtherIf3); > > > > then the situation may change. I recall at least one project in which the > > supplied references were cast internally by DoSomething2() to private > types > > because the

[ADVANCED-DOTNET] Using a common form for web and windows-based application.

2004-04-20 Thread Vipul Patel
We have a GUI based windows application and a Web based application. Both the applications are accessing the same business logic to display the data. We have separately created Windows forms for Windows application and Web forms for the web application. Is there a way by which we can save these fo

Re: [ADVANCED-DOTNET] Application registration

2004-04-20 Thread Mark A. Gregory
We are using the purchased DotFuscator to scramble the assembly code. I imagine that there is no perfect solution to registration. I would appreciate pointers to "best practice". Thank you Mark -Original Message- From: Daniel O'Connell [mailto:[EMAIL PROTECTED] Sent: Tuesday, 20 April

Re: [ADVANCED-DOTNET] Application registration

2004-04-20 Thread Frans Bouma
> I get your point :D :) > So basically there is no windows app that can be protected. Correct. In theory :). In practise, if the amount of hurdles is high, it will simply take a lot of time to remove all the checks and other traps placed inside the code. Most crackers give up af