And how do you think explicit casting is implemented ?
Morty ;)
-Original Message-
From: Shawn Wildermuth [mailto:[EMAIL PROTECTED]]
Sent: Sun 5/19/2002 3:11 AM
To: [EMAIL PROTECTED]
Cc:
Subject: Re: [DOTNET] BUG: Remoting does not di
No 3rd party solution needed:
Access Registry Using C#
By Gokula Giridaran
Access the registry using C#. Find out the system Information. Using
this source code.
/* I used it find Processor Information and Bios Information*/
using System;
using Microsoft.Win32;
class reg {
static void Main()
Duncan,
I assume you're referring to a 3rd-party solution -- one which I'd like to
hear some more about. That sounds like a potentially good solution in a
real-world, work environment.
Unfortunately, I'm one of the huge ranks of unemployed senior developers,
so I'm converting this app only as a
Oh yeah... : )
Thanks,
Shawn Wildermuth
[EMAIL PROTECTED]
> -Original Message-
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]
> On Behalf Of Brian Graf
> Sent: Saturday, May 18, 2002 9:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [DOTNET] BUG: Remoting does not distinguish
> metho
Hi Tómas,
This might be a little off-topic but hopefully helps...
Chris Sells said:
> Actually, Genghis is about to get that. Mike has a demo if you'd like to
> contact him directly.
Yep, I have a demo implementation of an MRU for .NET which has the
following features:
- MRU in same menu or as
> I don't get how this worked even without reflection. In C# (like C++
I
> thought) you could not have the return type as the only difference in
> the signature. How would the compiler figure out which to call?
Yeah, but don't forget that C# isn't the only language that can target
the CLR. Thi
Also be aware that you can construct an array of already existing items
like:
If you have a method that looks like:
void MyMethod(MyClass[] aMyClass);
You could call it like:
MyMethod(new MyClass[] { someClass, someOtherClass });
I do this all the time without having to create a local variabl
I don't get how this worked even without reflection. In C# (like C++ I
thought) you could not have the return type as the only difference in
the signature. How would the compiler figure out which to call?
Thanks,
Shawn Wildermuth
[EMAIL PROTECTED]
> -Original Message-
> From: dotnet d
Wouldn't it be better if you are porting the app to C# to make use of the
Frameworks Registry functions which are far more maintainable and easier to
get working.
- Original Message -
From: "Bill Schmidt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 18, 2002 6:19 PM
Sub
Excellent. Very elegant and it works much better than what I had before!
Thanks!!
Dave.
-Original Message-
From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
Ian Griffiths
Sent: Friday, May 17, 2002 11:56 AM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Does anyone know how t
It's my understanding that this event only fires when someone changes
the clock.
Dave.
-Original Message-
From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
Mark Boulter
Sent: Friday, May 17, 2002 10:10 PM
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Does anyone know how to t
It's not a CLR bug. The CLR properly handles overloaded method calls
where only the return value of the signature differs (i.e. covariant
return methods) . The runtime and the Partition I and II metadata specs
are very clear that members must form a unique tuple:
table/name/signature (where table
The question is if this is a documentation bug or a CLR bug ...
-- Henkk
- Original Message -
From: "Brent E. Rector" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 18, 2002 9:25 PM
Subject: [DOTNET] BUG: Remoting does not distinguish methods differing only
by return typ
Scott,
Thanks a lot, it's working; I haven't tried this one before.
Thanks again,
Gyorgy Bozoki
-Original Message-
From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of
Scott Densmore
Sent: Saturday, May 18, 2002 15:03
To: [EMAIL PROTECTED]
Subject: Re: How to initialize object
M_oMyobjs = new CMyClass[] {
new CMyClass ( lvP1 ),
new CMyClass ( lvP2 )
};
scott
-Original Message-
From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
György Bo
Bill,
Thanks for your reply; I've tried this syntax and unfortunately it is not
working w/ classes. (It is fine to declare integer arrays), but since I want to
pass a listview reference, I get an error saying that there is no way to convert
a ListView to CMyClass.
Right now this is what I do:
Gyorgy,
I'm new to C#, but I believe that the proper syntax is:
m_oMyObjs = new CMyClass[] {lvP1, lvP2};
just as for an array of int or char. This syntax uses the single-parameter
constructor that you included in your example class definition. The number
of elements in the array is determin
Remoting throws an ambiguous match exception when calling a method on a
remote MBR object that differs from another method of the type only by
the return type. Here's an example using pseudo-C# syntax:
internal class AppDomainInfoFetcher : System.MarshalByRefObject {
internal AppDomainInfo
Hi guys,
Here is what I'd like to do (in C#):
I have a class CMyClass, it looks like this:
public class CMyClass
{
#region Private members
private ListView m_lvP; // listview associated w/ the class
private ColumnHeader m_chA; // column header
private ColumnHeader m_chB; // c
Also check this great sample 'IniReader':
http://www.mentalis.org/soft/class.qpx?id=6
this site has even more very useful classes:
http://www.mentalis.org/soft/classes.qpx
Thomas
> -Original Message-
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]
> On Behalf Of Bill Schmidt
Mattias,
Thanks. That worked like a charm. So, string's are OK for input (to Win32
API functions), but StringBuilder's are needed for output.
As you could probably tell, this particular API call is a once-per-app
occurrence, so I'm more concerned with compatibility than performance.
However, I
Bill,
For output string buffers, you should use a StringBuilder parameter, not
string.
Explicitly calling the ANSI versions of APIs is bad for performance on NT
based systems. It's better if you let the runtime decide which version to
call by using CharSet.Auto.
[DllImport("kernel32.dll", Ch
I'm trying to convert a working VB.NET WinForms application to C#, and I'm
having trouble with the string buffer being returned from a Win32 API call.
First, my working VB.NET code:
Public Declare Function GetPrivateProfileString Lib "kernel32" _
Alias "GetPrivateProfileStringA" _
Tómas,
Take a look at the new book
"Component-based Development with Visual C#". It has a chapter that
discusses the creation of Most Recently Used file lists. It shows how to
store this list in two different ways:
- Using the registry
- Using file shortcuts
If you're interested, you can find
I don't necessarily think that COM+ is all that slow, but that was the
feeling I was getting from the discussion. I currently have a small VB/COM+
app running on a P2 266 with 128M of memory. It has acceptable performance
and uses some COM+ plus features (constructor string and role-based
securi
Hi,
I have a WindowsForm and I need to drag and drop an image from one
PictureBox to another. I would also show the image moving with the
mouse. Any tip ?
Thank you
Pierre
---
Pierre Greborio
[EMAIL PROTECTED]
http://www.pierregreborio.it
-
You can view the same informations (for any country) opening with
Notepad the file "c:\program files\Microsoft Office\Office10\"
directory, where is a subdirectory of Office10 folder which name
depends by localization.
Marco
-Original Message-
From: dotnet discussion [mailto:[EM
Peter,
this article give some performance info:
Performance Comparison: Transaction Control
http://msdn.microsoft.com/library/en-us/dnbda/html/bdadotnetarch13.asp
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.d
Robert,
During your deliberations, this may be of interest:
http://martinfowler.com/isa/
Cheers,
Duncan Smart
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
That one is a cool idea. Ta Graeme!
Simon
---
Simon Robinson
http://www.SimonRobinson.com
---
- Original Message -
From: "Graeme Foster" <[EMAIL PROTECTED]>
To: <[EMAIL
30 matches
Mail list logo