sws
04-08-2008, 06:11 PM
OK, here's an example MSVC project that uses MFC. This project should get you started designing a GUI that manipulates REAPER in some new mind-blowing way. :) My example just toggles mute on all tracks. (Not so exciting...)
reaper_mfc_example.zip (For MSVC7+) (http://www.standingwaterstudios.com/reaper/reaper_mfc_example.zip)
reaper_mfc_example_vc6.zip (For MSVC6) (http://www.standingwaterstudios.com/reaper/reaper_mfc_example_vc6.zip)
Notes:
-Place the files into a folder one level down from the SDK you've already installed (SDK\reaper_mfc_test, right next to SDK\jmde) or you'll have to change the #includes
-REAPER integration is done in reaper_mfc_example.cpp/h
-GUI is in ReaperDialog.cpp/h, this is where VC generates the GUI code
-If you're new to MFC, open up the .RC file and browse to IDD_TEST then double click on items to add handlers, right for other options like control variables, etc.
-I added a post-build step such that when you build the reaper_mfc_example.dll is automatically copied to your REAPER directory.
-Run by binding a key to "SWS: Open MFC test" or from ? list
-I have MSVC7, if you have something later you may get conversion warnings!
-Note that when distributing this later, you should include the MFC redist dlls. *Most* people will already have 'em, but not all.
-UPDATE Apr 9 2008: Now there's a separate download for MSVC6 users. First time you use Classwizard the .CLW database should build properly.
Let me know if you have questions on this stuff, I'll do my best to help.
reaper_mfc_example.zip (For MSVC7+) (http://www.standingwaterstudios.com/reaper/reaper_mfc_example.zip)
reaper_mfc_example_vc6.zip (For MSVC6) (http://www.standingwaterstudios.com/reaper/reaper_mfc_example_vc6.zip)
Notes:
-Place the files into a folder one level down from the SDK you've already installed (SDK\reaper_mfc_test, right next to SDK\jmde) or you'll have to change the #includes
-REAPER integration is done in reaper_mfc_example.cpp/h
-GUI is in ReaperDialog.cpp/h, this is where VC generates the GUI code
-If you're new to MFC, open up the .RC file and browse to IDD_TEST then double click on items to add handlers, right for other options like control variables, etc.
-I added a post-build step such that when you build the reaper_mfc_example.dll is automatically copied to your REAPER directory.
-Run by binding a key to "SWS: Open MFC test" or from ? list
-I have MSVC7, if you have something later you may get conversion warnings!
-Note that when distributing this later, you should include the MFC redist dlls. *Most* people will already have 'em, but not all.
-UPDATE Apr 9 2008: Now there's a separate download for MSVC6 users. First time you use Classwizard the .CLW database should build properly.
Let me know if you have questions on this stuff, I'll do my best to help.