Please enable JavaScript to view this site.

COM (Component Object Model) is a platform for software components.

 

This allows dynamic object creation, in any programming language that supports the technology, including Microsoft Office VBA, PHP, Python, Perl, and Ruby.

 

This library is a reduced version of the .NET client library, prepared for languages compatible with COM. Differences include:

 

Only synchronous persistent functions that return LkData objects are available from client functions.

Automatic classes (List<T>) are not included.

Objects must be requested before using data and MV Functions.

All objects must be wrapped-up, disposed, and set to null to ensure proper garbage collection.

 

Client code must instantiate COM objects with an empty constructor. Details are then initialized using the InitializeProperties methods.

 

See Linkar CLIENTS for a complete list of client libraries and their file names.

 

Install the required .NET Framework version

 

The .NET Framework 4.5 (v4.0.30319) is required to register and develop with the LinkarClientCOM.dll. At this time this is the only supported framework version. This should not be a problem, as multiple .NET frameworks can be installed at the same time. Download and install .NET 4.5 from Microsoft if required. Reboot after installation and before continuing.

 

Obtaining the COM Libraries

 

There are two COM Library DLLs:

- The DLL for 32bit development is included in the .NET Framework x86 client package.

- The DLL for 64bit development is included in the .NET Framework x64 client package.

(While not completely accurate, historical convention equates 32bit with x86 architecture.)

 

For 32 bit development, download the file “Linkar_Clients_NET_Framework_x86_x_y_x.zip”.

Optional : After extracting the files from the .zip you may wish to copy the COM library to a folder that identifies the library and the environment. This example will be used below: C:\LinkarClients\x86)

 

For 64 bit development, download the file “Linkar_Clients_NET_Framework_x64_x_y_x.zip”.

Optional : After extracting the files from the .zip you may wish to copy the COM library to a folder that identifies the library and the environment. This example will be used below: C:\LinkarClients\x64)

 

Register Library

 

A COM library must be registered on any computer where it is used, using the RegAsm.exe tool. The location of this tool is dependent on the versions of the .NET framework which are installed. Please seek assistance from common developer resources if required.

 

On a 64 bit OS, register the 64 bit library using RegAsm.exe from:
“%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\regasm”

 

On a 32 bit OS, the “regasm” tool to be used comes from the folder that does not specify the architecture (there is no 32/x86 folder). For example:
“%WINDIR%\Microsoft.NET\Framework\v4.0.30319\”

 

On a 64 bit OS, to register the 32 bit library for use in a 32 bit application, again, use the 32 bit RegAsm.exe:
“%WINDIR%\Microsoft.NET\Framework\v4.0.30319\”

 

Open the command console with Administrator Rights (Execute as Administrator). If required, "cd" to the folder containing the correct RegAsm.exe. See above. To be clear, you must execute RegAsm.exe in the folder for the architecture that will run your final application.

The command for 32bit and 64bit is the same, only the full folder path is different.

 

32 bit COM library: With LinarClientCOM.dll in (example from above) “C:\LinkarClients\x86”:

 

regasm "C:\LinkarClients\x86\LinkarClientCOM.dll" /codebase /tlb

 

(Quotes are only required if the folder includes spaces)

 

64 bit COM library: With LinarClientCOM.dll in (example from above) “C:\LinkarClients\x64”:

 

regasm "C:\LinkarClients\x64\LinkarClientCOM.dll" /codebase /tlb

 

 

Important

 

For Excel and other Microsoft Office applications, the registered library must be "bit-wise" the same as the installed application version. Therefore, to develop for end-users with 32bit Office, the 32bit Office must be installed on the developer system, and the 32bit COM library must be registered. Do not use the 64bit library because you have a 64bit OS. Use the library for the architecture for which the application is being developed.