Page 1 of 1

Sample Plugin code

Posted: Tue May 23, 2006 3:39 pm
by scanner2001
I am looking at developing a new plugin. Could someone post an example plugin code in c++, it can be simple, so that I could review it? I would like something beyond the stubbed out wizard.

Thanks,
Jeff

Posted: Tue May 23, 2006 6:30 pm
by skibbs
I agree, that would be really helpful :)

Posted: Wed May 24, 2006 2:45 am
by CandiceJones
Great news! This source just came in for the Eval plug-in. Thank you Christian Zangl for making this source code available!

File Attached:

Eval.zip

Posted: Wed May 24, 2006 10:35 am
by zchris
Thanks Candice for saving me the work of posting it myself!

I should note that this is not exactly 'clean' code - but I hope it helps! :)

Posted: Mon May 29, 2006 6:50 am
by scanner2001
Thankyou, this should be a great help.

Jeff

Posted: Mon May 29, 2006 7:19 am
by scanner2001
Thankyou, this should be a great help.

Jeff

Re: Sample Plugin code

Posted: Tue Jul 10, 2012 6:33 pm
by tofutim
Thank you from 6 years in the future.

Re: Sample Plugin code

Posted: Wed Jul 11, 2012 9:41 am
by FrancescoT
Dear tofutim,

Probably you missed that InstallAware actually comes with Plug-in sample projects available for MS VC++ or Delphi.

Click the InstallAware button, then choose New Project Other.
On the Plug-Ins tab, pick a plug-in template.

Regards

Re: Sample Plugin code

Posted: Wed Jul 11, 2012 10:43 am
by tofutim
I did miss that. I only found empty templates for VC++ and Delphi that are non-working (no dialog or text). Where are the samples?

Re: Sample Plugin code

Posted: Wed Jul 11, 2012 11:03 am
by FrancescoT
Dear tofutim,

those are Plugins projects templates examples and contains all the required code to have a plugin working!!

It is supposed that a C++ or Delphi developer already knows how to display a dialog using Win API.

Regards

Re: Sample Plugin code

Posted: Wed Jul 11, 2012 11:52 am
by tofutim
For the future, it would be nice to include '__declspec(dllexport) int WINAPI DesignTimeText(const char* State, char* Text)' in the template example, as well as returning and filling State/Text. It turned out that I forgot to update 'mIDEPlug.def' with DesignTimeText, so it wasn't working. All good now!

Re: Sample Plugin code

Posted: Thu Jul 12, 2012 9:17 am
by FrancescoT
That's true ... is missed the function prototype declaration.

Regards.