Archive: Simple ReadRegStr compile error help


Simple ReadRegStr compile error help
I have a simple registry key lookup that the compiler doesn't like but I can't figure out why. It may be staring me in the face but I can't see it. Suggestions anyone?

ReadRegStr $ProductDir HKLM "Software\Microsoft\VisualStudio\8.0\Setup\VC" "ProductDir"


RE:Simple ReadRegStr compile error help
Doh! I realized I had not specified a 'Var ProductDir'!