Archive Index
This month's Index
|
Subject: Windows and libssh2
Windows and libssh2
From: Phillip Wu <Phillip.Wu_at_lpma.nsw.gov.au>
Date: Fri, 19 Nov 2010 09:15:00 +1100
Hi,
I am trying to use libssh2 in Visual Studio 2010 Express C++. I am using ssh2 from the example directory.
I managed to get libssh2 (version 1.2.7) for Windows as a dll from http://josefsson.org/gnutls4win/.
According to MSDN this is the required code to get access to a dll at run time:
// Get a handle to the DLL module.
hinstLib = LoadLibrary(TEXT("libssh2-1.dll"));
// If the handle is valid, try to get the function address.
if (hinstLib != NULL)
// If the function address is valid, call the function.
if (NULL != ProcAdd)
fFreeResult = FreeLibrary(hinstLib);
// If unable to call the DLL function, use an alternative.
1. Has anyone used this approach for libssh2? If so, is there somewhere I can get the code stubs for
***************************************************************
_______________________________________________
|