![]() |
B4PEngine - Script Engine Library for .Net FrameworkEasily add a powerful script engine to your .Net application!B4PEngine enables you to integrate Basic4ppc engine in your .Net Framework application. Basic4ppc is a programming language similar to Microsoft Visual Basic. B4PEngine supports all of Basic4ppc keywords. Based on Basic4ppc support of external libraries B4PEngine can also easily interact with your classes for a complete integration in your application. B4PEngine is free for non-commercial use. B4PEngine can be used with any .Net language, such as C# and VB.Net. Unlike Basic4ppc, B4PEngine is not supported by .Net Compact Framework. See this page for more information about Basic4ppc language. You can also download the desktop IDE which is fully functional and can help you understand the basics of Basic4ppc. DownloadDownload B4PEngine v1.0Download demo application License / PurchasePlease read the license file included in the downloaded zip file (EULA.txt).B4PEngine is free for non-commercial use. If you are a non-commercial entity and you are not charging for your product, and the product has no other commercial purpose, then you can use B4PEngine for free. Otherwise, you are required to purchase a license. There are no royalties to pay and you can use future updates without further cost. Reselling/sub-licensing is not permitted. Your products must be end-user products, eg. not components used by other products. Please note that these licences only cover your own software, not the publishing of other's software. One license is required for each person working on the product. Purchase B4PEngine - 199$ (USD) Simple example of B4PEngine (C#)using System; using System.Windows.Forms; using B4P; namespace B4PEngineTest { public partial class Form1 : Form { B4PEngine b4p = new B4PEngine(); public Form1() { InitializeComponent(); b4p.AddObject(typeof(Demo), "demo"); //adds an object of type 'Demo' named 'demo'. //however the constructor will be called from Basic4ppc code. //Therefore we use a static property to assign Form1 (the application context in this case). Demo.Form1 = this; } private void button1_Click(object sender, EventArgs e) { listBox1.Items.Clear(); try { b4p.RunProgram(@" Sub App_Start demo.New1 'Initialize the object. " + textBox1.Text + @" End Sub"); } catch (Exception ee) { MessageBox.Show(ee.ToString()); } } } public class Demo { private static Form1 form1; public void SetTitle(string title) { form1.Text = title; } public void SetColor(System.Drawing.Color color) { form1.BackColor = color; } public void AddItem(string item) { form1.listBox1.Items.Add(item); } public static Form1 Form1 { set { form1 = value; } } } }Screenshot: ![]() B4PEngine APIvoid AddObject(Type type, string name) - Adds an objects of type 'type' to the engine. Similar to adding an object in Basic4ppc IDE.The object will be initialized in B4PEngine code by calling one of the constructors. The first constructor is named New1. void RunProgram(String program) - Compiles and runs the source code. The parameter 'program' holds the source code. ShowDialogOnError property - Gets or sets whether B4PEngine will show a dialog for runtime errors. This property is true by default. If this property is set to false then the exception will not be caught by B4PEngine. Support/Contact UsSupport forum: B4PEngine support forumSupport email: support@basic4ppc.com |
|
|
|