Showing posts with label Microsoft Developer Network. Show all posts
Showing posts with label Microsoft Developer Network. Show all posts

Thursday, May 26, 2011

Silverlight: How to Receive Messages from Desktop Application - CodeProject

Silverlight LogoImage via WikipediaIntroduction to Article

The article is a free continuation of How to Send Message to Desktop Application where the Silverlight application sends a text message to the desktop application. Now I would like to show how the Silverlight application can receive text messages from the desktop application using TCP connection. (Actually, the example below shows the bidirectional communication between the Silverlight application and the desktop application.)


Silverlight: How to Receive Messages from Desktop Application - CodeProject

Very simple example showing how to send a message from Silverlight application to standalone desktop application
Silverlight: How to Send Message to Desktop Application - CodeProject

The article shows how to implement receiving of notification messages from the hosting server in the Silverlight application by using Eneter.Messaging.Framework.
Basically there are two approaches if you need to implement the communication scenario where the Silverlight client needs to be notified about some events on the server:

Silverlight: Notification Messages from the Server - CodeProject

 The article shows how to implement communication between Silverlight application and some non-Silverlight application by using Eneter.Messaging.Framework. The example shows Silverlight client invoking requests to the console application. The request can be paused, resumed or cancelled.

Silverlight: Interprocess Communication from Silverlight Application - CodeProject

Summary: The article shows how to use Eneter.Messaging.Framework for the communication between Silverlight applications to send typed messages (no size limitation).

Silverlight: Comunication between Silverlight Applications with Typed Messages - CodeProject
Enhanced by Zemanta

Thursday, April 28, 2011

WCF service that will push content into a Silverlight application [Push notification] - CodeProject

Introduction to the Article

Push notification is a term that has been around a lot. Almost every SmartPhone manufactured has an option for enabling push notification. The word 'PUSH' is a contrast to 'PULL'. It means rather than pulling the content from the server or requesting from the server, the server pushes the content or sends the response as soon as an update is available. On mobiles, this technology is a great battery saver. In web technologies, it saves a lot of server request traffic. There are tons of articles available on the internet about implementing this technique, but I found MSDN the best. Therefore, I went ahead and made the MSDN tutorial even easier for beginners. Remember, this is beginners article, but the idea of implementing a real life application stays around this. You can recode it as best as you can.
Over here, we are going to see a Silverlight application requesting for stock prices of Yahoo! The server will start pushing the latest stock prices. The stock prices are random numbers. The application is based on some assumptions.


WCF service that will push content into a Silverlight application [Push notification] - CodeProject
Enhanced by Zemanta

Thursday, March 10, 2011

WCF Streaming: Upload/Download Files Over HTTP - CodeProject

Introduction to Article

I have tried to transfer large files over HTTP to/from WCF, but I have faced problems in that I was not able to upload files more than 45 KB in size. I have Googled over www, but I did not find any ready-to-use sample code/solution. Using the explanations over the www and MSDN, I have tried many configuration setting combinations and finally succeeded in transferring large files (I have tested up to 1GB on IE6).
I would like to share my experience so as to support efforts of others in this direction and to invite review comments from the developer community.


WCF Streaming: Upload/Download Files Over HTTP - CodeProject
Enhanced by Zemanta

Monday, February 21, 2011

Starting DirectX with Visual Basic .NET - CodeProject

Image representing Microsoft as depicted in Cr...Image via CrunchBaseIntroduction to Article
I will try in this simple tutorial to introduce you to the world of DirectX through Visual Basic, although I am a beginner of both! I will focus on some errors that you could face, and I will try to explain each step as I know, but it may be better to view MSDN also for more information.
There is some talk about the poor performance and features of managed DirectX, and that when you want to learn DirectX, you should learn the native API using C++ or another low level programming language. OK, that may be true, but if you are a novice (or thick headed !), and don't want to bother learning a low level language first, and you want to have a quick beginning in games programming, Visual Basic is a nice choice.
Also, in Visual Basic you will generally concentrate more on the program algorithm than on the language syntax.
About the performance issue, that is the last thing you should worry about, with modern video cards, it is usually no problem. Anyway, you can't easily develop games like Metal Gear and Devil May Cry at home; if you want to develop Super Mario classic or the likes, you can use any language .
There is another important point about managed DirectX, it s no longer supported by Microsoft, and Microsoft developed another games library (XNA) which does not support Visual Basic (and will not) so you will be stuck with DirectX 9 and won't be able to develop any further. Although this is very disappointing, with some alternative SDKs like Slim SDK, there is hope, or may be in future Microsoft change their mind!


Starting DirectX with Visual Basic .NET - CodeProject
Enhanced by Zemanta

Saturday, February 12, 2011

Intellisense: Home-Made - Based on Visual Studio - CodeProject

Introduction to the article

This article shows how to re-create Microsoft's Intellisense technology used in Visual Studio.
Intellisense has been around in source-editors for years now, and with it developers can not only type faster, but use it as a quick reference to the members and methods of a class. This replaces 1000+ page API reference books, making programming much simpler.


Intellisense: Home-Made - Based on Visual Studio - CodeProject
Enhanced by Zemanta