News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

interested in developing plugins

Started by laserbeak43, August 13, 2007, 10:38:01 AM

Previous topic - Next topic

laserbeak43

hi i'm interested in developing plugins. are there any tutorials on doing this? good documentation?

raph

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.

thomas

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."

laserbeak43

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!!

laserbeak43

both sdk chm files don't work. "This program cannot display the webpage"
i'll download the sources when i get back later.

raph

Quote from: laserbeak43 on August 13, 2007, 11:26:52 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?

JGM

On ubuntu I use the kchmviewer qt version for gnome, works really good with windows chm files.

laserbeak43

Quote from: raph on August 14, 2007, 04:06:20 PM
Quote from: laserbeak43 on August 13, 2007, 11:26:52 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.
Quote from: 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.

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

dje

Hi !

Quote from: laserbeak43 on August 14, 2007, 07:01:43 PM
Quote from: raph on August 14, 2007, 04:06:20 PM
Quote from: laserbeak43 on August 13, 2007, 11:26:52 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.

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

laserbeak43

closest thing this computer is to a server is the admin account :P

MortenMacFly

Quote from: laserbeak43 on August 13, 2007, 11:26: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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

prcarp

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.