Showing posts with label Visual. Show all posts
Showing posts with label Visual. Show all posts

Monday, February 25, 2008

Visual Studio 2008 is Here!

Hi Guys!
Its been so long after my last post. Actually was kind of busy with things. Anyways, One of the biggest software releases being talked about for the last few months, you guessed it right, Visual Studio 2008 is finally out in its RTM build. It was running in beta for quiet a few months and now is out with many new features as well as enhancements to the previous ones. The new version promises to make life of programmers easier while giving them more flexibility and functionality in working with the new features introduced in .NET Framework 3.0 as well as the new 3.5 "futurz". I will not get into much details about it here but here are the few things that i liked in it rightaway.

Multiple Framework Version Support : In Visual Studio 2008, You can specify in the project properties, which .NET framework version you wish to compile your application against. This is a very useful feature and gives you the flexibility to work with any version of .NET framework (Starting from 2.0) in the same IDE. You do not have to keep the VS 2005 IDE on your system along with it. When you select a different Framework version in the properties, the IDE reloads the project with settings that target that particular version of framework.
IDE and Language Enhancements : The IDE of Visual Studio 2008 is much more friendly then its previous one. Its quiet fast in loading and most of the glitches from the previous one have been removed. The overall look-and-feel of the IDE has been improved too. There are quiet a few tools that have been added to it. One that requires mention is the Object Relational Designer (O/R Designer) which simplifies the use of LINQ in Visual Studio Data Projects. It lets the developer, in real time, to design LINQ-TO-SQL classes using a visual interface. You can add Classes, Inheritance between them, properties, methods by dragging items from database explorer etc. Quiet a handy one.

A handy enhancement to language features to C#, which i personally use very much is the quick property definition syntax for simple property definitions. Earlier in Visual Studio 2005, while developing class libraries, we use to create a lot of properties to just access some private data member in a secured way. It was quiet cumbersome to write these. typically the code looks like this:

class Test
{
private int _testProp;
public int TestProp
{
get
{
return _testProp;
}
set
{
_testProp=value;
}
}
}

As you can see, nothing much is being done in this property except getting and setting the value. Imagine this being done for 10-15 private data members and you know what i am talking about. Now in Visual Studio 2008, the shortcut method for this code is:

public int test{get;set;}

Thats it! it will create a simple get and set kind of property. I simply love this feature.Apart from this there are many other features like the var keyword, which lets you implicitly define the type of a variable at compile time on the basis of value you assign to it, Object initializers, which lets you initialise an object by providing different values for its fields in curly braces just like you initialise primitive types, LAMBADA expressions which lets you create parameterized anonymous methods which can be used in place of an delegate object, partial method definations, anonymous types etc.

All these enhancements apply to Visual Basic 2008 also. For detailed information about these, refer to the .NET documentation.

There is much much more to tell about it. its a huge release, but due to lack of time,i will leave it here. In the End, i would like to say just one thing, Its worth upgrading to. :-)

Installing and Using Visual Studio 6 on Windows Vista

Hi Everyone,
I recently upgraded to Vista and after a few updates, my system was running awesome. But the real pain begun when i tried installing Visual Studio 6. I still use VB 6 for some reasons, along with VS.NET 2005. The setup failed straightforwardly. After many tries and searching on MSDN forums, i have found a way to do it.

Here you go...

Note: First thing to note is that Visual Basic 6 and Visual FoxPro 6 are the only components of VS 6 that are supported on Vista. For Visual C++ 6 and Visual Interdev 6, Use the Visual C++ 2005 and Visual Web Developer features of Visual Studio 2005 or 2008.
1. Right click the file setup.exe in root of Visual Basic 6 CD and choose "Run as administrator.
2. Setup will run the java virtual machine setup and restart windows.
3. After returning, setup may not run automatically. In that case run it again as in step 1.
4. Go through the first few pages as usual.
5. On the last setup page just before installation begins, setup it asks for installation folder. click custom.
6. First click 'Select All'. Now uncheck
a) Visual C++ 6
b) Visual Interdev 6
c) Under Tools, Uncheck VC Error Lookup, Self installing EXE redistributable File, OLE/COM Object Viewer, WIN32 SDK Tools, MFC Trace Utilities.
Out of these, only OLE/COM Object Viewer is important, its incompatible with the new Visual Studio 2005 Tools. So it will give you problem if you are installing both VS 6 and VS 2005.7. Continue installing. Setup will complete and restart system.

Congrats!
------------------------------
One more thing, to use vb, right click its shortcut and click properties. On the compatibility page, check the 'Run in compatibility mode' check box and choose Windows XP SP2. Also check the 'Run as Administrator' checkbox. Click OK and double click the shortcut to begin.This last step is important or you wont be able to use any Active X components or set any references, since VB would not be able to access the Registry.
Cheers!