GetDependencies

ACCPAC Common Controls

AccpacSession.GetDependencies

Returns a list of dependent classes based on the current session's Program Name and the user's language setting (the current session's UserLanguage).

Sub GetDependencies(
  CodebaseType As tagDistFileType,
  CLSIDs() As String,
  Codebases() As String)

Parameters

CodebaseType

[in] format of the codebases to retrieve

CLSIDs

[out] returns an array of COM class IDs for the dependent classes

Codebases

[out] returns an array of codebases for the dependent classes

Remarks

The format of the returned items in the Codebases array depends on the value of CodebaseType passed in:

  • DF_DYNAMIC - Depends on the client's connection. If the client is remote, the codebases are the URLs to the dependent classes' CAB files. If the client is in-process, the codebases are the local paths (including filenames) to the classes' (OCX, DLL or EXE) files.

  • DF_REMOTE - Codebases are always returned as the URLs to the dependent classes' CAB files.

  • DF_LOCAL - Codebases are always returned as the local paths (including filenames) to the dependent classes' (OCX, DLL or EXE) files.

To get the dependent classes for a language other than the user's language, use GetDependenciesForLanguage instead.