Thursday, October 28, 2010

Nokia Carbide Errors x 650

I am shockingly new to Nokia development. Like, as in I started learning on Tuesday and today is Thursday new. My only experience with mobile development before was on Windows Mobile 6 and CE, which thanks to the brilliance that is .NET, was a piece of cake.

Nokia C++ (for Symbian S60, 3rd Edition, Feature Pack 2) is not. For starters, there's no strings. Just descriptors pointing to lots of things. And only once you get your head around this will any programming make sense. This website: http://descriptors.blogspot.com/ made everything make sense. Consider it the "Nokia C++ programming bible" if you will. At least the gospels according to descriptors.

Anyway, there I was programming some examples, when I got errors. A lot of them. 636 to be exact:

Errors such as:
declaration syntax error
(included from:
C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\e32cmn.h:8
C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\e32std.h:13
C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\e32base.h:8
I spent hours and hours pulling my hair out fretting over these hundreds of errors! Why could these examples not compile! I DIDN'T CHANGE ANYTHING.

And then I solved it. It was embarassing. Are you ready?

I named my files with an extension .C. Not the .CPP which is the norm for C++. Once I changed to .CPP everything work fine.

This children, is why you must have cafienne before programming.

Thursday, October 14, 2010

Sync Toy = crap

I've recently got Windows 7. I went to sync all my pictures onto my backup harddrive, but found that briefcases are gone! As old and impractical as they were, they were perfect for just backing up pictures. They did all the hard work for me, albeit somewhat slow.

So I had a google, and found Windows had a new thing called Sync Toy. I loaded it up, started the sync and was told it was going to take a few hours. I left it going, but at some point I lost power and the sync didn't finish. Thinking it was like the briefcase, I went back later and just started it again. I figured it would just finish off.

But alas, no. It thought that since half the files weren't in the folder, that they'd been deleted. So Sync Toy went and deleted the original files that were never backed up!

I was lucky enough to have another backup on my recently abandoned computer, so I hardly lost anything. But I'm never using it again. From now on, purely going to Ctrl+c, Ctrl+v