Groups | Blog | Home
all groups > visual studio .net ide > february 2004 >

visual studio .net ide : Is Pure C possible in VS.NET?


Julie J.
2/19/2004 9:27:34 AM
[quoted text, click to view]

Yes, sort of. A cosole app is probably what you are after.

[quoted text, click to view]

Look for build. (Ctrl+shift+B)

fix
2/19/2004 10:30:33 AM
Hi all,
Is it possible for me to write programs in Pure C, without any do Windows
things?
If yes, how can I compile it? I can't find a compile button or menu item.
Thanks!
fix.

fix
2/19/2004 1:03:12 PM


--

"Vincent Finn" <1@2.com>
???????:77t930hmd11m1mk90rd7ibq6h0gtpemn27@4ax.com...
[quoted text, click to view]

Yes, I am working on the assignments of my Computer Science class.

[quoted text, click to view]

Um..... I think I got you, I added a testc.c to the project, write a few
lines and compile, but I can't compile it.

e:\Projects\testc\testc.c(8) : fatal error C1010: unexpected end of file
while looking for precompiled header directive

#include <stdio.h>

int main(void)
{
printf("1233\n");
return 0;
}

Developer
2/19/2004 2:58:19 PM
I think you have to go to right-click on the project in the "Solution
Explorer", go to Configuration Properties, C/C++, Precompiled Headers, and
turn "Create/Use Precompiled Header" off.

BS.Net is not a very friendly place for simple C-language applications.

[quoted text, click to view]

fix
2/19/2004 5:37:06 PM
Cool! I got it.
But why do you think it is not a friendly place?
I can't get my VC++ 6 running.....

--

"Developer" <wanderer@mapinfo.nope.com> ¼¶¼g©ó¶l¥ó·s»D
:OOTH0Ky9DHA.2308@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]

Vincent Finn
2/19/2004 5:42:13 PM
[quoted text, click to view]

Do you mean a console app?
This will have no windows!
If you do there is an option to create one when you are creating your
project
Under "Visual C++ Projects" you want a "Win32 Console Project"

Alternatively if you mean C compiler and not C++ then make the file .c

Steve McLellan
2/20/2004 11:06:45 AM
VS isn't really necessary for simple applications, and you often spend a lot
of time figuring out weird environment problems rather than getting work
done. If you're doing very simple apps, you might want to consider editing
the source files in a simple text editor and using one of the free C
compilers from the command line (Borland probably still have a free compiler
and there're loads others). On the other hand, it's always good to learn new
stuff, and when you get onto bigger projects you'll know your way around the
IDE.

Steve


[quoted text, click to view]

Mark Henry
2/20/2004 3:54:56 PM
If you go to the project configuration (right click on the project and
choose Properties), under "C/C++", then under "Advanced", there's an
option "Compile As". You can choose "Compile as C Code" to enforce
strict C standards.
Keep in mind that many CS classes talk about "pure C" when they're in
fact talking about non-OO C++. Even when only writing a purely
function-based program (no classes), there are very specific differences
between C and C++.
If you like to use things like cout and cin or if you like to declare
variables anyplace in the code (such as "for( int i = 0; ... )" ), then
you won't want to use the "Compile as C Code" option.

-Mark-


[quoted text, click to view]
fix
2/20/2004 4:09:07 PM
"Mark Henry" <mhenry@rrinc.com>
???????:OWICNP$9DHA.3068@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Thanks for giving me this piece of information.

[quoted text, click to view]

Well I think my prof is talking about real C, not non-OO C++, and I should
try to write C.

[quoted text, click to view]

fix
2/20/2004 4:12:19 PM
Well I am a VB programmer and I am quite familiar with VS environment.
I can't imagine living with an IDE, I don't want to TAB every new line.
That why I am sticking with VS.NET.

--

"Steve McLellan" <sjm@fixerlabs.com.NOSPAM> ¼¶¼g©ó¶l¥ó·s»D
:eVWyfG69DHA.2308@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]

Steve McLellan
2/27/2004 6:00:03 PM
There are plenty of editors out there without VS's complexity. EditPlus is
one I've used for Perl for ages, and it lets you set up keyboard shortcuts
to run compilers etc, and has auto indenting and keyword highlighting. VS is
good, but for very simple programs it's kind of like using an 18-wheeler to
transport a suitcase. Always just a matter of opinion though.

Steve

[quoted text, click to view]

AddThis Social Bookmark Button