Re: [DOTNET] C# RC4 Encryption Algorithm??

2002-05-02 Thread Valery Pryamikov
Hi, You can interop to CAPICOM. It supports RC4 as one of the encryption algorithms (see CAPICOM_ENCRYPTION_ALGORITHM_RC4). -Valery. -Original Message- From: Wareham, Matt [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 9:16 PM To: [EMAIL PROTECTED] Subject: [DOTNET] C#

Re: [DOTNET] custom URL protocol handler

2002-05-10 Thread Valery Pryamikov
Hi, To use it from IE (and other URLMoniker consumers) you have to implement your own Pluggable Protocol Handler. You can find a couple of C++ (VC6) samples how to implement your PPH on my webpage http://home.online.no/~valery. Tim Tabor also has PPH sample on his website, which you can ch

Re: [DOTNET] custom URL protocol handler

2002-05-10 Thread Valery Pryamikov
orking/pluggable/overview/appendi x_a.asp Titled: Registering an Application to a URL Protocol In most cases this is enough :-) Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message----- From: Valery Pryamikov [mailto:[EMAIL PROTECTED]] Sent: Freitag, 10.

Re: [DOTNET] custom URL protocol handler

2002-05-10 Thread Valery Pryamikov
A Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message----- From: Valery Pryamikov [mailto:[EMAIL PROTECTED]] Sent: Freitag, 10. Mai 2002 09:55 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] custom URL protocol handler Thomas, IE clickable and pluggable protocol handlers are rather different

Re: [DOTNET] gcroot for arguments and locals

2002-04-12 Thread Valery Pryamikov
Hi Simon, Primary difference here is stack allocated vs heap allocated storage location for managed pointer. Stack allocated storage location of managed pointer has known lifetime which is bound to the stack frame. When managed pointer stored in stack allocated storage location it should be consid

Re: [DOTNET] Difference between C# and VB.NET

2002-04-25 Thread Valery Pryamikov
Hi, Searching list archives [1] for: VB and C and language and ( difference or better ) Gives a list of 506 articles with most of them related to subj. Tons of pro and cons for each particular language could be found there. And now the question: Is there someone who would take a challenge to go

Re: [DOTNET] Difference between C# and VB.NET

2002-04-26 Thread Valery Pryamikov
Hi, I just had a really quick look at the search results (ie. I used only about 5 minutest to quickly browse through results - first check subject line and then open the letter) and the first 50 matches page shown several letters with subj. "Re: Getting ready for .NET -- best language to use today

Re: [DOTNET] why IE 5.01

2002-04-28 Thread Valery Pryamikov
Hi, Here you can find a list of problems that were corrected in IE 5.01: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q244655 and here is the description of SP 1: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q261268 As you can see from these kb articles, there were a lot

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

2002-04-29 Thread Valery Pryamikov
Henk, Here are some problems: 1. Execution of the code in the same thread doesn't necessary means the execution on the same processor. 2. Dotnet memory model guarantees that reads and writes from the same processor to the *same memory location* would never cross each other, but no guarantees about

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

2002-04-29 Thread Valery Pryamikov
lease. fNeedInit = false; } Note: second if checks internal fNeedInitInt variable and fNeedInit is updated outside of lock region. (of course we consider that bNeedInit/fNeedInit/fNeedInitInt are not volatile). -Valery. -Original Message- From: Valery Pryamikov Sent: Monday, Apr

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

2002-04-29 Thread Valery Pryamikov
ed. That's the rule I was referring to. So, what can we learn from this: never post code from the top of your head and then respond to emails without rereading what you posted ;-);-). -- Henkk - Original Message - From: "Valery Pryamikov" <[EMAIL PROTECTED]> To: &

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

2002-04-29 Thread Valery Pryamikov
;-) - Original Message - From: "Valery Pryamikov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 29, 2002 2:29 PM Subject: Re: [DOTNET] lock - how expensive is it to call? > Your latest code should work, of course, but using second lock would be > quite an e

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

2002-04-29 Thread Valery Pryamikov
ssage - From: "Valery Pryamikov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 29, 2002 2:34 PM Subject: Re: [DOTNET] lock - how expensive is it to call? > You right here:-). > > -Original Message- > From: Henk de Koning [mailto:[EMAIL PROTE

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

2002-04-30 Thread Valery Pryamikov
gle2() {} public MySingle2 Instance{ get{return theInstance;} } } On Mon, 29 Apr 2002 14:29:46 +0200, Valery Pryamikov <[EMAIL PROTECTED]> wrote: >Your latest code should work, of course, but using second lock would be >quite an expensive addition... And you only need a me

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

2002-04-30 Thread Valery Pryamikov
11:35:42 +0200, Valery Pryamikov <[EMAIL PROTECTED]> wrote: >Yes, it's safe to initialize singleton from the static constructor, >which is properly protected by framework. Check list archives for more >details and/or 9.5.3 of PartitionIIMetadata.doc. > >In short: static c

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

2002-04-30 Thread Valery Pryamikov
Btw: about memory consumption. AFAIK current implementation adds 8 bytes for each object - RTTI/vptr (or whatever you want to call it) and SyncBlockIndex. It's guaranteed that RTTI/vptr will be always naturally aligned, to avoid split access. It is also obvious that whenever GC allocates an object

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

2002-04-30 Thread Valery Pryamikov
that for each allocated object, sooner or later GC should put a reference/handler to this object in one or another internal list... -Valery. -Original Message----- From: Valery Pryamikov Sent: Tuesday, April 30, 2002 12:27 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] lock - how expensive

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

2002-04-30 Thread Valery Pryamikov
r Memory Mapped Files in the current version of DOTNET. -Valery. -Original Message- From: Peter Laan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] lock - how expensive is it to call? inline From: "Valery Pryamiko

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

2002-04-30 Thread Valery Pryamikov
How about using Image.FromHBitmap method? If I recall it correctly IPicture has Handle property (get_Handle). -Valery. -Original Message- From: Alex Yakhnin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 1:09 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] How-to convert StdPic