Teen Programmers Unite  
 

 

Return to forum top

MS VISUAL C++ STUDIO 6.0

Posted by triplec1986 [send private reply] at February 17, 2002, 10:04:47 AM

Can someone please give me a step by step procedure on how to create a .C source file in MSVC++ 6.0? I tried it and it came out as a .CPP file and caused an error when I compiled it. This is getting really frustrating and confusing. So can someone help me with this problem. Thank You.

Posted by vladimir_l [send private reply] at February 17, 2002, 10:19:11 AM

C is different to C++.

Posted by Psion [send private reply] at February 17, 2002, 10:35:32 AM

Just name the file .c

Posted by vladimir_l [send private reply] at February 17, 2002, 10:42:03 AM

But will it compile werent some elements of C taken out of C++ . Hang on I'll check it my C++ book......

Posted by CViper [send private reply] at February 17, 2002, 12:36:17 PM

just write at the top of the file (.cpp)
extern "C" {

dont forget to add } at the end aswell...

Posted by vladimir_l [send private reply] at February 17, 2002, 12:57:08 PM

Use an editor like Notepad ... Why do you want VC++ if you are not gonna compile anyway.......

Posted by Psion [send private reply] at February 17, 2002, 02:21:58 PM

I really do know what I'm talking about. Name the file .c and VC++ will compile it as C.

Posted by gian [send private reply] at February 18, 2002, 12:23:36 AM

* me adds weight to Psion's statement by agreeing.

Almost every C/C++ compiler to date works based on file extensions.

Posted by buzgub [send private reply] at February 18, 2002, 01:24:47 AM

I'll jump in the boat with gian and Psion here. Listen to Psion; not only does he really know what he's talking about, he's modest, too!

Posted by triplec1986 [send private reply] at February 18, 2002, 04:01:53 PM

Psion helped me, After i bugged him to death (lol) Vladmir, I WAS going to compiler the code and i did. IT WORKED!!! Now, to get the file, this really cool tetris-like game goto: WWW.MMM100.COM. This is a cool site for progrmmers to upload games they want ppl to try out.

Posted by metamorphic [send private reply] at February 18, 2002, 05:03:30 PM

or it could be something else.........

Posted by triplec1986 [send private reply] at February 18, 2002, 08:37:41 PM

LOL.

Posted by JG16 [send private reply] at February 19, 2002, 09:31:55 AM

Thats not legal

-Look at
wwww.djtozz.ws

Posted by triplec1986 [send private reply] at February 19, 2002, 09:41:05 AM

So, how did u all like the cool programmer upload/download site. Was it nuderific?

Posted by metamorphic [send private reply] at February 20, 2002, 06:08:21 AM

um yes..... quite

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.