You can search "Cakewalk ACT" and "Control Surface Sonar" in this forum, youtube or just in google to get all possible guides. You can also check my site (the link in my signature).
Do not forget to first check your controller configuration (from the manual):
"Standard Operation:These buttons send standard MIDI CC, MIDI note, MMC (MIDI Machine Control) or other advanced MIDI messages (see Appendix B), based on the parameter they are assigned to, or the active preset. Each button can be reassigned to control various parameters in your DAW, including the transport controls, by using your recording application’s MIDI Learn function (if available – check the user documentation for your DAW), or assigning the Oxygen controls manually as described in Section 9 - Advanced Programming Functions. "
To avoid problems, do not configure it as MMC (some users have reported it does not work well with 64bit SONAR). MIDI note/CC (on MIDI channel different from the keys) should work fine. Then either Generic Surface or ACT MIDI will be able to use them.