Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Code Alignment Tool

<< < (2/5) > >>

DarrenClark:
Hi.

I don't usually code C++ on Windows but I've knocked a build of this plugin up.  It's compiled in CB 8.02 stable and is linked against WX 2.8.10.  It's all in the attached 7z file.

I've been getting some problems with the version of the SDK I'm linking to.  As I understand there's not a stable version to go by I've put the source code in the 7z file as well; that way you can compile against SVN if you so desire. :)

All the best.



[attachment deleted by admin]

ollydbg:

--- Quote from: DarrenClark on October 04, 2009, 10:17:18 pm ---Hi.

I don't usually code C++ on Windows but I've knocked a build of this plugin up.  It's compiled in CB 8.02 stable and is linked against WX 2.8.10.  It's all in the attached 7z file.

I've been getting some problems with the version of the SDK I'm linking to.  As I understand there's not a stable version to go by I've put the source code in the 7z file as well; that way you can compile against SVN if you so desire. :)

All the best.



--- End quote ---
Thanks for sharing!!!
I can build against the Trunk code, and it works ok under Windows! :D

danselmi:
Thank you for your work. I was able to build on Windows... but it crashes on c::b exit (I assume it also crashes during uninstall of the plugin).

The reason is that you store the pointer to your submenu in m_menu_root and delete it in the dtor.
You must not delet it yourself because it gets deleted when the whole popupmenu gets deleted (I am not 100% sure about this).

MortenMacFly:

--- Quote from: danselmi on October 07, 2009, 06:37:23 pm ---You must not delet it yourself because it gets deleted when the whole popupmenu gets deleted (I am not 100% sure about this).

--- End quote ---
That's right. Basically you can remove the whole code in the dtor. I was able to build it under Windows, too hence I did not find the time yet to try. First thing I've noticed: Where exactly is the button/function I am supposed to be offered? I found out after fixing the bug... ;-)

BTW:  This should actually crash on Linux, too...?!

DarrenClark:
Hmm, oddly enough it didn't, guess I shouldn't be such a neat boy...

Thanks for that one Morten, the destructor is now like my head, all empty :D  I've uploaded the changes in a 7z file.

The tool is accessed through the context popup in the editor, I've attached a wee screeny to this post.

All the best.

[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version