CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 09 Aug 2025 21:17:14 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080410162922
location: https://web.archive.org/web/20080410162922/https://www.daniweb.com/code/snippet144.html
server-timing: captures_list;dur=0.510626, exclusion.robots;dur=0.014314, exclusion.robots.policy;dur=0.005944, esindex;dur=0.007088, cdx.remote;dur=1125.281772, LoadShardBlock;dur=601.608530, PetaboxLoader3.datanode;dur=96.872947, PetaboxLoader3.resolve;dur=381.828609
x-app-server: wwwb-app239
x-ts: 302
x-tr: 2460
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app239; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sat, 09 Aug 2025 21:17:16 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Thu, 10 Apr 2008 16:29:22 GMT
x-archive-orig-server: Apache/2.2
x-archive-orig-x-powered-by: PHP/5.1.6
x-archive-orig-set-cookie: bblastvisit=1207840688; expires=Fri, 10-Apr-2009 16:29:22 GMT; path=/; domain=.daniweb.com
x-archive-orig-set-cookie: bblastactivity=0; expires=Fri, 10-Apr-2009 16:29:22 GMT; path=/; domain=.daniweb.com
x-archive-orig-cache-control: private
x-archive-orig-pragma: private
x-archive-orig-vary: Accept-Encoding,User-Agent
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 10 Apr 2008 16:29:22 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 14 Jan 2005 16:35:05 GMT", ; rel="prev memento"; datetime="Mon, 10 Dec 2007 13:11:53 GMT", ; rel="memento"; datetime="Thu, 10 Apr 2008 16:29:22 GMT", ; rel="next memento"; datetime="Fri, 29 Aug 2008 22:22:36 GMT", ; rel="last memento"; datetime="Sun, 01 Oct 2017 19:08:33 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_3_20080410102649_crawl108-c/51_3_20080410160337_crawl104.arc.gz
server-timing: captures_list;dur=0.655925, exclusion.robots;dur=0.043726, exclusion.robots.policy;dur=0.008098, esindex;dur=0.010580, cdx.remote;dur=42.143933, LoadShardBlock;dur=754.483399, PetaboxLoader3.resolve;dur=1239.704677, PetaboxLoader3.datanode;dur=311.365810, load_resource;dur=831.382511
x-app-server: wwwb-app239
x-ts: 200
x-tr: 1730
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Windows Media Player embedded in basic code ( mp3 wma mid ) - qbasic
Windows Media Player embedded in basic code ( mp3 wma mid )
•
•
•
•

What is DaniWeb IT Discussion Community?
You're currently browsing the Legacy and Other Languages section within the Software Development category of DaniWeb, a massive community of 309,254 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,064 IT professionals currently interacting right now! If you are in the IT industry or are just a technology enthusiast, you might find just what you're looking for in DaniWeb. Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Legacy and Other Languages advertiser: Modernize Legacy Data with Sybase
This shows you how to create a Windows GUI program in BCX basic and embed the Media Player in the form. It will give you a fully functional player with a 30k executable size for your MP3 files. The needed header files and library files are included in the BCX download. The ATL.DLL and WMPlayer.OCX are usually supplied with Windows and are in the System32 folder.
' embeds the Windows Media Player ACTIVEX control within a BCX Form ' original PBWIN code by Jose Roca, modified by Kevin Diggins and ' Mike Henning for BCX, COM binding credit goes to Ljubisa Knezevic ' requires Windows Media Player, Automatic Template Libraries are in ATL.DLL ' needs BCX basic ver 5.05.05 or later, download free package from: ' https://www.rjpcomputing.com/programming/bcx/devsuite.html ' you can play MP3 WMA MID and WAV files and more $LIBRARY <oleaut32.lib> $LIBRARY <uuid.lib> #include <oaidl.h> ' this generates WinMain(), sets the Classname and the scalefactor GUI "MediaPlayer4", PIXELS CONST IDC_CTRL = 1001 CONST IDC_Btn1 = 1002 GLOBAL hWmp AS HWND GLOBAL Form AS HWND GLOBAL Btn1 AS HWND GLOBAL pUnk AS IUnknown PTR GLOBAL objWmp AS Object GLOBAL Pth$ ' string ' required to create the form and it's components SUB FORMLOAD DIM RAW Style = WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN BCX_SHOW_COM_ERRORS(TRUE) Pth$ = SYSDIR$ & "\atl.dll" ' path string for ATL.DLL AtlAxWinInit(lib Pth$) ' initialize ATL.DLL Form = BCX_FORM("Embedded Media Player",0,0,450,300,Style,WS_EX_CONTROLPARENT) hWmp = BCX_CONTROL("AtlAxWin",Form,"WMPlayer.OCX",IDC_CTRL,0,0,0,0) Btn1 = BCX_BUTTON("Load",Form,IDC_Btn1) AtlAxGetControl(lib Pth$, hWmp, &pUnk) objWmp = BCX_DispatchObject(pUnk, TRUE) SHOW(Form) END SUB ' code between BEGIN EVENTS/END EVENTS takes care of the event messages BEGIN EVENTS DIM RAW rc AS RECT SELECT CASE CBMSG CASE WM_SYSCOMMAND ' keeps the program from remaining in memory IF (wParam & 0xFFF0) = SC_CLOSE THEN SendMessage(hWnd, WM_DESTROY, wParam, lParam) EXIT FUNCTION END IF ' set up the OpenFileDialog and get the file's name CASE WM_COMMAND ' the load button has been clicked IF LOWORD(wParam) = IDC_Btn1 THEN DIM Filename$ DIM Mask$ Mask$ = "Music Files|*.mid;*.mp3;*.wma;*.wav|" ' initial dir is "D:\Music1\MP3", change for your needs Filename$ = GETFILENAME$("Open Media File",Mask$,0,Form,0,"D:\Music1\MP3") IF Filename$ > "" THEN LoadWmp (Filename$) Filename$ = "" END IF ' filename END IF ' btn1 ' take care of resizing CASE WM_SIZE IF wParam <> SIZE_MINIMIZED THEN GetClientRect (hWnd, &rc) MoveWindow(GetDlgItem(hWnd,IDC_CTRL),0,25, rc.right-rc.left,rc.bottom-rc.top-25,TRUE) END IF ' clean up and exit properly CASE WM_DESTROY Set objWmp = Nothing PostQuitMessage(0) EXIT FUNCTION END SELECT END EVENTS ' load the music file SUB LoadWmp (Filename$) objWmp.url = Filename$ END SUB
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)