Salu2 señores,
Esta ves tengo un problemilla con cargarme una dll de fox,
mas bien al momento de cargar las funciones: estoy usando
el codigo de carga del articulo:
http://www.codeproject.com/dll/dllease.asp
que sirve basicamente para cargar varias dlls con una sola
funcion GetProcAddresses
entonces mi codigo de prueba es es siguiente:
typedef LPCSTR (CALLBACK* EJECUTATRANSACCION)
(DWORD,LPCSTR);
typedef void (CALLBACK* SETEAPATH)
int main(int argc, char* argv[])
{
(LPCSTR);EJECUTATRANSACCION p1 = NULL;
SETEAPATH p2 = NULL;
HINSTANCE hLib;
if(GetProcAddresses( &hLib, "vfp_ole.dll", 2,
&p1, "EJECUTATRANSACCION",
&p2, "SETEAPATH" ) )
{
p1(1023,"laksndasndkasnd");
}
if ( hLib != NULL )
FreeLibrary( hLib );
}
y me genera un error en la linea d la funcion:
////carga la dll
if ( ( *lpfProcFunction = GetProcAddress(
*hLibrary,lpszFuncName ) ) == NULL )
{
lpfProcFunction = NULL;
return FALSE;
}
y retorna falso :(
Leer las respuestas