Set C as default in VS2008?
-
Is it possible to set C as the default to convert and compile in rather than c++? If that is not possible, how do I set a specific project to C rather than C++? (Trying to get a vb6 converted to native c rather than c++ without total rewrite.) Thank You, Don
-
Is it possible to set C as the default to convert and compile in rather than c++? If that is not possible, how do I set a specific project to C rather than C++? (Trying to get a vb6 converted to native c rather than c++ without total rewrite.) Thank You, Don
Why don't you give the
c
(instead ofcpp
) extension to your files? :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Is it possible to set C as the default to convert and compile in rather than c++? If that is not possible, how do I set a specific project to C rather than C++? (Trying to get a vb6 converted to native c rather than c++ without total rewrite.) Thank You, Don
The compiler driver works out what type of source file it's got based on the extension you give it. Call it .cpp and it'll use the C++ compiler, .c and it'll use the C compiler. You can overide this on a per source file basis by using /TC (compile as C) and /TP (compile as C++). It's an advanced option in the properties of the project. Cheers, Ash