Author Topic: interested in developing plugins  (Read 8646 times)

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
interested in developing plugins
« on: August 13, 2007, 10:38:01 am »
hi i'm interested in developing plugins. are there any tutorials on doing this? good documentation?

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: interested in developing plugins
« Reply #1 on: August 13, 2007, 11:43:27 am »
Have a look at the wiki and get the SDK Documentation.
This will help you start. If you have further questions, ask in the forum.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: interested in developing plugins
« Reply #2 on: August 13, 2007, 02:33:27 pm »
It's almost too easy to require documentation :)

First, you will need the SDK headers and libraries and everything, the easiest way to get that is to check out the Code::Blocks sources and compile them. Then set your #cb variable to where the sources are.

Next, there is a wizard. Use it, fill in a few things like your plugin's name.

That's almost everything already! Now just add/override some virtual functions, and add any code that you would like to run. Any object/function inside Code::Blocks is accessible, as plugins run in the same address space.

Finally, add a nice image/icon, and such, and pack it into a .zip file. Adjust the manifest file so the file names match, if need be.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: interested in developing plugins
« Reply #3 on: August 13, 2007, 03:20:12 pm »
OH!!
even  though a lot of that would be a first for me, that sounds terribly easy. i'll have to give that a try!!

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: interested in developing plugins
« Reply #4 on: August 13, 2007, 11:26:52 pm »
both sdk chm files don't work. "This program cannot display the webpage"
i'll download the sources when i get back later.

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: interested in developing plugins
« Reply #5 on: August 14, 2007, 04:06:20 pm »
both sdk chm files don't work. "This program cannot display the webpage"
Both do work here (WinXP Sp2). Which os are you using?

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: interested in developing plugins
« Reply #6 on: August 14, 2007, 04:13:37 pm »
On ubuntu I use the kchmviewer qt version for gnome, works really good with windows chm files.

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: interested in developing plugins
« Reply #7 on: August 14, 2007, 07:01:43 pm »
both sdk chm files don't work. "This program cannot display the webpage"
Both do work here (WinXP Sp2). Which os are you using?
xp sp2 myself.

gonna runs some system mantenance then try again.
On ubuntu I use the kchmviewer qt version for gnome, works really good with windows chm files.

hmm cool i'll try that since i run gnome apps in xfce. i use xubuntu with the ubuntu studio kernel.

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: interested in developing plugins
« Reply #8 on: August 14, 2007, 10:28:04 pm »
Hi !

both sdk chm files don't work. "This program cannot display the webpage"
Both do work here (WinXP Sp2). Which os are you using?
xp sp2 myself.

A few years ago, there was a security failure when chm were accessed on server. I had this problem.
If it is your case, you just have to copy the chm on your PC and it works (only a server problem).
Maybe it comes from that...

Dje

Offline laserbeak43

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: interested in developing plugins
« Reply #9 on: August 14, 2007, 10:39:38 pm »
closest thing this computer is to a server is the admin account :P

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: interested in developing plugins
« Reply #10 on: August 14, 2007, 11:41:52 pm »
both sdk chm files don't work. "This program cannot display the webpage"
Do you have special characters in the path to the CHM like "#"? If so, remove them or move the CHM into a regular (ANSI) path. In addition: If it is on a network share you might need to adjust the the rights to view the CHM. Windows restricts access to such content on network shares. Google for it...
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline prcarp

  • Single posting newcomer
  • *
  • Posts: 4
Re: interested in developing plugins
« Reply #11 on: August 15, 2007, 02:47:20 pm »
Ditto what DJE said.  I create CHM files quite often for the software I write.  When I send them to people, I request they copy them to their own hard drive (e.g. C:) and not some share drive or network drive.  When they click on the file that is on their C: drive, everything works fine but clicking it on a share drive or network drive brings up the error "Cannot display webpage" just like you saw.