One problem I've run into is that by default, the framework runs in 64-bit
mode. This can cause silent failures if you're calling 32-bit dlls in your
code (e.g., via interop). There's a compiler switch that you can set to
force 32-bit mode:
/platform:x86 (http://msdn2.microsoft.com/en-us/library/
My advice is to always start with the simpler choice - List in this case,
and only switch over if you find that you need more performance in that area.
I wrote some more on that subject here:
http://blogs.msdn.com/ericgu/archive/2006/06/26/647877.aspx
Eric
-Original Message-
From
stions?
Thanks,
Mike
===
This list is hosted by DevelopMentor(r) http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
This list is hos
) and Linux web and application
hosting - http://link.myhosting.com/myhosting
===
This list is hosted by DevelopMentor(r) http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/e
Have you thought about graying it out using opacity? If you set the opacity to
about 50%, you will likely get the effect that you want. You can control how it
grays by putting a rectangle of the appropriate color (white, black, gray)
directly behind the image...
Eric
-Original Message
elop.com
>
> View archives and manage your subscription(s) at
http://discuss.develop.com
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
http://discuss.develop.com
>
==
ers!> > Dave> > - Original Message -> >
From: "Mark Brackett" <[EMAIL PROTECTED]>> > To:
===
This list is hosted by DevelopMentor(r) http://www.develop.com
View archives and manage your subscription(s) at
http://discuss
View archives and manage your subscription(s) at
http://discuss.develop.com
===
This list is hosted by DevelopMentor(r) http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric
public, parameterless ctor?
--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
-Original Message-
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Eric Means
Sent: Friday, June 30, 2006 11:26 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject
a, Int32 type)
at My.Type..ctor(Boolean param)
There is no InnerException.
How should I go about debugging this? The site has FullTrust in the CAS
policy (I've already verified that). Why is it not finding the constructor?
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
Actually, it may have been this one:
http://www.gotdotnet.com/Workspaces/Workspace.aspx?id=112b5449-f702-46e2-87fa-86bdf39a17dd
instead. Like I said, it was 2+ years ago. ;)
On 6/24/06, Eric Means <[EMAIL PROTECTED]> wrote:
IIRC (from when I used it, 2+ years ago) there's also an
Sorry, no. They changed it with 2005. For 2003 you'll have to use the add-in
I linked in my previous message.
On 6/23/06, Franklin Gray <[EMAIL PROTECTED]> wrote:
I thought that XML Comments only worked with C#? Did they change that
with 2003?
Message from Eric Means <[E
ure. For
> details
> > on creating an XML file with documentation comments, see the following
> > topics." from help files.
> >
> > I forgot to add that I'm using VB.net 2003. Is XML Comments available
> in
> > VB.net 2003? Anybody have an example?
> >
&
ttp://www.develop.com
>
> View archives and manage your subscription(s) at
http://discuss.develop.com
===
This list is hosted by DevelopMentor(r) http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.devel
ription(s) at
> http://discuss.develop.com
> >
>
>
> --
>
> Cheers,
> Stoyan
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develo
r no circumstances do we accept liability
for any loss or damage which may result from your receipt of this message or
any attachments.
**
===
This list is hosted by DevelopMentor(r) http://www.develop.com
View arch
Thanks
Paul
===
This list is hosted by DevelopMentor(r) http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
Thi
opMentor(r) http://www.develop.com
> >
> > View archives and manage your subscription(s) at
> http://discuss.develop.com
> >
>
>
> --
> Ernst Kuschke
> MVP - C#
> http://dotnet.org.za/ernst
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
Is that really your code? I'd expect
sqlSyntax = declare.Replace(sqlSyntax, "");
Eric
-Original Message-
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Hevel, Shawn
Sent: Friday, April 07, 2006 9:10 AM
To: ADVANCED-DOTNET@DISCUSS.DEVE
;
>
>
>
> Shawn Hevel, API, AIT
> Lead Programmer Analyst
> Information Technology Department
> South Carolina Farm Bureau Insurance Companies
> Phone: (803) 936-4331
> Fax: (803) 936-4629
> Work Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> Home Email: [EMAI
lti-threading) that
> discusses the performance of ReaderWriterLock in .NET 2.0 (and, I'll
> assume, 1.x) [1]
>
> [1] http://blogs.msdn.com/vancem/archive/2006/03/28/563180.aspx
>
> -- Peter
> _
> http://www.peterRitchie.com/Blog/DotNetConfig.xsd
>
> On Wed,
nd manage your subscription(s) at
> http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
Would it even matter, though? The client may/will have already closed the
connection...! ;)
On 3/28/06, Mark Smith <[EMAIL PROTECTED]> wrote:
>
> BTW, I think you are right Eric, I consider this a theoretical discussion
> at
> best -- the fact is that for client requests,
t;[EMAIL PROTECTED]> wrote:
>
> On 3/28/06, Eric Means <[EMAIL PROTECTED]> wrote:
> >
> > The client's request should include a Content-Length header. Your
> > webserver
> > should continue waiting on data until it has read that number of bytes
> &g
method to get
> all
> of the data and know that my request has completed?
>
> Thanks,
> Mike
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(
==
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
This list is hosted by DevelopMentor® h
; Greg
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
==
/columns/kate/article.php/c9167/
On 3/10/06, Eric Means <[EMAIL PROTECTED]> wrote:
>
> I'm not terribly familiar with C++/CLI, but I know that in C# you have to
> make sure the compiler is set to produce the XML documentation file; the
> settings (in VS 2005) are in Project Prop
This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
-
> "Under capitalism, man exploits man. Under communism, it's just the
> opposite." –John Kenneth Gailbraith
>
> Marc C. Brooks
> mailto:[EMAIL PROTECTED]
> http://musingmarc.blogspot.com
>
> ===
> This list is hosted by Develo
me code
> >
> > throw(ex); // rethrow like this?
> > throw; // or rethrow like this?
> >}
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
nReceive/BeginSend.
> Is it the worker thread pool or completion port thread ?
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
&g
They're put there so that there are instructions associated with the
lines you might want to put breakpoints on.
Eric
-Original Message-
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Fabian Schmied
Sent: Wednesday, February 08, 2006 11:
gt; --
> "Under capitalism, man exploits man. Under communism, it's just the
> opposite." –John Kenneth Gailbraith
>
> Marc C. Brooks
> mailto:[EMAIL PROTECTED]
> http://musingmarc.blogspot.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
u're doing
> on a new version under source control during the current version's "code
> freeze" without doing lots of extra work, at least look at it!)
>
> At 11:53 AM 2/8/2006, Eric Means wrote (in part)
> >We're trying to decide between Perforce...TFS, and
tware (in 1.0
> days) is just plain archaic.
>
> No comments on Vault, havne't used it... in the one place it would
> have made sense (to "remote" a VSS 6 setup), we ended up using RDP for
> the off-shore guys to hit "local" machines.
>
> M
vast differences in access
time between cache, main memory, and disk can easily overshadow raw code
speed.
My advice is to write code as simply as possible, use TDD so that you
have unit tests and can therefore refactor as needed, and *measure* your
performance early and often.
Eric
-
> --Jekke
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
==
Console.WriteLine("{0}: {1}",
> ++lineNum,
> args.Str);
>
> writer.Flush();
>
> }
>
> }
>
> }
>
> }
>
&g
Ack, sorry... actually, you just need to change the return type to Guid.
Out of curiousity, why is this a generic function at all? You never use T at
all except as the return type, and that's constrained already by the type of
QuestionElement.Uid (which appears to be Guid)...
On 1/30/06,
and manage your subscription(s) at
> http://discuss.develop.com
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
}
> }
> }
>
> I am getting the compiler error:
>
> Cannot implicitly convert type 'System.Guid' to 'T'
>
> Does anyone know how I could define this Generic function?
>
> Thanks
>
> Paul
>
> ==
s a .Net list, then your
> > argument is totally invalid.
> >
> > I stand by my original post... That EmptyWorkingSet is indeed
> > a correct and valid way of doing this.
> >
> > Dino
>
> ===
> This list is hosted by DevelopMentor(r)
>
> > Hardware: AMD Sempron 2800+ (2 GHz), 512 MB RAM
> >
> >
> >
> > Stano
> >
> >
> > PS: Well. I know, 512 MB of RAM is not too much fo VS and very soon I
> > will get 1 GB, but I don't thing that it will solve my problem.
> >
gt; >Java, .NET, XML services
> >http://blogs.tedneward.com
>
>
> J. Merrill / Analytical Software Corp
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
>
http://discuss.develop.com
> >
>
>
> --
> __
> - David Lanouette
> - [EMAIL PROTECTED]
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your su
I haven't been able to work out how to use multiple values from a Flags Enum
in the new .Net Settings dialog. (Project > Properties > Settings).
For example, the System.IO.WatcherChangeTypes enum, you can combine Created
and Renamed to be notified of any files that are either created or renamed.
H
espite the fact that I've never actually needed it) I still think
> >>it would be a mistake to put something this specialized into something
> >>as generic as Stream.
> >>
> >>It's at best a poor match (and at worst, inappropriate) for most
> >>imple
saying that locking, Seeking, BeginWriteing, and unlocking
> >is
> > >> not good enough?
> > >>
> > >> Well, I guess it is good enough, just doesn't seem very elegant.
> > >Would be
> > >> nice if there was an offset in there so one "at
//www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discu
elcome. I suppose the event log is an option but I'd have to discuss
> > that
> > with my partner on my project as logging to a text file is his idea.
> >
> > ===
> > This list is hosted by DevelopMentor(r) http://www.develop.com
>
rash that shuts down the logging task. (But it's
> probably more likely that the disk onto which the data is being written will
> fail -- and there's not much you can do about that, other than to have
> another place to write if the first place fails.)
>
> At 11:44 PM 11/20/200
7;t need to care about how long it takes to
write the file. The writer thread can batch log messages until it has a
certain size and rearrange them in memory to be most-recent-first, which
will help a bit with I/O costs.
You could use MSMQ to make the message delivery absolutely reliable,
assum
> __
> > > Yahoo! FareChase: Search multiple travel sites in
> > one click.
> > > http://farechase.yahoo.com
> > >
> > > ===
> > > This list is hosted by DevelopMentor(r)
> > http://www.devel
. If it started OK the icon will spin. You can use the
above script to test it out, or try it from the web.
Eric
> -Original Message-
> From: Discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] Behalf Of Mike Andrews
> Sent: Wednesday, October 26, 2005 11:06 AM
&g
ect for my
> application.
>
> Thanks very much!
>
> Rob
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
gt; ===
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
Oh I forgot -- I like the cover too!
I have yet to set the book face down.
Eric
> -Original Message-
> From: Unmoderated discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] Behalf Of Eric Wild
> Sent: Tuesday, March 29, 2005 2:05 PM
> To: ADVANCED-DOTNET@DISC
way, definately worth the $50
Eric Wild
> -Original Message-
> From: Unmoderated discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] Behalf Of Reich, Joe
> Sent: Tuesday, March 29, 2005 12:34 PM
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: Re: Most
I'm searching a way to implement or find a way to use a TextBox to be used
to enter Currency data according to s NumberFormatInfo and CultureInfo
class. What is the best way to do this??? Regular Expressions??? Something
that exist???
Regards,
Eric H
to create addin's for .NET,
and also talks about the connectModes.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnout2k2/ht
ml/odc_oladdinvbnet.asp
Eric Wild
> -Original Message-
> From: Unmoderated discussion of advanced .NET topics.
> [mailto:[EMAIL PR
n is the type of
> InvalidCastException(). Let's also assume that the cast is not known to
> succeed. Certainly example two is more explicit and conveys more visually
> about what will happen when the operation fails.
>
> Thanks
> Fred Palmer
>
> ==
===
> This list is hosted by DevelopMentor® http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
This list is hosted by DevelopM
e project or for all proj from 2005 without having to
> install visual studio 2003?
>
> Thanks and appreciate for your help!
>
> Thanks,
> Sarvajith
>
> ===
> This list is hosted by DevelopMentor® http://www.develop.com
>
> View arch
=
> This list is hosted by DevelopMentorR http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>
> ===
> This list is hosted by DevelopMentor® http://www.develop.com
>
> View archives and manage yo
object would handle that cleanup.
The difference is that finalization can happen on any object, but
dispose can only happen on the user-visible object.
Eric
-Original Message-
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Julian Everett
Sent
s hosted by DevelopMentor. http://www.develop.com
> >
> > View archives and manage your subscription(s) at
> > http://discuss.develop.com
> >
>
> ===
> This list is hosted by DevelopMentor(r) http://www.develo
There are some delegate optimizations in Whidbey as well. IIRC, those
make the differences between delegates and interfaces pretty much a
wash.
Eric
-Original Message-
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Ben
Kloosterman
Sent
"Serialization" isn't really the right term.
Attributes use a special format to save their data that isn't related to
the .NET serialization infrastructure (s).
We used "pickling" as the term, but I'm not sure where that came from.
Eric
-Original Messag
ds them. The .Net components also cannot be
controlled by the Service Control Manager (the Control Panel applet
for services).
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
This list is hosted by DevelopMentor® http://www.deve
sender.Close();
> >
> > }
> > catch (ArgumentNullException ane)
> > {
> > Console.WriteLine("ArgumentNullException :
> > {0}",ane.ToString());
> > }
> > catch (SocketException s
take the time to read and reply and I greatly
> appreciate any suggestions.
>
> Mark
>
> ===
> This list is hosted by DevelopMentor® http://www.develop.com
> Some .NET courses you may be interested in:
>
> Essential .NET: building applicatio
d in:
>
> Essential .NET: building applications and components with C#
> November 29 - December 3, in Los Angeles
> http://www.develop.com/courses/edotnet
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://w
Essential .NET: building applications and components with C#
> November 29 - December 3, in Los Angeles
> http://www.develop.com/courses/edotnet
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.
evelop.com
> Some .NET courses you may be interested in:
>
> Essential .NET: building applications and components with C#
> November 29 - December 3, in Los Angeles
> http://www.develop.com/courses/edotnet
>
> View archives and manage your subscription(s) at http://discuss.deve
=
> This list is hosted by DevelopMentor® http://www.develop.com
> Some .NET courses you may be interested in:
>
> Essential .NET: building applications and components with C#
> November 29 - December 3, in Los Angeles
> http://www.develop.com/courses/edot
most
notably SQL Server 2005.
Source:
http://episteme.arstechnica.com/eve/ubb.x?a=tpc&s=50009562&f=6330927813&m=811002626631&r=488001136631#488001136631
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
===
This list is ho
/frlrfsystemwindowsformsdatagridclassgridvscrolledtopic.asp)
Example:
public ScrollToRow(int rowNum)
{
this.GridVScrolled(this,
new ScrollEventArgs(ScrollEventType.LargeIncrement,
rowNum));
}
Eric C. Willman
-Original Message-
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On
/frlrfsystemwindowsformsdatagridclassgridvscrolledtopic.asp)
Example:
public ScrollToRow(int rowNum)
{
this.GridVScrolled(this,
new ScrollEventArgs(ScrollEventType.LargeIncrement,
rowNum)); }
-Eric
===
This list is hosted by DevelopMentor® http://www.develop.com
Some .NET courses you may be interested in
pull it off.
On Mon, 11 Oct 2004 15:23:02 -0400, Jon Guerin <[EMAIL PROTECTED]> wrote:
> Can someone point me to an example of saving an asp.net html page to an
> image.
>
> Ultimately I want to save it to an sql table and later retrieve it and email
> the image as a p
Inline...
Eric
-Original Message-
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Ankit Bhurat
Sent: Monday, July 12, 2004 10:35 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Value and Reference Types confusion.
Hi all,
These days I am
Are you looking for the DataColumn.MaxLength property
(DataTable.Columns[x].MaxLength)? You cannot set it in the constructor,
you have to change it on the DataColumn object after it is instantiated.
Eric C. Willman
-Original Message-
From: Unmoderated discussion of advanced .NET topics
o one assembly.
I'm uninformed about how system.web.regularexpressions.dll is created.
Eric
-Original Message-
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Shawn A. Van
Ness
Sent: Thursday, April 29, 2004 9:49 PM
To: [EMAIL PROTECTE
(link below) can do timings of both the compilation and
execution, and you can plug in different numbers to see when it makes
sense to compile:
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=C
712F2DF-B026-4D58-8961-4EE2729D7322
Eric
-Original Message-
From
is an okay method if you're going to call it a bunch,
but if you only want to call it once, InvokeMember() is a lot easier.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol
/html/csharp02172004.asp
Hope that helps
Eric
-Original Message-
From: Moderated dis
Custom attribute class is compiled into a single
assembly and not separately for each object.
I will try to see what happens if all of the files are placed into a
single folder, however that is not a perfect solution
-Original Message-
From: Eric Gunnerson [mailto:[EMAIL PROTECTED]
Sent:
Assembly.Load should give you the same identity.
Assembly.LoadFrom() *may* give you a different identity, though the
runtime will try an assembly.Load() first, and if that succeeds, it
would have the same identity.
I'm presuming that the custom attribute class only exists in one dll,
and that yo
IIRC, when you call LoadFrom(), it checks to see if it could use Load()
instead, and if it could, it does. Load() would succeed locally but not
if the type was somewhere else.
You might be interested in Suzanne Cook's blog at
http://blogs.msdn.com/suzcook
-Original Message-
From: Moderat
the printer settings (tray selection, orientation, etc.) are
being ignored.
Thanks for any help,
Eric
My Code (keep in mind this represents a lot of tweaking and messing around
trying to figure out what's wrong):
using System;
using System.Drawing;
using System.Collections;
this helps
Eric
-Original Message-
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Bassler
Sent: Friday, January 09, 2004 3:53 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Best way to share an interface definition
amoung components
etc without having things break
> when they are actually supposed to get data from "somewhere".
It sounds like you want to use a mock object pattern.
A java example is
http://javaboutique.internet.com/tutorials/mock_objects/, but the
technique obviously applies elsewhere.
Eric.
==
A couple of ideas:
1) If you are already using a windows form, you can easily add a windows
forms timer to your form. That timer occurs on the main UI thread, and
can easily be used for update.
2) If you want to stick with the Timer you're using, you need to call
Control.Invoke() (not BeginInvoke
Depending on the requirements of your win32 dll, you may be able to use
MC++ to accomplish what you want.
-Original Message-
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Amol Chavan
Sent: Thursday, December 04, 2003 12:17 AM
To: [EMAIL PROTEC
Your talking at the time of the install? TARGETDIR is what the user selects
as the directory to install the app.
> -Original Message-
> From: Moderated discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] Behalf Of Roberto
> Pinillos
> Sent: Wednesday, December 03, 2003 5:20 PM
ttp://www.w3.org/2000/xmlns/:xmlns' attribute is not declared.
2) The 'http://www.w3.org/2000/xmlns/:xsi' attribute is not declared.
3) The 'http://www.w3.org/2001/XMLSchema-instance:schemaLocation' attribute
is not declared.
Does anybody know if there'
I should probably note at this point that "where" is a contextual
keyword - the same as "get", "put", and "value". All the enhancements
we're doing in 2.0 use contextual keywords (though the PDC bits use
yield, which is non-contextual, and will change to "yield return" in the
final version).
That
Peter,
You can get into some conflicts sometimes if you have namespaces names
that match class names or other namespace names. We do plan on providing
a way to avoid having to use aliases in Whidbey, but in general, I think
it's best to try to avoid name collisions.
-Original Message-
Fro
My guess is that they it's scaled because it's fairly easy to tell
people that they should use a load factor between 0 and 1. If the load
factor ranged between 0 and 1 but the best value was 0.72, somebody
would pass in something like 0.90 and then have problems when their
hashtable didn't work.
I haven't read Don's book, but I think he's comparing:
If (obj is Employee)
{
Employee e = (Employee) obj;
}
To
Employee e = obj as Employee;
If (e != null)
{
//...
}
In the first case, there are two tests (on at the is, and one on the
cast), and on the second, only a single test.
--
There's no way to do what you want in C#.
You could, however, write a wrapper in MC++ and then use the wrapper
from your C# code.
-Original Message-
From: Eric Meek [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 6:17 PM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-D
1 - 100 of 115 matches
Mail list logo