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!
I had my bootstrapped startup for 18+ months, which was not doing well, it was almost like being unemployed; last 6 months I was desperately applying for jobs without getting any traction.
What helped me at that time was Yoga (deep breathing exercises which is part of that was particularly helpful). Yoga used to keep me fresh and 'alive' during the day, so that I could continue looking for jobs without losing steam over period of time.
In the hindsight that single ritual (~4 days a week of morning Yoga), kept me going and now I'm at a good place, managed to recover not only from professional setback but also managed to recover from almost financial wipe-out during that 18-month period.
One of my friends was in a similar situation recently and, going for a walk in the park and basically just talking to friends and family often on phone helped him immensely. He also used to just let his brain trained by waking up early, taking shower and going to public library every morning at 9am and coming home at 5pm and just preparing for the job interviews there.
Wishing OP all the best and I hope he finds the job soon.
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!