Friday, February 18, 2011

Walkthrough: Creating a Data Binding by Using the WPF Designer

Walkthrough: Creating a Data Binding by Using the WPF Designer


Walkthrough: Creating a Data Binding by Using the WPF Designer

Posted: 18 Feb 2011 12:50 PM PST

Learn how to create a data binding in Visual Studio 10's WPF Designer. No code needed!

February Release of Silverlight for Windows Phone Toolkit

Posted: 18 Feb 2011 09:23 AM PST

Yesterday the toolkit team pushed out an update to the Windows Phone Toolkit. You can get the February update here . One of the things I am excited about is that the Performance Progress Bar is now part of the toolkit. No need to do all the copying and...( read more )...(read more)

SQL Script to Create a Website Directory

Posted: 18 Feb 2011 08:26 AM PST

Here you can download sql script to create a website directory using SQL Server.

* This is only the easy directory sql script to develop your website.

Directory software may publish in future.

MFC Application Instance Control

Posted: 18 Feb 2011 06:52 AM PST

An interesting question, asked days ago in one of our C++ forums, was the following:

A possible approach, based in mutex (mutual exclusion) objects, was posted a few hours later. In the proposed schema you declare a mutex object inside the MFC application class (i.e. the class header):

  1. // MFC application class declaration
  2. class CYourAppClass::CWinApp
  3. {
  4.     ...
  5.     HANDLE m_Mutex_h;
  6.     UINT m_WinMsg_ui;
  7.     ...
  8. }

When you define the MFC application InitInstance() method, you attempt to create the mutex -whose creation will succeed the first time, fail afterward.-

  1. BOOL CYourAppclass::InitInstance()
  2. {
  3.     m_WinMsg_ui=RegisterWindowMessage(_T("ONNMESSAGE"));
  4.     m_Mutex_h=::CreateMutex(NULL, FALSE, STR_VIEWUTILITYMUTEX);
  5.  
  6.     if ((m_Mutex_h!=NULL)&&(GetLastError()!=ERROR_ALREADY_EXISTS))
  7.     {
  8.         // App is NOT running twice
  9.         CYourDlg dlg;
  10.         m_pMainWnd = &dlg;
  11.         INT_PTR nResponse = dlg.DoModal();
  12.     }
  13.     else
  14.     {
  15.         // App is running twice send message to running app,
  16.         // the app will now know a 2nd instance was started
  17.         ::SendMessage(HWND_BROADCAST, m_WinMsg_ui, 0, 0);
  18.     }
  19.  
  20.     // more initialization follows
  21.     ...
  22. }

About the else, the solution proponent (Bordon) said the following

The "SendMessage" is only needed if you want that the running application knows a 2nd instance was started. You send a registered windows message to your running application, and your running application will receive this message and knows that a 2nd instance was started. You can create i.e. code in your message handler to bring your app to the front.

Interesting. Was marked as solution by the original guy so it seems it worked. Would you have recommended another approach?

Boss Launch 2 Released!

Posted: 18 Feb 2011 03:27 AM PST

Boss Launch 2: Zombie Attack is now available on the Windows Phone Marketplace. It's the zombie apocalypse, and your only ammunition against the walking dead is an office chair and your fat, lazy boss. Launch your obnoxious leader at waves of oncoming...( read more )...(read more)

Silverlight Cream for February 17, 2011 -- #1048

Posted: 17 Feb 2011 09:44 PM PST

In this Issue: Oren Gal , Andrea Boschin ( -2- ), Kevin Hoffman , Rudi Grobler ( -2- , -3- ), Michael Crump , Yochay Kiriaty , Peter Kuhn , Loek van den Ouweland , Jeremy Likness , Jesse Liberty , and WindowsPhoneGeek . Above the Fold: Silverlight: "Multiple...( read more )...(read more)

Asynchronous Web and Network Calls on the Client in WPF (and Silverlight and .NET in general)

Posted: 17 Feb 2011 04:43 PM PST

An asynchronous network call is one in which you fire off a method and don't block the thread while waiting for it to return. This introduces some complexities since you have to somehow be notified of the success or failure of the call, and need to somehow...( read more )...(read more)

Asynchronous Web and Network Calls on the Client in WPF (and Silverlight and .NET in general)

Posted: 17 Feb 2011 04:43 PM PST

An asynchronous network call is one in which you fire off a method and don't block the thread while waiting for it to return. This introduces some complexities since you have to somehow be notified of the success or failure of the call, and need to somehow...( read more )...(read more)

Introducing the February 2011 Silverlight for Windows Phone Toolkit

Posted: 16 Feb 2011 06:48 PM PST

Announcing the Feb 2011 release of the Silverlight for Windows Phone Toolkit, adding tilt and performance progress bars, and addressing customer-reported issues....( read more )...(read more)

Expression Encoder and IIS Media Services at the Business Video Expo

Posted: 15 Feb 2011 07:58 PM PST

Enterprise video is increasingly being recognized by industry experts, such as Gartner, as an important strategic technology. Accordingly, the Expression Encoder and IIS Media Services Team attended the new Business Video Expo, part of ITEXPO East 2011...( read more )...(read more)

No comments:

Post a Comment