Welcome Guest ( Log In | Register )

> foobar2000 Development Forum Rules

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
post Jul 23 2011, 09:52
Post #1

Group: Members
Posts: 10
Joined: 23-July 11
Member No.: 92480


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.
Go to the top of the page
+Quote Post
Start new topic
post 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.
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.

And, I made the resource file by using the ResEdit(free tool).
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.

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
#include "resource.h"

// Dialog resources
IDD_DIALOG1 DIALOGEX 0, 0, 186, 95
//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
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 7th October 2015 - 18:46