I recently worked on a project that required me to connect to a printer from a Pocket PC with the Widcomm bluetooth stack on it. Frustrating as it was, one positive thing came from it - I generated a nice start to a set of classes for using High-Point Software's BTConnect.
Of course it means that you'll need to buy BTConnect to use this library without the "evaluation mode" popup, but it abstracts the ugliness of sommand-line parameters away from the developer so you can focus on creating your app.
I've parked the library here:
www.opennetcf.org/shared