logo WinWrap®

Integrate WinWrap® Basic into Host Applications

WinWrap® Basic is an embedded macro language component available for .NET and COM 32/64 bit Windows applications. The WinWrap® Basic Component is an alternative to Visual Basic for Applications VBA, ActiveX (e.g. VBScript, JScript, PerlScript, Rexx-based WSH engines and others), and VSTA for this purpose. The WinWrap® Basic Component is compatible with VBA, Sax Basic, VB.NET and Visual Basic 6.0 style scripts.

Scripting covers many different aspects of user interaction with your application. User's benefit from secure natural language extensions integrated into your host application. Polar Engineering and Consulting has collected together a set of "best practices" to deal with these different aspects.



Scriptable Application

Secure User Scripting

Plugins with Implements

Virtual Files for Scripts

IDE in a WinForms Tab Control

IDE in a WPF Tab Control

Scripting in an Azure Website

User Scripting
Execution and Design

Examples Source Code on GitHub

See WinWrap Examples at GitHub https://github.com/WinWrap/WinWrapExamples (C#) and https://github.com/WinWrap/WinWrapExamples-VB.NET. You can also download the WinWrap Examples zipfile (C#) or WinWrap Examples zipfile (VB.NET). Download Evaluate WinWrap (Example 3 WPF, Example 6 AZW, other examples .NET) and install. To run the examples in Visual Studio, open WinWrapExamples.sln and set "Startup Project" to "Current Selection" in the solution properties page.

Scriptable Application

Scriptable Application

  • Allow users to script your application model's object and events
  • Restrict scripting access to a subset classes, methods, properties and events
  • Promote scriptable class members into the scripting language

WinWrap® Basic provides a comprehensive solution to adding scripting to your application. You or your customer can write script code that responds to events fired from objects provided by the application. Scripts are validated for syntactic correctness and all the application has to do is fire the event. more...

Secure Scripting

Secure User Scripting

  • Safe end-user scripting
  • Block unsafe script instructions by setting Sandboxed property
  • Allow script access to safe .NET functionality
  • Permit language extensions marked as Scriptable
  • Protect server applications from unsafe scripts

Restrict script access to the safe subset of the .NET framework. Safe scripting in a .NET application provides powerful .NET script access without compromising functionality. Windows desktop and server applications can be safely scripted by end-users. Allow end-user's to safely script server applications. Provide script access to assemblies. more...

Implements

Plugins with Implements

  • Call interface methods using normal .NET syntax
  • Implement interface methods with script code
  • Enforce script interface during parsing
  • Automatic interface prototypes generated by the IDE

Write script code that executes when method calls are made by the application. Scripts are validated for syntactic correctness and all the application has to do is call an interface method. Calling script code with an interface and Implements is an alternative to calling script code through events. more...

Virtual File System

Virtual Files for Scripts

  • Use a database as the script storage system
  • Protect real files when using Sandboxed mode
  • Virtualize script names by context
  • Only used for script names that don't begin with '*'

Applications can redefine how the scripts are stored. The VirtualFileSystem is a wrapper for file actions. This allows the "name" of script to be uncoupled from the "name" of the file. more...

WinForms IDE

IDE in a WinForms Tab Control

  • Use the IDE in a WinForms Tab Control
  • Execute scripts
  • Edit scripts
  • Debug scripts

Use the IDE in a WinForms Tab Control. Show parse and runtime errors in the IDE. more...

WPF IDE

IDE in a WPF Tab Control

  • Use WinWrap Basic in a WPF Tab Control
  • Execute scripts
  • Edit scripts
  • Debug scripts

Use WinWrap Basic in a WPF Tab Control. Show parse and runtime errors in the IDE. more...

Azure Host

Scripting in an Azure Website

  • Allow users to script your Azure Web Site's object and events
  • Restrict scripting access to a subset classes, methods, properties and events
  • Promote scriptable class members into the scripting language

Use powerful .NET classes and language features like generic types in scripts safely. Prevent script access to .NET classes like System.Assembly. Prevent script access to .NET objects at run-time like System.Assembly. more...

Scripting Execution and Design

User Scripting Execution and Design

  • Execute scripts to handle customized application behavior
  • Edit scripts in design mode
  • Parse script code for future execution
  • Check for parse errors when switching to execution mode

Improve application responsiveness by pre-parsing scripts for rapid execution and event handling. more...

Copyright Polar Engineering, Inc.