|
|
schampacc wrote: I have found the solution to support all datetime formats.
No you haven't.
I said it was impossible - which it is.
There is no solution. So whatever you are doing is certainly not a solution.
What you are probably doing is testing within a LIMITED cultural scope. Which might be what you need to do but isn't what you asked. And if it isn't what you need to do then your solution will fail.
|
|
|
|
|
Hi all,
I have installed VS 2008 on my system and now i want to use VSS (Visual Source Safe).
Can any one tell me how can i download VSS and intall on it.
Please can anyone guide me i am new to VSS.
Thanks in advance.
|
|
|
|
|
See the first answer here[^].
|
|
|
|
|
Why would you torture yourself so?
Move to a modern and real source control system.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun
|
|
|
|
|
ahmed zahmed wrote: modern and real source control system
That's an oxymoron; the only real source control system (OpenVMS' CMS) isn't exactly modern.
|
|
|
|
|
i need project source code...
In my project i going to use AES encryption and decryption algorithms in c language and i give input for that program in text box at form window in vb.net and the input is execute with the c program and produce the output in another form window of vb.net
|
|
|
|
|
Please don't ask for source code (again). If you want a complete solution then you will have to search for it, no-one here is going to do your work for you.
|
|
|
|
|
vishnumoorthy wrote: i need project source code...
..that's something that has to be written. Is there a specific problem that we can help you with?
Bastard Programmer from Hell
|
|
|
|
|
project title is "library of computer security related algorithm" the project has to be done in vb.net.
|
|
|
|
|
Please edit your question to make it clear what your problem is. If you are asking for a complete solution I fear you will be disappointed.
|
|
|
|
|
A. Changes made in JHVirtualKeyboard xaml and JHVirtualKeyboard.xaml.cs
Addition to KeyAssignmentSets directory of JHVirtualKeyboard
1.SanskritKeyAssignment.cs
2.TamilKeyAssignment.cs will be added in next
You may see changes to button names to match e.key that comes in previewkeydown-changed button names are relating to Oem.
WhichKeyboardLayout enum names changed to reflect the language name in the language itself.
Help button to type indirectly through mouse added as flowdocument which can also be used for direct typing. This has become necessary as certain letters of the language are a combination of two letters and some of the letters are quite complicated.
Lastly, paneToolbar of your xaml will have added stackpanels named SanskritSpecials and TamilSpecials. The visibility of which is changed on selection of the keyboard in cbKeyboardLayoutSelectionChanged.
B.Changes made in Demo section of virtualkeyboard.
Only one handler added to the textbox in the form of PreviewKeyDown="PreviewKeydownHandler"
Sanskrit Keyboard keyassignment for JHVirtualKeyboard
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace JHVirtualKeyboard.KeyAssignmentSets
{
public class TamilKeyAssignmentSet : KeyAssignmentSet
{
public TamilKeyAssignmentSet()
: base()
{
}
#region KeyboardLayout
public override WhichKeyboardLayout KeyboardLayout
{
get { return WhichKeyboardLayout.தமிழ்; }
}
#endregion
#region FontFamilyName
public override string FontFamilyName
{
get
{
return "Latha";
}
}
#endregion
#region 0: VK_Oem3
public override KeyAssignment VK_Oem3
{
get
{
if (_VK_Oem3 == null)
{
_VK_Oem3 = new KeyAssignment(0x0021, 0x002A, "Exclamation Mark", "Asterisk", false, true);
}
return _VK_Oem3;
}
}
#endregion
#region 1: VK_1
public override KeyAssignment VK_1
{
get
{
if (_VK_1 == null)
{
_VK_1 = new KeyAssignment( 0x0BE7,0x0031,"Tamil ONE", "digit ONE",false, true);
}
return _VK_1;
}
}
#endregion
#region 2: VK_2
public override KeyAssignment VK_2
{
get
{
if (_VK_2 == null)
{
_VK_2 = new KeyAssignment(0x0BE8, 0x0032, "Tamil TWO", "digit TWO", false, true);
}
return _VK_2;
}
}
#endregion
#region 3: VK_3
public override KeyAssignment VK_3
{
get
{
if (_VK_3 == null)
{
_VK_3 = new KeyAssignment(0x0BE9, 0x0033, "Tamil THREE", "digit THREE", false, true);
}
return _VK_3;
}
}
#endregion
#region 4: VK_4
public override KeyAssignment VK_4
{
get
{
if (_VK_4 == null)
{
_VK_4 = new KeyAssignment(0x0BEA, 0x0034, "Tamil FOUR", "digit FOUR", false, true);
}
return _VK_4;
}
}
#endregion
#region 5: VK_5
public override KeyAssignment VK_5
{
get
{
if (_VK_5 == null)
{
_VK_5 = new KeyAssignment(0x0BEB,0x0035, "Tamil FIVE","digit FIVE" , false, true);
}
return _VK_5;
}
}
#endregion
#region 6: VK_6
public override KeyAssignment VK_6
{
get
{
if (_VK_6 == null)
{
_VK_6 = new KeyAssignment(0x0BEC, 0x0036, "Tamil SIX", "digit SIX", false, true);
}
return _VK_6;
}
}
#endregion
#region 7: VK_7
public override KeyAssignment VK_7
{
get
{
if (_VK_7 == null)
{
_VK_7 = new KeyAssignment(0x0BED, 0x0037, "Tamil SEVEN", "digit SEVEN", false, true);
}
return _VK_7;
}
}
#endregion
#region 8: VK_8
public override KeyAssignment VK_8
{
get
{
if (_VK_8 == null)
{
_VK_8 = new KeyAssignment(0x0BEE, 0x0038, "Tamil EIGHT", "digit EIGHT", false, true);
}
return _VK_8;
}
}
#endregion
#region 9: VK_9
public override KeyAssignment VK_9
{
get
{
if (_VK_9 == null)
{
_VK_9 = new KeyAssignment(0x0BEF, 0x0039, "Tamil NINE", "digit NINE", false, true);
}
return _VK_9;
}
}
#endregion
#region 10: VK_0
public override KeyAssignment VK_0
{
get
{
if (_VK_0 == null)
{
_VK_0 = new KeyAssignment( 0x0030, "digit ZERO", false);
}
return _VK_0;
}
}
#endregion
#region 11: VK_OemMinus
public override KeyAssignment VK_OemMinus
{
get
{
if (_VK_OemMinus == null)
{
_VK_OemMinus = new KeyAssignment(0x002D, 0x002E, "Hyphen,Minus", "Period", false, true);
}
return _VK_OemMinus;
}
}
#endregion
#region 12: VK_OemPlus
public override KeyAssignment VK_OemPlus
{
get
{
if (_VK_OemPlus == null)
{
_VK_OemPlus = new KeyAssignment(0x028, 0x0029, "Left Parenthesis", "Right Parenthesis", false, true);
}
return _VK_OemPlus;
}
}
#endregion
#region 13: VK_Q
public override KeyAssignment VK_Q
{
get
{
if (_VK_Q == null)
{
_VK_Q = new KeyAssignment(0x0B85, 0x0BCD,"Letter a","letter with upper dot",false,true );
}
return _VK_Q;
}
}
#endregion
#region 14: VK_W
public override KeyAssignment VK_W
{
get
{
if (_VK_W == null)
{
_VK_W = new KeyAssignment(0x0B86, 0x0BBE,"Letter A","letter with leg",false ,true );
}
return _VK_W;
}
}
#endregion
#region 15: VK_E
public override KeyAssignment VK_E
{
get
{
if (_VK_E == null)
{
_VK_E = new KeyAssignment(0x0B87, 0x0BBF,"Letter i","addition vowel",false ,true );
}
return _VK_E;
}
}
#endregion
#region 16: VK_R
public override KeyAssignment VK_R
{
get
{
if (_VK_R == null)
{
_VK_R = new KeyAssignment(0x0B88, 0x0BC0,"Letter E","Addition Vowel E",false,true );
}
return _VK_R;
}
}
#endregion
#region 17: VK_T
public override KeyAssignment VK_T
{
get
{
if (_VK_T == null)
{
_VK_T = new KeyAssignment(0x0B89, 0x0BC1,"Letter u","Addition Vowel",false,true );
}
return _VK_T;
}
}
#endregion
#region 18: VK_Y
public override KeyAssignment VK_Y
{
get
{
if (_VK_Y == null)
{
_VK_Y = new KeyAssignment(0x0B8A, 0x0BC2,"Letter U","Addition Vowel",false,true);
}
return _VK_Y;
}
}
#endregion
#region 19: VK_U
public override KeyAssignment VK_U
{
get
{
if (_VK_U == null)
{
_VK_U = new KeyAssignment(0x0B8E, 0x0BC6,"Letter e","Addition Vowel",false,true );
}
return _VK_U;
}
}
#endregion
#region 20: VK_I
public override KeyAssignment VK_I
{
get
{
if (_VK_I == null)
{
_VK_I = new KeyAssignment(0x0B8F, 0x0BC7,"Letter E","Addition Vowel",false,true );
}
return _VK_I;
}
}
#endregion
#region 21: VK_O
public override KeyAssignment VK_O
{
get
{
if (_VK_O == null)
{
_VK_O = new KeyAssignment(0x0B90, 0x0BC8, "Letter ai", "Addition Vowel", false, true);
}
return _VK_O;
}
}
#endregion
#region 22: VK_P
public override KeyAssignment VK_P
{
get
{
if (_VK_P == null)
{
_VK_P = new KeyAssignment(0x0B92, 0x0BCA, "Letter o", "Addition Vowel", false, true);
}
return _VK_P;
}
}
#endregion
#region 23: VK_OemOpenBrackets
public override KeyAssignment VK_OemOpenBrackets
{
get
{
if (_VK_OemOpenBrackets == null)
{
_VK_OemOpenBrackets = new KeyAssignment(0x0B93, 0x0BCB, "Letter O", "Addition Vowel", false, true);
}
return _VK_OemOpenBrackets;
}
}
#endregion
#region 24: VK_Oem6
public override KeyAssignment VK_Oem6
{
get
{
if (_VK_Oem6 == null)
{
_VK_Oem6 = new KeyAssignment(0x0B94, 0x0BCC, "Vowel au", "Aytham", false, true);
}
return _VK_Oem6;
}
}
#endregion
#region 25: VK_Oem5
public override KeyAssignment VK_Oem5
{
get
{
if (_VK_Oem5 == null)
{
_VK_Oem5 = new KeyAssignment(0x0B83, "Letter aytham", false);
}
return _VK_Oem5;
}
}
#endregion
#region 26: VK_A
public override KeyAssignment VK_A
{
get
{
if (_VK_A == null)
{
_VK_A = new KeyAssignment(0x0B95,"LETTER ka",false );
}
return _VK_A;
}
}
#endregion
#region 27: VK_S
public override KeyAssignment VK_S
{
get
{
if (_VK_S == null)
{
_VK_S = new KeyAssignment(0x0B99, "LETTER nga",false );
}
return _VK_S;
}
}
#endregion
#region 28: VK_D
public override KeyAssignment VK_D
{
get
{
if (_VK_D == null)
{
_VK_D = new KeyAssignment(0x0B9A, "LETTER ca", false);
}
return _VK_D;
}
}
#endregion
#region 29: VK_F
public override KeyAssignment VK_F
{
get
{
if (_VK_F == null)
{
_VK_F = new KeyAssignment(0x0B9E, "LETTER GYa", false);
}
return _VK_F;
}
}
#endregion
#region 30: VK_G
public override KeyAssignment VK_G
{
get
{
if (_VK_G == null)
{
_VK_G = new KeyAssignment(0x0B9F, "LETTER Ta", false);
}
return _VK_G;
}
}
#endregion
#region 31: VK_H
public override KeyAssignment VK_H
{
get
{
if (_VK_H == null)
{
_VK_H = new KeyAssignment(0x0BA3, "LETTER Na", false);
}
return _VK_H;
}
}
#endregion
#region 32: VK_J
public override KeyAssignment VK_J
{
get
{
if (_VK_J == null)
{
_VK_J = new KeyAssignment(0x0BA4, "LETTER tha", false);
}
return _VK_J;
}
}
#endregion
#region 33: VK_K
public override KeyAssignment VK_K
{
get
{
if (_VK_K == null)
{
_VK_K = new KeyAssignment(0x0BA8, "LETTER na", false);
}
return _VK_K;
}
}
#endregion
#region 34: VK_L
public override KeyAssignment VK_L
{
get
{
if (_VK_L == null)
{
_VK_L = new KeyAssignment(0x0BA9, "LETTER nha", false);
}
return _VK_L;
}
}
#endregion
#region 35: VK_Oem1
public override KeyAssignment VK_Oem1
{
get
{
if (_VK_Oem1 == null)
{
_VK_Oem1 = new KeyAssignment(0x0BAA, "LETTER pa", false);
}
return _VK_Oem1;
}
}
#endregion
#region 36: VK_OemQuotes
public override KeyAssignment VK_OemQuotes
{
get
{
if (_VK_OemQuotes == null)
{
_VK_OemQuotes = new KeyAssignment(0x0BAE, "LETTER pa", false);
}
return _VK_OemQuotes;
}
}
#endregion
#region 37: VK_Z
public override KeyAssignment VK_Z
{
get
{
if (_VK_Z == null)
{
_VK_Z = new KeyAssignment(0x0BAF, "LETTER ya", false);
}
return _VK_Z;
}
}
#endregion
#region 38: VK_X
public override KeyAssignment VK_X
{
get
{
if (_VK_X == null)
{
_VK_X = new KeyAssignment(0x0BB0, "LETTER ra", false);
}
return _VK_X;
}
}
#endregion
#region 39: VK_C
public override KeyAssignment VK_C
{
get
{
if (_VK_C == null)
{
_VK_C = new KeyAssignment(0x0BB1, "LETTER Ra", false);
}
return _VK_C;
}
}
#endregion
#region 40: VK_V
public override KeyAssignment VK_V
{
get
{
if (_VK_V == null)
{
_VK_V = new KeyAssignment(0x0BB2, "LETTER la", false);
}
return _VK_V;
}
}
#endregion
#region 41: VK_B
public override KeyAssignment VK_B
{
get
{
if (_VK_B == null)
{
_VK_B = new KeyAssignment(0x0BB3, "LETTER La", false);
}
return _VK_B;
}
}
#endregion
#region 42: VK_N
public override KeyAssignment VK_N
{
get
{
if (_VK_N == null)
{
_VK_N = new KeyAssignment(0x0BB4, "LETTER za", false);
}
return _VK_N;
}
}
#endregion
#region 43: VK_M
public override KeyAssignment VK_M
{
get
{
if (_VK_M == null)
{
_VK_M = new KeyAssignment(0x0BB5, "LETTER va", false);
}
return _VK_M;
}
}
#endregion
#region 44: VK_OemComma
public override KeyAssignment VK_OemComma
{
get
{
if (_VK_OemComma == null)
{
_VK_OemComma = new KeyAssignment(0x0B9C, "Letter ja", false);
}
return _VK_OemComma;
}
}
#endregion
#region 45: VK_OemPeriod
public override KeyAssignment VK_OemPeriod
{
get
{
if (_VK_OemPeriod == null)
{
_VK_OemPeriod = new KeyAssignment(0x002E, "Period", false);
}
return _VK_OemPeriod;
}
}
#endregion
}
}
|
|
|
|
|
And what is your question?
|
|
|
|
|
I am quite new in this area of posting messages. I have wrongly placed it. I am sorry. There is no question from me. This was to be sent JHVirtualKeyboard area. Once again I am sorry to have invited your response to this.
|
|
|
|
|
Hi,
I have a view that inherits from a user control. The problem is when trying to load in the designer, I get the call stack below. I've just about given up on how to fix it and would appreciate any pointers.
(note: I can see the composite UI assembly is in the references, and the version matches (the runtime version is different though)
Thank you!
at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type)
at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetAttributes()
at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes()
at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes()
at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes()
at System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|
|
You can use dependency walker to look for missing dependencies for a dll.
As a guess the library you are using might require one or more of the following (could be others as well.)
Microsoft.Practices.ObjectBuilder2.dll
Microsoft.Practices.Unity.dll
|
|
|
|
|
Hi,
A server farm used by our business currently only has the .Net framework up to version 2.0. I'd like to upgrade the entire farm to include all versions of the framework up to 4.0
As far as I'm aware, this shouldn't cause any issues with the servers or existing applications installed on the servers. I advised...
The frameworks can be installed side-by-side with no issues and an application running on .Net would need
to specifically target a particular version - an existing application running on an older version of .Net will not care that a later version of the framework is installed. Non .Net applications are not affected in any way by framework installations.
However, the company responsible for rollouts in our data silo came back with the rather vague...
We have experienced other clients having problems with a similar installation...
Has anyone experienced any issues with installing 3.5/4.0 on top of 1.1/2.0 where existing application functionality may have broken (or any other adverse effects)
I've performed installations up to version 4.0 on servers we directly support and haven't had any problems at all, I just need to convice the infrastructure guys this is low risk.
Anything I'm missing here, or was my advice correct?
Thanks
|
|
|
|
|
My employer has a server room, most of which only have up to .NET 2.0. Earlier this year I had installed .NET 4.0 on one of them and it works flawlessly. I have never encountered this issue either. Not at work, not at home, not anywhere else.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
My company upgraded to 4 sometime in the last year and did 3 sometime before that. No problems with running installs.
One mitigation strategy would be as follows.
1. Upgraded a single server and monitor for problems. Allow sufficient time for problems to show. Certainly a week and perhaps a month.
2. (Optional) if you have enough servers with the same type of installs then upgrade a percentage of them. For example if you have 100 servers then upgrade 10 of them. Allow sufficient time for problems to show. Certainly a week and perhaps a month.
3. Upgrade the rest of the servers in a staggered manner. Perhaps one a day. Monitor each as you proceed.
As a counter to what they said then you might ask about security patches. Presumably those are being applied. And sometimes those cause problems as well.
|
|
|
|
|
OK thanks both, that's what I expected but good to hear others with no issues
Cheers
|
|
|
|
|
Hi,
I've been googling for hours without finding anything, so I have to turn here! (Frequent reader, first time poster).
I have a VB.net class (myMechModel) that is used to solve a mechanical problem. The class contains all (mechanical) parameters (mass, stiffness, length) are needed to solve the problem and it stores the results in a collection within the class. The class has a method that is being called to run the simulation (myMechModel.Calculate()).
I now want to run multiple simulations of the simulation, but change some of the parameters between each simulation. I could run it sequentially, but I really want to run it in parallel (each simulation run takes about 2 second).
I've been trying to get it working with Parallel.Tasks, but of course calling myMechModel.Calculate() just results in a threading conflict because multiple threads try to write results to the same results collection.
I've been looking into cloning the initial class for each task and then changing the values I want (like mass, stiffness, length). But before I go down that path, I'd like to here comments on what would be the best way of dealing with this!
|
|
|
|
|
2 seconds a run isn't really long enough to be multithreading a single Calculate. What would work is create a number of threads, say one for each processor core in the system, each with its own myMechModel instance, and let each instance do an entire range of parameters.
So, basically, N threads each with a myMechModel, and each thread repeats: { set parameters, run Calculate } for a range of parameters that you want. That way, each thread should be busy for a while and you might be able to benefit from multithreading.
Of course, you need to be interested in running enough calculations before it becomes interesting.
|
|
|
|
|
Thanks for the comments,
I just want to clarify somethings:
* Each run of myMechModel.Calculate() takes about 2 seconds
* I need to run parameter sweeps (mass going from 100-200 in 4 steps, stiffness going from 100-200 in 4 steps etc).
* If I run it all on a single instance of myMechModel on a single thread, I'm talking 10+ seconds.
I think the main problem I have is to figure out how many instances to create, because the number of simulations might vary quite a bit. Should I see how many threads the computer runs, create that many instances and manually setup all the runs on the different threads.
I'd much rather use something more automated/efficient such as the Task Parallel Library, is there anything I could do to use that?
Final questions, I've read about IClonable, is that the way to go to create instances of myMechModel?
|
|
|
|
|
Assuming each simulation takes a small amount of input data, and generates a significant amount of output data, this is what I would do:
- create a single queue with "jobs" (instances of a Job class), each job describing one simulation, with the associated input values;
- have N threads each executing the same code, basically a loop getting a job from the job queue (needs a lock while dequeueing, not while simulating); have each thread stuff its results in:
= the Job object itself, if that is reasonnable (depends on amount and kind of results);
= its own output container (a queue, a file, whatever);
= a shared resource, such as a database.
- launch these N threads where N would equal the number of processors available (i.e. Environment.ProcessorCount), or the number of processors you willing to spend to this work.
- if necessary, have some post-processing that collects all the results, sorts them in the order you want, etc.
The one thing you must watch out for, is results requiring locks for too long a period (in case you use a shared output container), causing other threads to stall.
BTW: if there are many jobs, there is no need to first stuff them all in a queue, you could as well have a separate process that continues to feed the job queue while your simulator threads are already processing some jobs.
Note: if the calculating threads have reasons to stall (e.g. they need file, network, or database data) then you should observe the processor load (with Task Manager) and basically raise N till the CPU is fully loaded. Adding more threads beyond that point isn't going to improve things, and may even work against you.
|
|
|
|
|
i need to run a encryption and decryption algorithm which is written in c language and call the exe file in vb.net and show the output in form window.
|
|
|
|
|