Tuesday, December 20, 2011

XPower++ VCL-Plugins

Did you know that you can create VCL-Plugins and use them in XPower++, actually you can create plugins in any language that supports window handles and int64 (Large Integer).

Here you can find a sample project No 045 -> http://xhelp.gridplusplus.com/samples.html that demonstrates how to create a VCL-Plugin and how you can load and use it in XPower++.

I myself have a Delphi background, I used it since Delphi 2 and I really enjoyed working with it for years, I also love the Pascal language, it is simple and very clear to read, but I never gave up on C++ which is really my favorite language.

So just for fun I wanted to see if I would be able to use QtWebkit with XPower++ and was very amazed when I was able to use with minimum effort. Have a look at the construct of the VCL sample, the important part is that you create the component with the ParentWindow Handle as the XPower++ Form Handle which you need to pass to the DLL, and the rest is up to your needs, like setbounds to adjust the size, or any functionality that you need to trigger and get a result of.

Upside: You can reuse old code (forms and parts of your apps) and/or extend XPower++ Library
Downside: You have to deploy DLL's

So if you go ICKY and make a vampire cross with your fingers with DLL's, this is not for you :)

more info about XPower++ is here -> http://xpowerplusplus.com

No comments:

Post a Comment