Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: tonycstech on February 18, 2016, 09:30:49 am

Title: How to get help on syntax ?
Post by: tonycstech on February 18, 2016, 09:30:49 am
Is there a way to open up a list of every available code that i can input into the editor ?
Or get help on selected code with pressing some shortcut ?
For example i want to make a window.
So i press F1 for help and look up syntax for window related category.

Or i highlight the word "while" and press F1 and help menu pops explaining what that means and shows examples etc.
Is there such thin in codeblocks ?
Do i need another IDE that comes with help on C++ ?
thanks !

Its nice to see that when typing a command such as MessageBox(, as soon as i start typing it, it shows entire statement but does not explain a single parameter.

There are IDE's for other languages that explane every single parameter as you type it in.
For example AUTOIT using Scite editor guides you every step of the way.

Here are some example images.
Title: Re: How to get help on syntax ?
Post by: oBFusCATed on February 18, 2016, 09:33:39 am
Have you tried the help plugin: http://wiki.codeblocks.org/index.php/Help_plugin ?
It is not as polished as in your requirements, but might be helpful.
Title: Re: How to get help on syntax ?
Post by: tonycstech on February 18, 2016, 09:35:19 am
its listed as activated but i dont know how it works.
The WIKI pages says i can add help file, but where is this file ?
I was only able to find C:\Program Files (x86)\CodeBlocks\share\CodeBlocks\docs\codeblocks.chm
Title: Re: How to get help on syntax ?
Post by: oBFusCATed on February 18, 2016, 08:18:36 pm
C::B is an IDE which can be used with many compilers, libraries and frameworks.
Thus we don't ship any help files. You have to provide them yourself.
Title: Re: How to get help on syntax ?
Post by: tonycstech on February 19, 2016, 12:15:33 am
So what is the name of the C++ own IDE that provides help ?
Title: Re: How to get help on syntax ?
Post by: tonycstech on February 19, 2016, 03:11:51 am
Another interesting question.
How come copy code from Visual Studio 2015 does not work with code blocks ?

Error regarding missing #include "stdafx.h"
After removing it i get an error about HINSTANCE hInst;  saying P:\C++ Projects\Examples\test\main.cpp|10|error: 'HINSTANCE' does not name a type|

Does that mean that codeblocks does not have every C++ library/file etc or what ?
Title: Re: How to get help on syntax ?
Post by: stahta01 on February 19, 2016, 05:31:02 am
Please read the FAQs and the Rules!
http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)
http://wiki.codeblocks.org/index.php/FAQ (http://wiki.codeblocks.org/index.php/FAQ)

You need to read ALL of the General FAQs.
And, you NEED to learn what a Compiler is; and, how it differs from an IDE/Text Editor like Code::Blocks.

I suggest going to http://cboard.cprogramming.com/forum.php (http://cboard.cprogramming.com/forum.php) to ask your questions about programming.

The header "stdafx.h" is an header used in Visual Studio (MSVC) to include many other headers.

Tim S.

Another interesting question.
How come copy code from Visual Studio 2015 does not work with code blocks ?

Error regarding missing #include "stdafx.h"
After removing it i get an error about HINSTANCE hInst;  saying P:\C++ Projects\Examples\test\main.cpp|10|error: 'HINSTANCE' does not name a type|

Does that mean that codeblocks does not have every C++ library/file etc or what ?