An error occurred in script '/home/yhr1ef23xez5/public_html/web2/app/model/bannerhit.php' on line 17:
Undefined index: HTTP_REFERER
Array ( [type] => solution [name] => cypress-enable )
Converting from Cypress Enable to WinWrap® Basic is easy.
IDispatch is used to extend the WinWrap Basic execution. Converting from Cypress Enable requires that you implement a class derived from IDispatch. IDispatch::GetIDsOfNames is called when WinWrap Basic parses the script to determine what names your language extension adds. WinWrap Basic execution of a language extension method occurs in IDispatch::Invoke. So converting requires that you implement an IDispatch to interface to your already existing functions. It is not even necessary to create a real COM type. You can just implement the IDispatch interface according to the rules, add an instance of the class to WinWrap Basic with AddExtension and your done.
AddExtension has a complicated set of options, but what you would need is very simple:
Class implementation:
All the methods implemented by IDispatch::GetIDsOfNames/Invoke are accessible from the WinWrap Basic script using names like "MyMethod1".
Now, this approach is certainly the easiest way to
convert, but without a COM type WinWrap Basic's IDE can't show any
auto completion information. Also, WinWrap Basic supports early
binding through an IDispatch's dual interface. It is much faster
than going through IDispatch::Invoke. So instead of calling
DispatchFuncMyMethod1 WinWrap Basic can call MyMethod1
with normal parameters. Visual Studio and ATL make writing type
libraries and dual interfaces pretty easy.
These pages cover all the different language capabilities that
your application might want to implement using ATL:
There are 4 different ways to integrate the IDE into a C++ application:
Several complete sample applications are here:
Copyright Polar Engineering, Inc.