Click here to Skip to main content
15,886,823 members
Articles / Desktop Programming / MFC

VLCWrapper - A Little C++-wrapper Around libvlc

Rate me:
Please Sign up or sign in to vote.
4.91/5 (49 votes)
12 Mar 2012CPOL3 min read 462.7K   25.8K   169  
An article on wrapping libvlc (VLC media player) in a C++-class
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Deutsch (Deutschland) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
#ifdef _WIN32
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE MOVEABLE PURE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE MOVEABLE PURE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE MOVEABLE PURE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)\r\n"
    "LANGUAGE 7, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#include ""res\\VlcDialog.rc2""  // Nicht mit Microsoft Visual C++ bearbeitete Ressourcen\r\n"
    "#include ""l.DEU\\afxres.rc""      // Standardkomponenten\r\n"
    "#endif\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOG DISCARDABLE  0, 0, 262, 183
STYLE DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About VLCDialog"
FONT 8, "MS Shell Dlg"
BEGIN
    ICON            IDR_MAINFRAME,IDC_STATIC,14,14,21,20
    LTEXT           "VlcDialog",IDC_STATIC,42,16,114,8,SS_NOPREFIX
    LTEXT           "Author: Alex Skoruppa",IDC_STATIC,42,36,114,8
    DEFPUSHBUTTON   "OK",IDOK,205,162,50,14,WS_GROUP
    LTEXT           "Version X.X.X.X",IDC_STATIC_VERSION,42,26,114,8
    EDITTEXT        IDC_EDIT1,7,58,248,101,ES_MULTILINE | ES_AUTOHSCROLL | 
                    WS_DISABLED | NOT WS_BORDER
    LTEXT           "License:",IDC_STATIC,7,47,54,8
END

IDD_VLCDIALOG_DIALOG DIALOGEX 0, 0, 337, 269
STYLE DS_FIXEDSYS | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_VISIBLE | 
    WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
EXSTYLE WS_EX_APPWINDOW
CAPTION "VLCDialog"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
    LTEXT           "",IDC_STATIC_VLC,7,7,320,200
    PUSHBUTTON      ">",IDC_BUTTON_PLAY,16,242,24,14,BS_ICON
    PUSHBUTTON      "|=|",IDC_BUTTON_STOP,75,242,24,14,BS_ICON
    PUSHBUTTON      "| |",IDC_BUTTON_PAUSE,45,242,24,14,BS_ICON
    PUSHBUTTON      "...",IDC_BUTTON_LOAD,135,242,24,14,BS_ICON
    PUSHBUTTON      "M",IDC_BUTTON_MUTE,105,242,24,14,BS_ICON
    CONTROL         "",IDC_SLIDER_MEDIA,"msctls_trackbar32",TBS_BOTH | 
                    TBS_NOTICKS | WS_TABSTOP,10,225,238,15
    CONTROL         "",IDC_SLIDER_VOLUME,"msctls_trackbar32",TBS_BOTH | 
                    TBS_NOTICKS | WS_TABSTOP,239,241,64,15
    LTEXT           "Volume",IDC_STATIC_VOLUME_TEXT,214,245,25,8
    RTEXT           "[00:00:00/00:00:00]",IDC_STATIC_POSITION,253,228,70,8
    RTEXT           "100%",IDC_STATIC_VOLUME,302,244,20,8
    GROUPBOX        "Media control",IDC_STATIC_MEDIA_CONTROL,9,214,320,48
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO MOVEABLE PURE 
BEGIN
    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 255
        VERTGUIDE, 42
        TOPMARGIN, 7
        BOTTOMMARGIN, 176
        HORZGUIDE, 24
        HORZGUIDE, 34
        HORZGUIDE, 44
        HORZGUIDE, 47
    END

    IDD_VLCDIALOG_DIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 330
        TOPMARGIN, 7
        BOTTOMMARGIN, 262
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON    DISCARDABLE     "res\\icon1.ico"
IDI_MUTE                ICON    DISCARDABLE     "res\\player_volume.ico"
IDI_EJECT               ICON    DISCARDABLE     "res\\player_eject.ico"
IDI_PAUSE               ICON    DISCARDABLE     "res\\player_pause.ico"
IDI_PLAY                ICON    DISCARDABLE     "res\\player_play.ico"
IDI_STOP                ICON    DISCARDABLE     "res\\player_stop.ico"
IDI_MUTE2               ICON    DISCARDABLE     "res\\player_mute.ico"

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_ABOUTBOX            "&About VlcDialog..."
    IDS_LICENCSE            "VLCDialog is free software: you can redistribute it and/or\r\n\nmodify it under the terms of the GNU General Public License as\r\n\npublished by the Free Software Foundation, either version 3\r\n\nof the License, or (at your option) any later version.\r\n\r\n\nVLCDialog is distributed in the hope that it will be useful,\r\n\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\r\n\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n\nGNU General Public License for more details.\r\n\r\n\nYou should have received a copy of the GNU General Public License\r\n\nalong with VLCDialog.  If not, see <http://www.gnu.org/licenses/>."
END

#endif    // Deutsch (Deutschland) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
LANGUAGE 7, 1
#pragma code_page(1252)
#include "res\VlcDialog.rc2"  // Nicht mit Microsoft Visual C++ bearbeitete Ressourcen
#include "l.DEU\afxres.rc"      // Standardkomponenten
#endif

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead HERE, a Nokia Business
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions