Archive for January, 2010

Weird problem with AfxWinMain()

Wednesday, January 27th, 2010

I spent the last hours hunting down a weird crash problem in AfxWinMain(). It’s the init function in an MFC application that gets called before anything else.

And it crashes at “if (!pThread->InitInstance())” because AfxGetThread() returned a NULL pointer.

The problem was paired with link errors that vanished when the buid was repeated. Since this is “normal” with MS C++ (I’ve seen that problem often before), I didn’t really notice it.

As it turns out the entire code was correct. I imported it into a new project and it worked. Comparing the the vcproj-Files I found the line that made all the difference. Removing this line suddenly fixed my problem:


(in Configuration > Tool Name=”VCCLCompilerTool”).

Strange AdWords status problems

Thursday, January 14th, 2010

Okay, so I finally found a way of contacting AdWords. I had problems with two new ads. One has been under review for more than a week, another was approved, but had zero impressions.

For both cases, I got a meaningless standard text, explaining their policy.  And both times the ad suddenly worked. So, something was definitely broken and is now fixed, but Google doesn’t even bother to say so…

Awkward help from GoogleAdwords

Monday, January 11th, 2010

Google’s always amazing when it comes to finding the right pages. I wanted to contact then, so I searched the official German Adwords Help for “Kontakt”.

Places 8+9 were:

If you don’t speak German: unmöglich=impossible. You get the rest, I think…

So, the AdWords help was helpful for me, too. I gave up contacting them. Less money for Google…