VCGetDllRunName
VCSetDllRunName


Version:

2.0

Description:

Specifies the DLL name where the function is located.

Declaration:

 

C/C++

extern "C" short WINAPI VCGetDllRunName(short* iError, char* szPath);
extern "C" void WINAPI VCSetDllRunName(short* iError, char* szPath);

Delphi

function VCGetDllRunName(var iError: Smallint; szPath: PAnsiChar):Smallint; stdcall;
procedure VCSetDllRunFunction(var iError: Smallint; szPath: PAnsiChar); stdcall;

ActiveX/COM

Function GetDllRunName() As String
Sub SetDllRunName(ByVal szPath As String)

Parameters:

return - the length of the return string.
szPath
- the command line argument to pass to the DLL.

Notes:

Visual CADD™ can run functions from within a DLL through the scripting language. This allows developers to create add on applications in a Windows DLL format and then simply reference functions contained in the DLL. Visual CADD™ will load the DLL into memory and access the specified function. Generally, this is simply done through the Visual CADD™ interface with the Assign Script command or the CMDEXT file. Please refer to Customizing Visual CADD™ for more information this. An application can also launch the routines through the API.

In order to access the DLL function, Visual CADD™ must know the DLL name, the name of the function and any command line arguments required. The command line arguments can only be passed as a character string. The engine then uses this information to launch the specified function.

See Also:

VCGetDllRunCmdLine, VCGetDllRunFunction, VCGetOleDllClassName, VCGetOleDllFunctionCmdLine, VCGetOleDllFunctionName, VCGetOleDllName