Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Comments

Gary gdesroches
  • BlockingCollection&#60T&#62 Demonstration in Producer-Consumer Scenarios

    Why does BlockingCollection<T> not expose an event for the consumer?

  • Kim Hamilton and Wes Dyer: Inside .NET Rx and IObservable/IObserver in the BCL (VS 2010)

    In your first C# sample...

    var o = Observable.Return(1); 
    o.Subscribe( x => Console.WriteLine("OnNext({0})", x), ex => Console.WriteLine("Error()"), () => Console.WriteLine("Completed()") );
    


    I see you are creating an IObservable object, and you are subscribing to it, but what is telling the observable object to begin calling the OnNext method on its subscribers?

  • Scott Guthrie: Silverlight 3 is here!

    I wish Silverlight had an option to disable the screensaver when playing video.  It's the only reason I never use the Silverlight player on Channel 9.  I am glad to see Silverlight 3 has shipped, but I am disappointed to see the option is still not available.

  • Better Software Quality with Visual Studio Team System 2010

    I'd love to be able to use these tools, but unfortunately they cost 10x the price I paid for the Pro SKU just for one of the Team System SKUs.  It's 20x the price if I want everything.  Not only that, but I'd have to pay 4x-7x the cost every year to keep using it since I'm not allowed to buy a retail copy.  Where exactly is the value?  The only thing Team System's pricing model is doing is keeping it limited to large corporations who have extra money to burn.  Small companies with people who play multiple roles and independent devs are still being left out.  I do hope your marketing department comes to their senses.
  • MSDN/TechNet Site Redesign: More Useful, Better Experience and Search Really Works :)

    The site looks good.  I'm glad the endless stream of redirects for MSDN Subscriber Downloads has finally been fixed. Smiley

    However, I am still unable to use Subscriber Downloads with Firefox.  When I select an item and click "Download," it tries to download an aspx file.  Is there any tweaking I can do, or do you guys still insist on me opening IE for this web site?
  • Programming in the Age of Concurrency - Anders Hejlsberg and Joe Duffy: Concurrent Programming with

    It looks like the Parallel.For call being used in the video assumes the caller wants to increment a variable by 1 until it reaches a certain number.

    This is not always the case. How would I translate the following into a parallel for loop?

    // ShouldCancel() creates a lock and checks some boolean value

    for (int i = 99; i >= 3 && !ShouldCancel(); i -= 3) { ... }


    Are there overloads for this yet? I would imagine it would be something like this...

    int i = 0;
    Parallel.For(
      () => i = 99;
      () => i >= 3 && !ShouldCancel(),
      () => i -= 3,
      () => ...
    );

  • Open Specification Promise: What. How. Why.

    This is good, but I am a little confused. Most of the standards listed are web service standards. Why would Microsoft need to promise not to sue someone for using an industry standard?
  • Conversation with Soma: VS2005 SP1 on Vista, Visual Studio Evolution, How to Become a VP

    Thanks. I'm trying your suggestion (Apply /clr to a single cpp file), but I am having some problems. /clr is not compatible with several compiler switches I am using. I turned them off for the cpp file, and now I am receiving compiler errors stating the source file is not consistent with the pre-compiled header. Do I need to turn off RTC and the other compiler switches I have on project-wide just so I can use /clr in a single source file? Is there a better way to do this?

    stevetei wrote:
    

    Hi Gary,

    Re: MFC and WPF...

    "Thanks, but I am looking for a way to do this in unmanaged C++. I would love to throw the CLR switch in my MFC apps, but the performance hit is too dramatic. Even the UI performance. Building the code is also much slower."

    WPF itself is managed code, so you're going to be in managed-land no matter what.  You might try only throwing the /clr switch on those .cpp modules that require access to managed types.  Throwing /clr on an entire project that was originally designed to be native code (e.g., an MFC project) will definitely cause a bad hair day.  VC++ also allows you to delay load the CLR by placing your managed code in a separate DLL for which you would LoadLibrary() on demand.

    I might also mention that we're working hard to improve the runtime as well as the build performance of mixed native/managed apps.  You should see the fruits of some of this labor in the Orcas release.

    All the best,

    Steve Teixeira
    Group Program Manager, VC++
    http://blogs.msdn.com/texblog

  • Conversation with Soma: VS2005 SP1 on Vista, Visual Studio Evolution, How to Become a VP

    Steve,

    Thanks, but I am looking for a way to do this in unmanaged C++. I would love to throw the CLR switch in my MFC apps, but the performance hit is too dramatic. Even the UI performance. Building the code is also much slower.

    Gary

    stevetei wrote:
    

    "About native C++ support, do you plan on putting WPF support into MFC? If not, is this exposed through COM or standard C calls?"

    Gary,

    For the Visual Studio Orcas release, we are not planning to build new MFC plumbing to connect MFC and WPF.  However, WPF is built with HWND-interop in mind, so adding WPF pizzaz to your MFC UI isn't too difficult to do.  As an example, check out this demo build a while back by Nick Kramer: http://blogs.msdn.com/nickkramer/archive/2006/06/08/622695.aspx

    Thanks!

    Steve Teixeira
    Group Program Manager, VC++

  • Conversation with Soma: VS2005 SP1 on Vista, Visual Studio Evolution, How to Become a VP

    Soma,

    You mentioned the reason for Visual Studio 2005 compatibility issues was lack of admin privileges. I run as a normal user all the time in XP and I run Visual Studio 2003 and 2005. If I need to modify the system in some way, like install a service, I have to do it at the command line anyway. I just use runas in those cases.

    Are there any issues running Visual Studio 2005 in Vista as a standard user which do not exist in XP?

    Also, what kind of issues does Visual Studio 2003 have with Vista?

    About native C++ support, do you plan on putting WPF support into MFC? If not, is this exposed through COM or standard C calls?

    Thanks,
    Gary