sample source code |
This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).
sample source code |
Jul 23 2011, 09:52
Post
#1
|
|
|
Group: Members Posts: 10 Joined: 23-July 11 Member No.: 92480 |
Hi.
I want to program a foobar2000 component which shows the album art. And, I am searching the site which has the sample source codes of component. Please tell me the URL of the site shown above. I prepared the SDK by reading this site. |
|
|
|
![]() |
Aug 14 2011, 04:32
Post
#2
|
|
|
Group: Members Posts: 10 Joined: 23-July 11 Member No.: 92480 |
I wanted to add the dialog window to foobar2000 by using VC++ 2010 Express. (I can not buy the Professional Edition)
I post my memo for someone who is wondering like me. ------ Outline. Step1:Add "pref.cpp" to your project. Step2:Add "resource file" to your project. pref.cpp and resource file are shown below. ------ I added my tag to "the Preferences pages" by the referring to the topic shown below. Especially, pref.cpp(Mr.foosion exsample Post#3) was good help for me. http://www.hydrogenaudio.org/forums/index....mp;#entry373489 And, I made the resource file by using the ResEdit(free tool). ResEdit:http://www.resedit.net/ I modified two lines for changing from the parent window to the child window. Note:VC++ Express dose not supply "the res Edit function" to the programer. My resource file is shown below. CODE #include <windows.h>
#include <commctrl.h> #include <richedit.h> #include "resource.h" // Dialog resources LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDD_DIALOG1 DIALOGEX 0, 0, 186, 95 STYLE DS_SETFONT | WS_CHILD // <- Change //CAPTION "Dialog" <- Comment out FONT 8, "Ms Shell Dlg", 0, 0, 1 { DEFPUSHBUTTON "OK", IDOK, 129, 7, 50, 14 PUSHBUTTON "Cansel", IDCANCEL, 129, 24, 50, 14 CTEXT "This is test", IDC_STATIC, 13, 22, 50, 13, SS_CENTER } This post has been edited by toyoPon3: Aug 14 2011, 04:33 |
|
|
|
toyoPon3 sample source code Jul 23 2011, 09:52
Zao There is a pinned thread named "Pinned: Devel... Jul 23 2011, 14:46
toyoPon3 To Zao.
Thank you for your reply.
Unfortunately, ... Jul 25 2011, 15:36
mudlord Source code for components is also here:
https://g... Jul 25 2011, 16:01
fbuser QUOTE (toyoPon3 @ Aug 14 2011, 04:32) I a... Aug 14 2011, 08:17
toyoPon3 To Mr.fbuser
Thanks for your reply.
I changed fr... Aug 14 2011, 12:03
fbuser QUOTE (toyoPon3 @ Aug 14 2011, 12:03) Ple... Aug 14 2011, 12:46
toyoPon3 To Mr.fbuser
I understood that I need "imple... Aug 14 2011, 13:41
toyoPon3 I implemented my_preferences_page_instance(sub cla... Aug 15 2011, 08:32
fbuser You should call my_preferences_page_instance::Crea... Aug 15 2011, 09:01
toyoPon3 Mr.fbuser.
Thanks.
My program moves as planned.
... Aug 15 2011, 13:43![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 19:01 |