Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: laserbeak43 on August 13, 2007, 10:38:01 am

Title: interested in developing plugins
Post by: laserbeak43 on August 13, 2007, 10:38:01 am
hi i'm interested in developing plugins. are there any tutorials on doing this? good documentation?
Title: Re: interested in developing plugins
Post by: raph on August 13, 2007, 11:43:27 am
Have a look at the wiki (http://wiki.codeblocks.org/index.php?title=Developer_documentation) and get the SDK Documentation (http://developer.berlios.de/project/shownotes.php?release_id=9197).
This will help you start. If you have further questions, ask in the forum.
Title: Re: interested in developing plugins
Post by: thomas 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.
Title: Re: interested in developing plugins
Post by: laserbeak43 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!!
Title: Re: interested in developing plugins
Post by: laserbeak43 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.
Title: Re: interested in developing plugins
Post by: raph 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?
Title: Re: interested in developing plugins
Post by: JGM 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.
Title: Re: interested in developing plugins
Post by: laserbeak43 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.
Title: Re: interested in developing plugins
Post by: dje 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
Title: Re: interested in developing plugins
Post by: laserbeak43 on August 14, 2007, 10:39:38 pm
closest thing this computer is to a server is the admin account :P
Title: Re: interested in developing plugins
Post by: MortenMacFly 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.
Title: Re: interested in developing plugins
Post by: prcarp 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.