Some (many) years ago I was talking to this guy who was proudly telling me he had upgraded his Pascal program to use the OO features of Delphi. Great, tell me what features you are using I ask (expecting classes and inheritance at least) Answer: Oh the Delphi style // comments - Yeah - I had to bite my tongue! Not being a C++ guy I can not tell you when the // style comment came in for C based languages :-) Happy New Year Everyone!
On Mon, Jan 5, 2015 at 7:05 PM, DotNet Dude <[email protected]> wrote: > Try adding some C++ features and see what happens when you try to compile. > > > On Mon, Jan 5, 2015 at 5:31 PM, DotNet Dude <[email protected]> wrote: > >> I think /TC tells VS it's C only? /TP is for C++. >> >> >> On Mon, Jan 5, 2015 at 11:44 AM, Greg Keogh <[email protected]> wrote: >> >>> I found the easiest way of making a plain C project (I hope) is to >>> create a new C++ Empty Project, add a .c file then after some searching I >>> found: >>> >>> Configuration Properties > C/C++ > Advanced > Compile As >>> >>> Which sets the /TP or /TC compile option. I'm still suspicious that this >>> hasn't disabled all the C++ features though. >>> >>> *Greg K* >>> >>> On 5 January 2015 at 10:47, Greg Keogh <[email protected]> wrote: >>> >>>> Folks, I might have to migrate some Embarcadero/Borland C (not C++) >>>> code over to Visual Studio, but I haven't written any C/C++ for about 10 >>>> years now (thankfully). The C code mostly manipulates flat files and >>>> performs heavy stats calculations, so there are no serious platform >>>> dependencies to make conversion difficult. >>>> >>>> The trouble is, I've forgotten how to make a VS2013 C (not C++) >>>> project, if such a thing is meaningful. I'm not even sure if the C language >>>> exists any more!! Do I have to flip some compiler options, or will the '.c' >>>> file suffix be recognised and prevent me from using any C++ headers or >>>> features? >>>> >>>> It's a weird question, but C/C++ and projects and tools have changed so >>>> much in the last decade that I'm disoriented. >>>> >>>> *Greg K* >>>> >>> >>> >> >
