Visual Basic.NET - Convertir código de C++ a vb.net

 
Vista:

Convertir código de C++ a vb.net

Publicado por Jona (1 intervención) el 15/05/2012 22:53:50
Hola!!!

Por favor si alguién me puede ayudar como se escribiría este código en vb.net. El código corresponde a una función de una dll:

//prototype of function
typedef int (*LPLOG)(VOID*,BYTE);
HINSTANCE HandleLib = LoadLibrary("FiscalProtocol.dll");
LPLOG pSetLog = (LPLOG) GetProcAddress( HandleLib, "SetLog");

¿Cómo llamo la función?
// to call the function preferably at begin of application
pSetLog("c:\\registro\\ll\\",1);

// creates this directory at the "windows explorer" c:\epson\ll
// the logs will be creates as for example: eplog_01.txt into c:\registro\ll

Gracias,
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder