# importCLib(libName,DLL, def)

Imports a Compiled Library

### Syntax

o_importCLib(libName, DLL, def)
  libName: scalar Text - library name to use for the imported library
  DLL: scalar text - the DLL file that is to be loaded
  def: array 1D Text - the definition file contents
  return: type description

### Usage

This wraps the Import Library object within a function so that it can be used in expressions.

### Location

menu: veeos ==> coding ==> importCLib

library: codeLib

### Example

o_importCLib( "games", "C:\temp\gameLib.dll", ["long __stdcall chess(int difficulty)","long __stdcall go(int difficulty)"]) imports the compiled library gameLib.dll with the library name "games".

### Notes

As with any name, do not use spaces or punctuation within the library name. If you need spaces in the library file path be sure to quote them. Unless your library is within the default search path, you will need absolute path for the library file. Note that a definition file is not needed since the function definitions are included as an argument.

### Reference

### Supported On

VEE 7.0+, Windows XP+

### See Also

importULib

© 2015-2017. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 24 February 2017 08:58.