Weekend Observations While Coding

by Codewiz51 September 21, 2008 06:54

When you are porting C code to C++, enums can be a pill. C treats enums as integers, C++ treats them as a separate class or type. C doesn't mind if you try to increment an enum with the ++ operator, C++ won't compile the code.

Writing /clr:safe code in C++ is a bit trickier than I thought. I didn't realize that declaring an array as double w0[25] would cause the linker to drag in the CRT. Accessing a 2-D array using code like w2d[2][6] is not legal. C++ CLI code should be written as w2d[2,6]. (I use /clr a lot, but this is my first foray into /clr:safe.)

Even though my summer cold is getting better, massive head and bronchial congestion is detrimental to concentration.

Vick's cough drops are truly a miraculous medicine.

I cannot code when Alabama is playing on TV. I shouldn't even bother bringing my laptop into the room. (I might break it when I jump up and down hollering.)

Always search any C++ source code you are using for the keyword static. The code probably isn't thread safe. This can cause grown men to wail, rend their garments and sprinkle ashes on their head while debugging.

Earl's Bar-B-Que is just the best when you don't feel like grilling and there's a football game on TV.

I was pulling for Auburn to beat LSU last night. It didn't help.

Comments are closed

Powered by BlogEngine.NET 1.6.0.0
Theme by Mads Kristensen | Modified by Mooglegiant

Disclaimer

This blog represents my personal hobby, observations and views. It does not represent the views of my employer, clients, especially my wife, children, in-laws, clergy, the dog, the cats or my daughter's horse. In fact, I am not even sure it represents my views when I take the time to reread postings.

© Copyright 2008-2011