Hi,
I am trying to test a drawing DLL (download VeCAD trial version:
http://www.kolbasoft.com/vecad6.zip) in a pub.
I have written to the developer. The DLL is written in unmanaged C++ code, so it should work if the function calls can be correctly scripted. I've been able to successfully load the DLL (which if the trial is downloaded, needs to be placed into the pub's development folder).
The DLL has a drawing canvas which can be displayed in the pub Window, again, if the function calls (functions calls for VeCAD object and VeCAD window-see VeCAD help guide) are correctly scripted in Opus. This is a challenge. I've tried several scripts but with no success.
Here's a script I tried without success:
Code:
if (MyDLL=LoadDLL(SYSTEM_PUBLICATION_DIR +
"\\Vecad.dll"))
{Debug.trace("DLL loaded")
var hDwg = MyDLL.CallFn("CadCreate","none")
var Style = "CAD_WS_DEFAULT"
var Left = 50
var Top = 50
var Width = 300
var Height = 300
var yyy = MyDLL.CallFn("CadWndCreate", "hwnd", "hwnd","hDwg", "ulong", Style, "ulong",Left, "ulong", Top, "ulong", Width, "ulong", Height)
}
else {Debug.trace ("DLL not loaded")}
I have attached the Opus test IMP with a different (unsuccessful script). I would appreciate any help getting the scripts correct, in order to display the default VeCAD DLL drawing canvas in the pub's window, which I believe is possible. A downloaded trial of VeCAD will have the VeCAD DLL and help guide (C++ function calls).
I would be happy to provide any additional information.
Thanks for your help.
Kind Regards,[