Unless m_cCurDir field ends in a / or \, the filename you create will not be what you want, I believe.
Mark Petr Hracek wrote: > 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@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libssh2-devel ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel