Hi,
I am trying to test using a DLL for drawing (VeCAD DLL). The VeCAD DLL trial version can be downloaded here: http://www.kolbasoft.com/vecad6.zip.
A newbie, I have written script, following the DLL scripting requirements and DLL samples in the AMS User Guide, and I've added this script to a button to call 2 functions. As far as I can understand from reading the VeCAD help guide (Re: VeCAD Object and VeCAD Window) these 2 function calls are needed first in order for the DLL's drawing canvas to display in a Window, so additional functions for drawing can then be called and drawing can be done.
I'm not sure of 2 things: (1) are these the correct function calls and syntax to get a drawing canvas to display? and (2) is my LUA script correct?Code:DLL.CallFunction ("C:\\Program Files\\Kolbasoft\\VeCAD61\\Vecad.dll","CADCreate",DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL); DLL.CallFunction ("C:\\Program Files\\Kolbasoft\\VeCAD61\\Vecad.dll","CadWndCreate","hDwg", "hWndParent","Style", "Left", "Top", "Width", "Height",DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
I must be doing something wrong since when I preview the AMS project and click the button that contains this script, nothing happens. No drawing canvas Window displays.
I would much appreciate any help so that I can get this DLL working in AMS and learn how to script these and additional function calls to set up DLL drawing features for an eLearning project.
I am attaching the AMS file. The VeCAD DLL and VeCAD help files are included in the package that can be downloaded using the above link.
Thanks very much for your help.
Kind Regards,
SGW

Reply With Quote
(if it's a number parse it like: 6 ..",".. 10 .. "," .. 11, or else AMS will see it as arguments for the lua function.)
