Skip to main content

Posts

Showing posts from August, 2008

How to Uninstall Symantec Antivirus If we Forget the Password.

I have faced this problem with a workstation inside my Network. Then I follow these steps to remove uninstall Symantec Antivirus.

1) Go to Registry (Regedit).

2) HKEY_LOCAL_MACHINE\SOFTWARE\INTEL\LANDESK\VIRUS PROTECTION\CURRENT VERSION\ADMINISTRATOR ONLY\USEVPUNINSTALLPASSWORD.

3) MODIFY/CHANGE VALUE FROM "1" to "0".

Refresh the registry and then Uninstall Symantec Antivirus. You will get what you want.

HOW TO CREATE AND WRITE A FILE IN VB.NET

Dim FILE_NAME As String = "C:\file2.txt"

If System.IO.File.Exists(FILE_NAME) = True Then

Dim fs As New FileStream(FILE_NAME, FileMode.Create, FileAccess.Write)
Dim s As New StreamWriter(fs)
s.WriteLine("Congrates you have created a new file")
s.Close()

ElseIf System.IO.File.Exists(FILE_NAME) = False Then

Dim fs As New System.IO.FileStream(FILE_NAME, FileMode.Create, FileAccess.Write)
Dim s As New System.IO.StreamWriter(fs)
s.WriteLine("Congrates you have created a new file")
s.Close()

End If

POLYMORPHISM, COMPILATION POLYMORPHISM AND RUNTIME POLYMORPHISM

Polymorphism is the core concept of OOP's. Polymorphism means one name many forms.

Types of polymorphism

Compile Time Polymorphism
Run Time Polymorphism


Compile Time Polymorphism
The compile time polymorphism, here the polymorphism is implemented during compile time, that means at the time of compilation the compiler knows where to bind the method. The compile time polymorphism can be implemented through:

Method Overloading
Operator Overloading


Method Overloading:
In complex applications written in C#, we may need many methods which do essentially similar functions but are just different enough to be considered unique. So, we can define method overloading as if two or three method in a class has same name but they differ by number of arguments or type of argument.

OperatorOverloading:
This provides a meaningful understanding of the operation by using operator overloading. Here what we did is we overload an operator and change its meaning, so that a valuable information is send…

KEYCODEV2.DLL NOT FOUND

This problem is occurred when you are using Crystal Reports in any of your project and have not installed VS.NET 1.x . As you install the full software of Visual Studio 1.x (2003) , it also install DLL's for Crystal Report. So, to solve this problem you have two solutions.

1) Install Visual Studio 2003.

2) Go to References in your project solutions and Follow these options:

a) Right Click on Add Reference.
b) Choose Projects tab in the windows of Add Reference.
c) Click on Browse Button and Select KeyCodeV2.Dll file from "C:\Program Files\Common Files\Crystal Decisions\1.0\Bin\keycodeV2.dll".

Add the file in your references and be happy because now the project will not give the KeyCodeV2 file error.

Happy Programming.

Hope my solution will help you in this regards. I have also solved it in this way.

Boxing and Unboxing in C# .Net

IntroductionIn this article I will explain the concepts of Boxing and UnBoxing. C# provides us with Value types and Reference Types. Value Types are stored on the stack and Reference types are stored on the heap. The conversion of value type to reference type is known as boxing and converting reference type back to the value type is known as unboxing.Let me explain you little more about Value and Reference Types.Value TypesValue types are primitive types that are mapped directly to the FCL. Like Int32 maps to System.Int32, double maps to System.double. All value types are stored on stack and all the value types are derived from System.ValueType. All structures and enumerated types that are derived from System.ValueType are created on stack, hence known as ValueType. Reference TypesReference Types are different from value types in such a way that memory is allocated to them from the heap. All the classes are of reference type. C# new operator returns the memory address of the object.Exa…