LabWindows/CVI

CDotNetLoadAssembly

int CDotNetLoadAssembly (const char *name, CDotNetAssemblyHandle *assembly);

Purpose

Loads the .NET assembly that the name parameter specifies.

If the .NET assembly is not in the Global Assembly Cache or in the same directory as the calling executable, then you must first call CDotNetRegisterAssemblyPath to register the file path of the assembly.

Parameters

Input
Name Type Description
name const char * The fully-qualified name of the .NET assembly to load.
Output
Name Type Description
assembly CDotNetAssemblyHandle Handle to the loaded assembly. When you no longer need this handle, you must call CDotNetDiscardAssemblyHandle to discard it.

Return Value

Name Type Description
status int A value indicating whether an error occurred. Negative error codes indicate function failure.

Error codes are defined in cvi\include\cvidotnet.h.

You can use CDotNetGetErrorDescription to get the description of an error code.

Additional Information

Library: .NET Library

Include file: cvidotnet.h

LabWindows/CVI compatibility: LabWindows/CVI 8.0 and later