Click here to Skip to main content

Comments by voloda2 (Top 41 by date)

voloda2 at 24-Feb-12 17:53pm View
   
it works for both. if you want dynamic behavior just use:
a myVar;
myVar.GetType().GetProperties()
voloda2 at 24-Dec-11 3:30am View
   
Deleted
Yes, thank you. But I still cannot see any benefit of functional version in C#.
 
OOP version gives you clean overview what is expected on visitor's side. So if you implement any subsequent visitors, you always know what you should do. Which is lost here.
voloda2 at 22-Dec-11 17:07pm View
   
Deleted
Is this really the visitor pattern? I've seen once its nice usage and it was significantly different.
voloda2 at 10-Jun-11 5:48am View
   
How is your NET_COMPUTER_NAME_TYPE structure defined?
voloda2 at 28-Mar-11 3:53am View
   
@PasanRatnayake:
Yes that is. But based on problem specification (encryption of huge amount of data) basically correct and describes how it works using encryption standards (you simply encrypt random symetric key for whathever algorith you want, using asymetric alg). Using RSA for whole bunch of data in my eyes is just wasting of resources - additionaly you can use a library which will do whole process for you (OpenSSL, .NET, CryptoAPI) ...
 
But I'm not as smart as @SA is...
voloda2 at 9-Mar-11 4:48am View
   
what about a simple select, which should always work (such as "select 1")? If a DbException is thrown, try reconnect...
voloda2 at 24-Feb-11 12:07pm View
   
You should provide more information. It heavily depends on data stored inside the database (such as images etc).
voloda2 at 29-Dec-10 11:33am View
   
improved readability.
 
What are the errors? No one can help you without more details
voloda2 at 29-Dec-10 3:47am View
   
Which operating system?
voloda2 at 17-Dec-10 4:02am View
   
But doesn't it return same values if you have UPS connected to your desktop?
voloda2 at 3-Nov-10 16:04pm View
   
Did you tried explicit implementation of interfaces?
voloda2 at 3-Nov-10 8:04am View
   
See my comment in Answer 3. Your solution is basically correct, but multiplication should be obtained using sizeof operator
voloda2 at 3-Nov-10 7:48am View
   
Sorry - you should have: cbRequest = wcslen(message) * sizeof(wchar_t) because unicode characters are stored as multiple bytes.
voloda2 at 2-Nov-10 9:09am View
   
You should be more specific
voloda2 at 20-Oct-10 9:26am View
   
What exactly do you means by device callback event?
voloda2 at 13-Oct-10 10:40am View
   
Try google...
voloda2 at 12-Oct-10 3:22am View
   
Ok, thanks for clarification. But it's possible only with dynamic methods. Isn't it?
voloda2 at 7-Oct-10 3:25am View
   
Simply read it to memory and send it thru your opened network stream...
voloda2 at 1-Oct-10 5:28am View
   
http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/e7a6b542-65df-43e3-b211-03ecdabb2fba
voloda2 at 30-Sep-10 3:41am View
   
Deleted
If you are using C#, remove the first line (#include ....).
voloda2 at 28-Sep-10 6:01am View
   
There are for some interesting points in your post. Thanks for deep explanation :-).
 
Regards,
V.
voloda2 at 28-Sep-10 5:31am View
   
But this is adding some overhead for big objects. You are creating a temporary copy and thereafter there is a check in std::swap STL function about the references.
 
Sorry, but I don't see big benefits about it...
 
Regards Vlada
voloda2 at 28-Sep-10 5:11am View
   
Ok, if you want to be absolutely correct, you should also check reference in assignment operator against this pointer...
voloda2 at 28-Sep-10 4:36am View
   
No, only assignment operator will be applied.
voloda2 at 28-Sep-10 4:16am View
   
Did you try opening such amount in data in excel? I don't believe you will succeed...
voloda2 at 28-Sep-10 2:53am View
   
You are right. Code fixed. Thanks.
voloda2 at 25-Sep-10 6:32am View
   
If you are implementing POP3 yourself, why don't you use appropriate RFC?
voloda2 at 23-Sep-10 4:19am View
   
be more specific
voloda2 at 8-Sep-10 14:35pm View
   
What do you mean by another instance of a method? It's a standard call. The difference is that you have same method accessed from two threads and two different stack.
If you will not modify shared data after you initialize shared object instance, you don't need synchronization (locking).
Main goal of synchronization is to keep objects in consistent and predictable state - image following situation:
1. you have an instance variable of value 3 (this.i == 3)
2. you read int variable from two threads into a local variable (lets say you have int i = this.i;)
3. you increment your local variable (i++);
4. you save new value back to instance member (this.i = i;)
 
I would expect value 5 but in this case you can quite easily get also value 4 (both threads may read value 3, increment and save back).
voloda2 at 8-Sep-10 5:52am View
   
Please fix the last code sample
voloda2 at 24-Aug-10 18:23pm View
   
Reason for my vote of 1
Can't believe that I see this question.
voloda2 at 20-Jul-10 15:56pm View
   
Or the SQL command...
voloda2 at 2-Jul-10 3:21am View
   
I suppose that you must use ONLY managed data types (it means only types available from VB/C# managed code). So if you are using an unmanaged one (such as HANDLE, PIPE_PTR etc.) it will not work.
 
Based on definition of the PIPE_PTR you can use IntPtr managed type or an integral one (UInt32, UInt64).
voloda2 at 1-Jul-10 3:53am View
   
If your DLL is COM than it's better to use COM interop. Otherwise I would prefer the managed C++, which will allow you to have event delegates etc.
voloda2 at 28-Jun-10 16:14pm View
   
Hi, can you be more specific - on which system do you have installed VS2008?
 
As I know, libraries are named wsock32.dll and ws2_32.dll and they are part of the system (located in system32 folder). Link libraries (.lib) should be installed together with VS2008, but you must have selected C++.
voloda2 at 22-Jun-10 17:49pm View
   
Are you really looking for interpreter and not a compiler? And if you are looking for a compiler, can you be more specific regarding the target platform?
voloda2 at 11-Jun-10 5:06am View
   
You had there () brackets. This means that you were allocating only single character and it was initialized to the value 5.
voloda2 at 31-May-10 11:15am View
   
Sory.
 
It is used to prevent copying of objects at function calls or with the copy-initialisation syntax.
 
Following will not work with your original class.
 
Y M(void)
{
        Y y;
	return y;
}
voloda2 at 26-May-10 5:20am View
   
B is not static class, you are using an instance of it - think it's as a namespace. It's same as sa.Text text = new sa.Text() or sa.Text.B b = new sa.Text.B()
voloda2 at 26-May-10 5:13am View
   
That's exactly what am I writting about - it's a speciality of class V - it can access private members of the top class A.
voloda2 at 26-May-10 4:58am View
   
Not sure if I understand what are you asking about.
 
The nested class V is a standard class, which can be instantiated based on its vibility modifiers.
It has only one speciality - if you have an instance of the top class A, you can access its private members from the V's code.
 

class A
{
private int i;
public A()
{
 
}
public class V
{
int ii;
 
public V()
{
A a = new A();
a.i = 10;
}
}
}
 

It's more like an additional namespace.

Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid