Subject: [libssh2] LoadLibrary function failed

[libssh2] LoadLibrary function failed

From: Petr Hracek <phracek2_at_tiscali.cz>
Date: Thu, 19 Jul 2007 11:17:03 +0200

Hello *,

I've built DLL library succesfully but when
I load Library with function LoadLibrary
it failed with error 182
//
// MessageId: ERROR_INVALID_ORDINAL
//
// MessageText:
//
// The operating system cannot run %1.
//
#define ERROR_INVALID_ORDINAL 182L

Do you now anybody where can be a problem?
I am using Microsoft Visual Studio 2005.

Source code of Loading library is:
        CString PomString;
        PomString.Format("%slibssh2.dll",m_cCurDir);
        hInst = ::LoadLibrary(PomString);
        if(hInst != NULL)
        {
              // successfully loaded
        }
        else
        {
                DWORD err = GetLastError();
        }

regards

Petr

______________________________________
DĚTI DO 12 LET VE VYBRANÝCH HOTELECH NA TABARCE A V TUNISU POUZE ZA 1,- KČ

http://ad-sc.tiscali.com/ADCLICK/CID=0002f60bc6efdc0e00000000/SITE=CZ.TISCALI/AREA=NEWSLETTER.HOME/POS=L1

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-07-19