jangc:
There is a Vision forum on Developer Exchange; you may want to post this question there also.
On my machine, my Visual C++ examples are located at C:\Program Files\National Instruments\MeasurementStudio\VC\Examples, but that will vary, depending on where you install to. It appears that there isn't a Color Pattern Matching example for VC++, from what I can tell. There is, however, one for CVI (on my machine, at C:\Program Files\National Instruments\MeasurementStudio\CVI\samples\Vision\2. Functions\Color Pattern Matching). Though there will be lots of CVI-specific things in the CVI examples, the NI-IMAQ and IMAQ Vision APIs they demonstrate are the same ones you'll be working with from VC++, so you can use them to get started.
-- Chris W