Blogs

  • Silverlight ActiveX Hosting

    WindowlessMedia.zip - 525KWindowlessMedia_demo.zip - 815K

    Introduction

    I finally got some time for an update of the WindowlessMedia library. This update is mainly to explain how you can host Silverlight interface as binary resource in your application. This is a first folks, I hope you will find it useful.

    Description

    The library is quite stable now, I've been using it in two different projects. 3D based version of the container is available but unfortunately, Silverlight is not …

    Read More 
  • MPEG4 Encoder/Decoder DMO

    XvidCoreDmo.zip

    Introduction

    Xvid is an open-source video codec library following the MPEG-4 standard. Xvid is published under the GNU GPL License, it can be used only in free and open source project.In this article, I will present the XvidCoreDmo. I decided to write a DMO instead of DirectShow filter because DMOs can be used in much broader range of applications and they are also much easier to use since a filter graph is not required.

    Description

    Microsoft® DirectX® Media …

    Read More 
  • Windowless ActiveX Container

    Contents

    Introduction

    About ActiveX Container

    Using ActiveXContainerImpl Class

    ActiveX Container Demos

    History

    Introduction

    COM/ActiveX control has been around for more than a decade. In spite of all, it is very difficult to get a complete Windowless container. MFC dialog has its own Windowless container that is truly windowless compare to ATL but if your project can't afford to depend on MFC, you are on your own. The container I am presenting in this article offers complete …

    Read More 
  • Win32 Socket Class

    SocketServer.zip - 261KbSocketHandle.zip - 52KbSocketPort_Linux.zip - 14KbSocketHandle1_3.zip - 48KbSocketPort_Linux1_3.zip - 13Kb

     

    To run the application as client, type SocketServer.exe /client from command prompt.

    Introduction

    This is an updated version of the Socket communication class that I released a couple of years ago. While the interface CSocketHandle is quite stable and easy to use, one has to admit that some of the initial design decisions to keep the …

    Read More 
  • Event Recorder

    EventRecorder.zip

    Introduction

    Initially, I created the event recorder DLL to demonstrate how to integrate mouse and keyboard events capture within a C/C++ application. This solution relies on a neat feature from Microsoft, a "DLL-Application".A "DLL-Application" is a WIN32 dynamic library that is callable from Rundll32.exe utility.

    RunDLL32

    RUNDLL32 is a small but powerful command-line utility that is included with Windows OS. It enables you to call exported functions from a 32-bit DLL. …

    Read More 
  • GDI+ Windows Mobile

    LibGdiplus_Src.zip - 517KLibGdiplus_Bin.zip - 474K

    Introduction

    Recently, I was porting a video player application to Windows CE 6.0 which uses heavily a lot of graphics. I was quite disappointed when I realized that Microsoft didn't distribute Gdiplus.lib with their SDK for Windows CE 5.0 and 6.0. Since I had so much done with GDI+, there was no way to throw that away. So, I developed my own wrapper around the GDI+ dll and hooked it up so it can be used the same way as on the desktop. This …

    Read More 
  • SoundStudio

    SoundStudioMFC.zip - 229K SoundStudioCS.zip - 176Kwindowsmedia.zip - 919K

    Introduction

    SoundStudio is my latest demo application showing how to use peakmeter with real sound. You should find source code to read and decode multimedia audio stream.Most of the code is part of the Multimedia Library that I've been using for the last couple of years. These classes are very easy to use but I should document them in more details once I have some time. If you have questions, let me know. …

    Read More 
  • VideoPlayer

    Video Player (WindowsMedia demo)

    VideoPlayer.zip - 83K VideoPlayerCS.zip - 63Kwindowsmedia.zip - 919K

    Introduction

    VideoPlayer is a demonstration program for the WindowsMedia library. This demo has been created to give an overview of the DirectShow features that are currently being supported.

    Description

    Just like I did for the SoundStudio Demo, you will find two demos for this article. A WIN32 Demo based on WTL library, thus you will need to download WTL to build the demo. WTL is …

    Read More 
  • PeakMeter Control

    PeakMeterCS.zip - 37K PeakMeterMFC.zip - 38K

    Introduction

    Ever since I've been using Winamp, I've always been a big fan of their PeakMeter area.This is the main reason of this control. It is also one of the few PeakMeter that you can find over web.

    Description

    Using PeakMeter in MFC

    There are two versions of this control depending on whether you are using MFC or .NET. The new .NET version offers more features.To use in MFC application, you can subclass a STATIC control or you can …

    Read More 
  • Win32 Named Pipe Communication

    PipeServer.zip

     

     

    To run the application as client, type PipeServer.exe /client from MSDOS.

    Introduction

    Just like the socket communication class, I use NamedPipe quite often in server application. I had this code and demo ready for quite a while now but finally found some time to publish it.

    Description

    The first thing you may want to know is that Windows Named Pipe offers One-Way or Full duplex communication between a server and a client. A Named pipe is a secured …

    Read More