Where can I download your snapshots which include this plugin?? and will that need compiling too??
OK, I downloaded the SDK, extracted the contents into the directory
"C:\Program Files\CodeBlocks\src\sdk"
Now it compiles and creates the dll. I then have to zip the help_plugin.xrc to help_plugin.zip and place the 2 files into their correct directories. As soon as I do that, and try to restart C::B it creates an exit error dialog:
codeblocks.exe - Application error
The instruction at "0x60641252" referenced memory at "0x00000000". The memory could not be "read".
Where can I download your snapshots which include this plugin?? and will that need compiling too??
Thanks again
STEVE
If everyone agrees on using exceptions, I 'll add a special exception class for CB and use this for throwing exceptions.
I believe an exception should be enough, either in the constructor or in OnAttach().Sorry, but how does an exception looks like? (can't remember :oops:)
If everyone agrees on using exceptions, I 'll add a special exception class for CB and use this for throwing exceptions.
Sorry, but how does an exception looks like? (can't remember :oops:)
if (LoadXMLResource(bleh) == FAILED)
{
throw cbPluginError("Couldn't load resource file... please reboot your system");
}
try
{
LoadPlugin(thePlugin);
// ...
}
catch (cbPluginError &error)
{
// What to do when the error is catched
}
That's what I got (memory access violation) when the zip and plugin dll resources were not in the correct directory. The plugin should probably be more fault tolerant here when it load, the resources, or even better add failsafe code (like try catch I around the plugin loader code.
AHH, if the zipped xrc and dll files are not in the correct directories, where should they be? When I compiled them they were nowhere near where the other plugin files are, so I just moved the 2 files into the same directories as the others.
When compiled the files were in:-
help_plugin.zip in C:\Program Files\CodeBlocks\src\devel\share\CodeBlocks
help_plugin.dll in C:\Program Files\CodeBlocks\src\devel\share\CodeBlocks\plugins
help_plugin.zip moved to C:|program files\codeblocks\share\codeblocks
help_plugin.dll moved to C:|program files\codeblocks\share\codeblocks\plugins
If this can be solved by simply moving the files that would be good.
Thanks in advance
STEVE