Dynamic Loading

Dll Description

lgo_DllDescription()

Access function for LayGO library descriptions.

Syntax
#include "laygodll.h"

LMessage lgo_DllDescription
    (
         LaygoDllType	code
    );
codetype of dll to get description of
Description

lgo_DllDescription()is the access function for LayGO library descriptions.

Return Values

All calls to lgo_DllDescription()are successful. It returns a human-readable message corresponding to the type code.

See Also

lgo_DllErrorMessage()
lgo_DllName()
lgo_DllTagToType()
lgo_DllType()

Example
LaygoDllType    dllType;
LResult         result;

if (argc > 1)
{
    if (!lgo_DllTagToType(argv[1], &dllType))
    {
        printf("\nSyntax: laygodllt [" lgo_DLL_TAG_STRING "]\n");
        exit(EXIT_FAILURE);
    }
}

if ((result = lgo_LoadLaygoDll(dllType)) < 0)
{
    printf("Error: Cannot load %s LayGO API Library (%s): %s.\n",
                lgo_DllDescription(dllType),
                lgo_DllName(dllType),
                lgo_DllErrorMessage(result));
}
else
{
    printf("%s LayGO API Library loaded.\n", lgo_DllDescription(dllType));
}