I found a bug in PellesC related to VARIANT and VARIANTARG. Type this code and see:
VARIANT myVar;
Declaring the variable went well, but every time you try to fill the value (that is, hit the '.' button)
myVar. //hit the '.' button and you'll get the auto-generated code.