LabWindows/CVI

CDotNetRegisterAssemblyPath

int CDotNetRegisterAssemblyPath (const char *name, const char *path);

Purpose

Registers the file path of an assembly.

If the assembly is not located in the Global Assembly Cache or in the current directory of the calling executable, then you must call CDotNetRegisterAssemblyPath to register the file path of the assembly before you use the assembly.

Example Code

CDotNetRegisterAssemblyPath(

"MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=abcdabcdabcdabcd",
"c:\\temp\\MyAssembly.dll");

Parameters

Input
Name Type Description
name const char * The fully-qualified name of the assembly to register.
path const char * The file path of the assembly to register.

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