Browse by Tags
All Tags »
Microsoft »
tutorial (
RSS)
Please update your bookmarks, because the new url of this blog is http://khason.net/ (you have not update RSS feeds, it will be done automatically). Why I did it? Why I decided to go to “stand-alone”… Well. there are some reasons. Generally, I do not want to explain all those here, but trust me, there are some. The main reason is, that there is no responsible person in charge for this blog platform in Microsoft Israel. This why, if your blog is popular and you have a respect to your blog visitors...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/capturing-and-streaming-sound-by-using-directsound-with-c/ ] I already wrote a little about managed way to use DirectX DirectSound . Today we’ll speak about how to get sound from your microphone or any other DirectSound capturing device (such as FM receiver ) and stream it out to your PC speakers and any other DirectSound Output device. So, let’s start creating our first echo service...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/quick-silverlight-and-wpf-tip-how-to-write-program-without-xaml/ ] From the moment, 10K MIX09 contest was launched , I got more, then 20 people, asking the same question: Is it possible to have Silverlight program up and running without XAML at all? The answer is “ YES, IT IS ”. Here is how: All you need for run WPF or Silverlight application is Class inherited from System.Windows.Application...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/how-to-pinvoke-varargs-variable-arguments-in-c-or-hidden-junk-in-clr/ ] Recently I wrote a cheat sheet for pinvoking in .NET . Shortly after I got a question in comments about how to deal with variable arguments, when it's more, then one parameter. Also what to do if those arguments are heterogeneous? Let's say, that we have following method in C: int VarSum(int nargs, ...){ va_list...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/programming-for-windows-7/ ] Well, Windows 7 is going to be released by the end of next year. This is great news, because it seemed, that Microsoft finally understand how to get the best of Windows Vista and make it to work not only on monster machines . It even works on new brandy my wife's pinky machine. And if it works there and my wife is happy with it, this OS going to be very...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/pinvoke-cheat-sheet/ ] I’m working a lot with p/invoke, and know how it’s hard to produce correct signature for unmanaged method. So, today I decided to publish basic cheat sheet for methods, parameters and attributes you should use in order to invoke unmanaged methods from managed code without a lot of problems. We start with data type translations. Here the table to understand it. Data...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/free-microsoft-expression-series-video-training-catalogs/ ] MSDN download center just published video catalogs, where you can find sample chapters of Total Training’s video series for Microsoft Expression studio. Worth to download and see. Here the breakdown by products Expression Blend 2 [ Windows / Mac ] Expression Encoder 2 [ Windows / Mac ] Expression Design 2 [ Windows / Mac ] Expression...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/how-to-handle-thickness/ ] Yesterday, we spoke about type converters . We even, built simple generic enum converter. Today, we’ll create more complicated converter, that very missing in Silverlight – ThicknessConverter. During the post, I also explain about tokenizing values in Silverlight What is Thickness ? What is thickness in Silverlight? It’s <Border BorderThickness=”6”/> or...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/work-process-how-to-use-and-build-type-converters/ ] Today, I want to start new tag - “ Work process ”. Here I’m going to publish partial classes, fixes, small utilities, I’m building for myself or clients to help in work process. I’ll give an example : currently, I’m working on BiDi support for Silverlight 2.0 (beta 2 to RTM). During the work process, I need to write different classes...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/how-to-consume-wcf-or-webservice-from-vista-sidebar-gadget-by-using-silverlight/ ] The challenge today is really simple. All we have to do is to write Silverlight Vista Sidebar Gadget , that consumes either WCF , ASMX or REST based service. Really simple, isn’t it? Let’s start Build server side services We should start from services. This is very straight forward mission. Here...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/wordml-to-flowdocument-%e2%80%93-how-to-convert-docx-files-to-wpf-flowdocument/ ] Recently we spoke about converting XPS files and FixedDocuments to FlowDocuments . It works, but there are lot of problems, due to fact, that FixedDocument (or XPS/PDF document) has less information, then the original file. Those files are, actually, printout of the original document. Also we know how to...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/networking-and-sockets-in-silverlight-10-mobile-to/ ] Well, well, well. Two days ago, we spoke about using sockets within Silverlight 2.0 and WPF . Today, we’ll make a step ahead and will use TCP or UDP client-server connection within Silverlight 1.0. Yes, 1.0 (the one with JavaScript only and no sockets). So, let’s start Rock ‘n Roll. Oh, baby – it cannot be done...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/silverlight-20-beta-1-is-alive-how-to-use-it-now/ ] As you, probably, know, Silverlight 2.0 got "non-commercial" go-live and how you can start using it for real. But how to do it? Let try to understand. First of all, you have to remove all previous versions of Silverlight as well as remove Silverlight Alpha tools for Visual Studio. Then, install Runtime andm using chain installer...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/how-to-high-performance-graphics-in-wpf/ ] Microsoft DPE : "WPF is ever best super performance oriented technology for creating hyper multi point graphs, using parallelism and huge in-memory persistence vector scrounged math distributed calculations... And ever more with branded new Microsoft Windows Vista 7. Client : Errr, well.... Let's try to apply it for our VB program.....
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/how-to-build-cool-games-by-using-xna-framework/ ] This TechEd , me and Alex will explain how to make XNA, WPF and {censored} work together to develop entertainment stuff easier. In spite of the fact, that we'll explain a little about XNA core, it makes cense (if you want to know) to learn it yourself. Trust me, XNA is brilliant framework, that makes you able to build games easier...
More Posts
Next page »