Hi Hannu
I'm a C++Builder programmer, the borland's c++ syntax is quite diferent but I think I can help you.
1- You could import the file CLSERNAT.lib in your project (in the VC enviroment), in this way you don't have to load the library yourself and you can use the funtion in your source code.
2- If you have to load the library yourself define pointer to the function in the DLL
typedef void __stdcall (*TFunctionInDll)(void*);
Load the Dll:
int IdentDLL = (int)LoadLibrary("CLSERNAT.DLL");
do the typecast
TFunctionInDll FunctionInDll= (TFunctionInDll)GetProcAddress((HINSTANCE)IdentLib,"clSerialCLose");
and call the function the usual way
FunctionInDll(NULL);
The typedef definition must be with the same parameters of the function in the
dll.