Author Topic: How to get help on syntax ?  (Read 2362 times)

Offline tonycstech

  • Single posting newcomer
  • *
  • Posts: 7
How to get help on syntax ?
« 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.
« Last Edit: February 18, 2016, 09:34:40 am by tonycstech »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: How to get help on syntax ?
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline tonycstech

  • Single posting newcomer
  • *
  • Posts: 7
Re: How to get help on syntax ?
« Reply #2 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
« Last Edit: February 18, 2016, 09:46:20 am by tonycstech »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: How to get help on syntax ?
« Reply #3 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline tonycstech

  • Single posting newcomer
  • *
  • Posts: 7
Re: How to get help on syntax ?
« Reply #4 on: February 19, 2016, 12:15:33 am »
So what is the name of the C++ own IDE that provides help ?

Offline tonycstech

  • Single posting newcomer
  • *
  • Posts: 7
Re: How to get help on syntax ?
« Reply #5 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 ?
« Last Edit: February 19, 2016, 03:14:14 am by tonycstech »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: How to get help on syntax ?
« Reply #6 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://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 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 ?
« Last Edit: February 19, 2016, 06:10:28 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org