VCDllRun


Version:

2.0

Description:

Runs the function in a specified DLL without aborting the current Visual CADD™ tool.

Declaration:

 

C/C++

extern "C" void WINAPI VCDllRun(short* iError, char* DllName, char* FunctionName, char* CommandLine);

Delphi

procedure VCDllRun(var iError: Smallint; DllName: PAnsiChar; FunctionName: PAnsiChar;

ActiveX/COM

Sub DllRun(ByVal DllName As String, ByVal FunctionName As String, ByVal CommandLine As String)

Parameters:

DllName - the name of the DLL
FunctionName - the name of the function within the DLL
CommandLine - the command line argument for the function. This can be NULL.

Notes:

Visual CADD™ 2.0 and later supports applications written as a DLL directly in the interface. This allows applications to be built as general tool sets into a DLL with exported functions. In the Visual CADD™ interface these routines can then be accessed by the end user through assigning a script. The exported functions can have only a character string command line.

VCDllRun is identical to VCRunNestedDll except that VCRunNestedDll will send ALERT_APP_TOOL_START and ALERT_APP_TOOL_COMPLETE alerts when it loads the DLL and runs the function, whereas VCDllRun does not send any alerts. For both VCRunNestedDll and VCDllRun, the current Visual CADD™ tool is not aborted and continues to run unless the DLL function itself aborts the current tool.

See Also:

VCRunNestedDll, VCRunNested, VCRun