Check out the new ideas which the Microsoft(r) is currently working on. You can help them test these ideas to make them better for everyone.
Site: http://get.live.com/betas/home
Thursday, November 29, 2007
VB 9 Series - Friend Assemblies
Welcome to the 3rd Article in the Series of VB 9. In this article we'll look at a new feature added to the VB language i.e. InternalsVisibleTo Attribute - 'Friend Assemblies'.
You might have had some problem in the past where you want to share methods of your 'Friend Assembly' to a particular assembly or assemblies. Now in VB 9.0 you have a way! for this you just have to use an assembly level attribute 'InternalsVisibleTo' (can be found under System.Runtime.ComplierServies) which takes the name of the assembly to which you want to share your methods without extension.
To understand this suppose you have made a Class Library Project say 'testFriend' and write the following code for the class:
Friend Class FriendofDemoClass
.......Function SomeFunction() As Integer
..............Return 0
.......End Function
End Class
Now create a 'Console Application' 'Demo' and after adding the refrence of 'testFriend' make an object of 'FriendofDemoClass' when you make an object of this class outside its scope ('Friend' can only be accessed within the scope of its assembly) you get this error.

Now go back to your 'testFriend' Library and add the 'InternalsVisibleTo' attribute which can be found under System.Runtime.CompilarServices.
Imports System.Runtime.CompilarServices
< InternalsVisibleTo.("Demo") > _
Friend Class FriendofDemoClass
.......Function SomeFunction() as Integer
..............Return 0
.......End Function
End Class
Now everything works fine !
You might have had some problem in the past where you want to share methods of your 'Friend Assembly' to a particular assembly or assemblies. Now in VB 9.0 you have a way! for this you just have to use an assembly level attribute 'InternalsVisibleTo' (can be found under System.Runtime.ComplierServies) which takes the name of the assembly to which you want to share your methods without extension.
To understand this suppose you have made a Class Library Project say 'testFriend' and write the following code for the class:
Friend Class FriendofDemoClass
.......Function SomeFunction() As Integer
..............Return 0
.......End Function
End Class
Now create a 'Console Application' 'Demo' and after adding the refrence of 'testFriend' make an object of 'FriendofDemoClass' when you make an object of this class outside its scope ('Friend' can only be accessed within the scope of its assembly) you get this error.
Now go back to your 'testFriend' Library and add the 'InternalsVisibleTo' attribute which can be found under System.Runtime.CompilarServices.
Imports System.Runtime.CompilarServices
Now everything works fine !
Photosynth - Changing the way you think about Digital Photos !
Photosynth is an amazing new technology from Microsoft(r) Live Labs that will change forever the way you think about digital photos.

Their software takes a large collection of photos of a place or an object, analyzes them for similarities, and displays them in a reconstructed three-dimensional space.
With Photosynth you can:
- Walk or fly through a scene to see photos from any angle.
- Seamlessly zoom in or out of a photo whether it's megapixels or gigapixels in size.
- See where pictures were taken in relation to one another.
- Find similar photos to the one you're currently viewing.
- Send a collection - or a particular view of one - to a friend.
YamiPod - Mange your iPod
YamiPod is a freeware application to efficiently manage your iPod under Mac OS X, Windows and Linux. It can be run directly from your iPod and needs no installation. Take a look at the feature list to find out what it can do and feel free to suggest anything that might be missing.
Site: www.YamiPod.com
Site: www.YamiPod.com
Wednesday, November 28, 2007
GameFAQs...!
GameFAQs is an online archive of video and computer game information, codes, walkthroughs, hints, message boards, save games files, and of course, FAQs. Everything on the site is contributed freely by various members of the public and is available for free private use to all visitors. If you're stuck on a game, want to find out more information about it, or just like reading about upcoming and past games, you'll likely find what you're looking for here !
Site: www.gamefaqs.com
Site: www.gamefaqs.com
Subscribe to:
Posts (Atom)