Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 7:45 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: DLL-calling functions for VeCAD DLL
PostPosted: February 16th, 2009, 6:58 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
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,[


You do not have the required permissions to view the files attached to this post.

_________________
Stephen


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 41 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group