Category Archives: C++

We are looking for C++ Developers

Well I didn’t say anything last time we posted C++ developer job roles, but we currently have two openings for C++ developers as permanent Caterpillar employees, so if you have 4+ year experince in C++ and you want to live in … Continue reading

Posted in C++, Working | Comments Off

TrackPopupMenu in WinCE 5.0

After banging my head against the MSDN documentation* for a few days, it turns out that TrackPopupMenu and TrackPopupMenuEx (in CE 5.0 the former maps to the latter) are not in Menu.lib as per the documentation but in Coredll.lib. Also … Continue reading

Posted in C++ | Leave a comment

Programming Challenges: 110208 Yahtzee

I completed the Yahtzee problem today, after a couple of days effort. I first double checked my previous 2004 solution’s scoring function, there were a few gems in there that I had to reprove, like how the full house was … Continue reading

Posted in C++, Programming | Tagged | 3 Comments

GetTextMetricsW causing memory corruption

I have been converting our ANSI product to UNICODE, and today during testing I was getting “Run-Time Check Failure #2 – Stack around the variable ‘tm’ was corrupted.” error messages. Turned out it was this code: I isolated the code … Continue reading

Posted in C++, Programming | Comments Off

SafeArrayTypeMismatchException

We extended our legacy C++ DCOM application last week, and when the developer wrote the C#.Net end to call the new method, we were getting the error: The developer that had added the method stated it work, and pointed to … Continue reading

Posted in .Net, C#, C++, Programming | 2 Comments