NewsBot
Members-
Posts
10920 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Resources
Videos
Link Directory
Downloads
Everything posted by NewsBot
-
Generics, Inheritance and Casting
NewsBot posted a topic in Microsoft Products Support & Discussions
Given a setup like this: public interface ISomething { ***public void SomeMethod(); } public class Bob : ISomething { ***... } public class Jenny : ISomething { ***... } public class SomethingCollection where T : ISomething { ... } public SomethingCollection GimmeSomeSomethings(SomeClause) { ***switch( SomeClause ) ***{ ******case One: ******return SomethingCollection; ******case Two: ******return SomethingCollection; ***} } Why doesn't this work, and how could it be made to? main() { ***SomethingCollection = (SomethingCollection)GimmeSomeSomethings(One); } (Can we assume that any typographical errors or minor issues are only because I'm writing this to illustrate the problem.) I get a "cannot convert type SomethingCollection to SomethingCollection" error. I've been trying to read up on Covariance and Contravariance, so feel free to jargon me to death and I'll just have to cope. Because if it doesn't work, I may have to go back and change a stack of someone's code... (whoop-ti-doo) [edit: don't spare me, if it's simply that despite Bob*being a subclass*of (or "smaller than" if you prefer")*ISomething, SomethingCollection isn't a subclass of (smaller than) SomethingCollection. Then I need to know definitively.] More... View All Our Microsft Related Feeds -
When I start it I get the following error: Could not load file or assembly 'Accelerator, Version=1.0.1.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An attempt was made to load a program with an incorrect format. What am I doing wrong? None of the samples provided with Accelerator (July) won't run :| More... View All Our Microsft Related Feeds
-
MARKET SCAN CXOToday.com, India - 19 hours ago In 2007, the market share of Windows Vista sat below 10 percent. This threshold will be crossed in 2008. The release of Service Pack 1 for Windows Vista is ... More... View All Our Microsoft Related Feeds
-
Is there a iPhoto application (or something similar) for Windows/Web? Flickr is OK but makes navigating my photos so much more manual than just running with EXIF and sorting from there... More... View All Our Microsft Related Feeds
-
Where are the pagename.aspx.designer.cs files in VS 2008? I used to be able to show hidden files in the solution explorer to view them, but I don't see a "view hidden files" option anylonger. Am I missing something? Where does all the initialization code get generated to for aspx pages now? More... View All Our Microsft Related Feeds
-
Hey C9! I've decided to try out CLR stored procedures for my new web app. One thing I can't seem to figure out (google's not helping too much as I get the same articles over and over again) is, is it possible to input any object into the procedure? Like, if I have an Employee object, can I just pass that into the stored procedure, and then call Employee methods to construct the SQL string within the procedure? Or can I only input T-SQL types? When I go to deploy it in SQL Server, it doesn't complain about the custom data types. Until I go to test it with actual code, I wont know. So, do you guys off the top of your head know what*a clr stored procedure can contain and what it can't? Thanks! More... View All Our Microsft Related Feeds
-
Mozilla rubbishes IE Firefox security study Register, UK - 8 hours ago His previous study - a comparison between the number of security vulnerabilities in Windows Vista, Mac OS X, and Ubuntu Linux in the first six months of ... IE vs Firefox: The Trash Talking Heats Up DailyTech Mozilla scoffs at vulnerability study rating IE superior to Firefox Ars Technica all 12 news articles More... View All Our Microsoft Related Feeds
-
A while ago there was an article about google having a new feature for searching for people, well actually not any particular person, just fotos of people. http://arstechnica.com/news.ars/post/20070530-facial-recognition-slipped-into-google-image-search.html But all these innovations could end up being very useful to photographers, and people in general (and problematic in some respects as well - privacy for once). Let's think about all the things we can get in the future from automatic image analysis and indexing. - places (pictures of the white house) -*architechture (pictures of roman style buildings) - people (pictures of Bob & Bill) - times (pictures of Bob at new years eve) - emotions (pictures of happy Bob) - situations (pictures of Bob & Bill at the white house, shaking hands) I'm not aware of all the features of photosynth and seadragon, but this all points in the direction of automatic analysis and synthesis of images, which will, undoubtedly, prove very useful. How do you see the future of photo{search,indexing,categorization}? More... View All Our Microsft Related Feeds
-
MS Connect is acting very slow for me just now. Anyone else experiencing this? More... View All Our Microsft Related Feeds
-
Channel 8 is having a competition where people tell Max (a dude from over there)*on how to*build a high-end system. The one with the best comments and suggestions gets the final "result". No "real" price limits - ok there are some limits, but you know*;)*[H] http://ms-os.com/Themes/AlmostGlass/images/icon-quote.gif Max wrote: So here's the plan: In this series, I will present my point of view about a certain computer component (like a graphics card or motherboard) YOU comment and tell me your point of view and why Once we have all the components discussed and chosen, I'll build it and post video to show exactly how I did it Here's the fun part... when I'm done, one of you clever community commentators will WIN the new PC! :D More... View All Our Microsft Related Feeds
-
My M4's been having a bunch of random BSODs lately (they've been steadily increasing since around August this year). They're all BAD_POOL_HEADER with Parameter 1 of 20. According to MSDN's DDK area, my laptop's pool block header is corrupt. Whilst this helps... I'm not a driver developer (yet), so I don't know what the Pool Block Header is, nor what caused the corruption. The errors are dutifully logged in the System Event log, so I've got all 4 parameters: Error code 00000019, parameter1 00000020, parameter2 e2778000, parameter3 e27780b0, parameter4 0c160200. ...but nothing else to go by. Just tell me this is a software/driver issue and not hardware, I don't want to have to send my laptop off again. EDIT: FWIW, a Technet page says BAD_POOL_HEADER bsods are: "This is, perhaps, the most obscure error message. In most cases, if youreceive this error, it's related to the most recent change you've madeon your system. Try undoing the change to get rid of the error." ...but I've been having these errors for ages, and I've made loads of changes since then. Anyone reckon it's hardware? More... View All Our Microsft Related Feeds
-
I know this is begging for attention.... Either shooby goes for good or I do.*I'm tired of it. More... View All Our Microsft Related Feeds
-
He's useless, as has likely been apparent from day one, and is certainly obvious by now. And please use something stronger that this: http://www.giftaroo.net/mas_assets/thumb/GU-58752.jpg More... View All Our Microsft Related Feeds
-
There is a very interesting paper about the danger of Google and search engine in general from the University Graz. Read here http://www.iicm.tugraz.at/iicm_papers/dangers_google.pdf Citation: "Google can use its almost universal knowledge of what is happening in the world to play the stock market without risk: in certain areas Google KNOWS what will happen, and does not have to rely on educated guesses as other players in stock market have to. This is endangering trading on markets:* by game theory, trading is based on the fact that nobody has complete information (i.e. will win sometimes, but also loose sometimes). Any entity that never looses rattles the basic foundations of stock exchanges! " Since Heisenberg came up with the "Uncertainty principle" we thought nobody can*predict the future, but now we have Google. ;) What do you think? Is the*threat real? section31 * More... View All Our Microsft Related Feeds
-
Have you had Mono?* No, not the virus... I'm talking about the Mono project.* If you hadn't heard about it, this is a version of .NET that runs on Linux.* While I was in Boston for the ReMix conference I had a chance to chat with Miguel about his work with Novell and the Mono project. Listen to the podcast(MP3) Listen to the podcast(WMA) More... View All Our Microsft Related Feeds
-
From the basic tours of creating your first application to using LINQ, to Creating a C# WPF Application. There will be more videos added in the future too.* If you have a topic you'd like covered, just let them know.... See them all on Coding4fun More... View All Our Microsft Related Feeds
-
Guinness Ad - Tipping Point I guess few of you know about the art of pulling a pint of Guinness, but this is cool video anyway.... More... View All Our Microsft Related Feeds
-
http://ms-os.com/ High Tech Lounge Pair your Windows Mobile device with your Vista-powered laptop High Tech Lounge, NY - 43 minutes ago A brand new Software Developers Kit (SDK) has been uncovered at the Windows Sideshow Team blog. In this SDK, they make mention of portrait QVGA UI designed ... More... View All Our Microsoft Related Feeds