I am not an expert in "depression" although been there many times. What helped in my case were the short walks I made near town or in the park. This was the "pill" taken every day that turned the things around. Of course, if you really fill on the edge and "taking it the easy way out" you should definitely speak with someone! But try to take joy of the small things you have. Take it easy and slow and it will get better! Job rejections are always tough, I personally also am taking them way too serious, while in reality the companies really don't care. What they care is to reduce costs, and increase gains. What I did when I was in the same situation, I just reworked my application docs several times, until reaching a satisfactory quality to hook the recruiting guys up, and reduced my salary expectation.
Regarding the Cpp, man I don't know in which country you are, but at least in Switzerland, my country, I stumble upon thousands of job openings for Embedded development engineers every day. Don't know your background, but try thinking a bit more broader.
Bottom line, take it easy, and try doing something you love every day consistently at least once. Tweak your Resume. There some good templates/suggestions in the net these days. Reduce expectations. DON'T read news!