Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProcess Handle and MainWindow Pin
Arnaud Brejeon12-Jun-03 15:34
Arnaud Brejeon12-Jun-03 15:34 
GeneralRe: Process Handle and MainWindow Pin
valikac12-Jun-03 19:32
valikac12-Jun-03 19:32 
GeneralMpeg 4 player Pin
weituck12-Jun-03 14:58
weituck12-Jun-03 14:58 
GeneralRe: Mpeg 4 player Pin
John M. Drescher12-Jun-03 16:39
John M. Drescher12-Jun-03 16:39 
GeneralRe: Mpeg 4 player Pin
Churn Wuang12-Jun-03 23:37
Churn Wuang12-Jun-03 23:37 
QuestionHow to obtain column number in a file Pin
Saqib Razzaq12-Jun-03 14:15
Saqib Razzaq12-Jun-03 14:15 
AnswerRe: How to obtain column number in a file Pin
Rage12-Jun-03 21:19
professionalRage12-Jun-03 21:19 
GeneralA spell checker for C programs Pin
Jacob Navia12-Jun-03 11:03
Jacob Navia12-Jun-03 11:03 
Got used that Microsoft Word underlines the errors in red?
Nice isn't it?
Well, when editing my C programs, the editor didn't do that. What a bore.

So, I decided to add that feature to the editor. It is very simple:

After some period of time has elapsed since the last key was pressed, save the text in a temporary file, and call the compiler to compile that file. Save the output of the compiler and parse it.

Do messages like "undefined symbol "xxx" appear?

If yes, store the line and position of the offending symbol, and when that line is displayed in the editor, underline the symbol with red.

Want to see it in action?

Download the editor with the associated compiler (no charge, no registration, no questionnaire to fill, no popups) from:

http://www.cs.virginia.edu:/~lcc-win32

It is a nice feature, that doesn't hide the fact that it is not Visual Studio of course. Maybe because of its small size this algorithm is at all doable. The compiler is small and very fast. So fast that can be used as a background compiler, running most of the time behind you when you type.

Is C outmoded?

Yes, of course. C will be always outmoded because it is not fashionable. As languages come and go away, C remains. If you write in C there is a bigger chance that your code will run in the unknown machines of the future.

You probably know C. It has be cloned a thousand times, in all tones, even in the C Sharp scale.

The whole download is 3.5 MB. And there is packed a system with all the headers and import libs to use the full Win32 API. The editor, including the debugger, the project generation facility, a versioning system, a software metrics module, an object code analyzer, etc, is 700K.

Yes. 700K.

Including a spell checker for C.

I noticed that the latest versions of Visual Studio show the current function at the top right corner of the window. Lcc-win32 has been offering this since 1999 but it shows it at the bottom right corner.

But this is publicity, and is therefore biased. Look for yourself, and tell me if you like it.

jacob



GeneralRe: A spell checker for C programs Pin
Ryan Binns12-Jun-03 14:35
Ryan Binns12-Jun-03 14:35 
GeneralRe: A spell checker for C programs Pin
John M. Drescher13-Jun-03 1:09
John M. Drescher13-Jun-03 1:09 
GeneralRe: A spell checker for C programs Pin
Jacob Navia13-Jun-03 4:32
Jacob Navia13-Jun-03 4:32 
GeneralC Compiler Pin
Gary Kirkham12-Jun-03 10:56
Gary Kirkham12-Jun-03 10:56 
GeneralRe: C Compiler Pin
Jacob Navia12-Jun-03 11:11
Jacob Navia12-Jun-03 11:11 
GeneralRe: C Compiler Pin
Gary Kirkham12-Jun-03 11:14
Gary Kirkham12-Jun-03 11:14 
GeneralClickety police ! Pin
Trollslayer13-Jun-03 1:40
mentorTrollslayer13-Jun-03 1:40 
GeneralRe: C Compiler Pin
Gary Kirkham13-Jun-03 4:09
Gary Kirkham13-Jun-03 4:09 
GeneralRe: C Compiler Pin
basementman12-Jun-03 11:15
basementman12-Jun-03 11:15 
GeneralRe: C Compiler Pin
Gary Kirkham12-Jun-03 11:22
Gary Kirkham12-Jun-03 11:22 
GeneralRe: C Compiler Pin
Neville Franks12-Jun-03 11:58
Neville Franks12-Jun-03 11:58 
GeneralRe: C Compiler Pin
Gary Kirkham12-Jun-03 14:10
Gary Kirkham12-Jun-03 14:10 
GeneralRe: C Compiler Pin
Neville Franks13-Jun-03 1:36
Neville Franks13-Jun-03 1:36 
Questionwriting a datbase management system in C++? Pin
GabyGirl12-Jun-03 9:47
GabyGirl12-Jun-03 9:47 
AnswerRe: writing a datbase management system in C++? Pin
jhaga12-Jun-03 10:00
professionaljhaga12-Jun-03 10:00 
AnswerRe: writing a datbase management system in C++? Pin
crewchill12-Jun-03 12:47
crewchill12-Jun-03 12:47 
QuestionHow many bits are these?? Pin
johnstonsk12-Jun-03 8:54
johnstonsk12-Jun-03 8:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.