Author Topic: Some rules on how to use sdk.h in a plugin  (Read 4388 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6782
    • My Best Post
Some rules on how to use sdk.h in a plugin
« on: July 11, 2007, 06:26:52 pm »
FYI:

I am trying to figure out the rules on including sdk.h in a plugin.

Here is my guess at the rules; note, I am not a great c++ programmer and hope to have feedback on my guesses; enough to confirm them before I put the rules on the wiki.

1. use " #include <sdk.h> " not " #include "sdk.h" " in a plugin.
2. It is recommended not to use "#include <sdk.h>" in a header file.
3. Because "#include <sdk.h>" includes the "<wx/wxprec.h>" it is not necessary to include both "<wx/wxprec.h>" and "<sdk.h>"

Tim S
« Last Edit: July 11, 2007, 07:03:50 pm 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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5215
Re: Some rules on how to use sdk.h in a plugin
« Reply #1 on: July 11, 2007, 08:36:22 pm »
I will pm you some answers ;-)

Offline Greatwolf

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: Some rules on how to use sdk.h in a plugin
« Reply #2 on: September 13, 2010, 07:09:44 am »
where do you get the sdk.h and other header files for C::B sdk? Is it generated as part of the C:B build process when you compile the trunk?

This should really be indicated somewhere, like on stickie forum or wiki etc, so new plugin developers know how to get started and where to look.

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Re: Some rules on how to use sdk.h in a plugin
« Reply #3 on: September 13, 2010, 06:11:01 pm »
I will pm you some answers ;-)

Should they not be made public so that all can see (i.e. in the wiki as Tim mentioned)?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6782
    • My Best Post
Re: Some rules on how to use sdk.h in a plugin
« Reply #4 on: September 13, 2010, 06:25:58 pm »
Please DO NOT Hijack Threads!!!!

Please READ the directions TO BUILD from source Code::Blocks for your OS!!
You should then know where "sdk.h" is located.

Directions for MS Windows users
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows

Tim S.
« Last Edit: September 13, 2010, 08:22:01 pm 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