Copying a project file to a known location

Within a Visual Studio C++ solution, you can copy a file to a known location as part of the build process. To do that, you have so set the “Custom Build Step” parameters found in the Visual Studio project’s property page: Command line: copy “$(InputPath)” “$(TargetDir)” > nul Description: Copying $(InputFileName) Outputs: $(TargetDir)$(InputFileName) Note, the … Read more

VMR9

Right now I’m dealing with some code of mine that isn’t working on a Microsoft product. I got a webcam, a Microsoft Life Cam VX1000, that doesn’t want to work with DirectX. It’s weird. A Microsoft product that doesn’t want to work with a Microsoft SDK. I see on the web though that there are … Read more

What’s wrong with this code?

I love reading code like this: int IAmGoingToReturnAnInt ( int* gimmeSomeData ) { int munchMunch = *gimmeSomeData; ++munchMunch; // Developer note: FU } Okay, the last developer note doesn’t really exist, but you would think that this function would return an integer. I mean, come on! Give me something!

Surprise!

I actually implemented a large if, else if statement on the Mac with no problems. Go to compile that same code in Visual C++ 2008 and…. BANG! VC doesn’t play that! Apparently, there is a limit as to how many control statements you can have. Go figure 🙁