![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
#5
|
|||
|
|||
|
Gracias de nuevo, CheckAll. No creo que sea un problema de tipos (string, pchar).
He depurado paso a paso el código y he inspecionado las variables. El error (EAccessViolation) se produce en "FreeLibrary" procedure TForm1.SpeedButton1Click(Sender: TObject); type TLlamarDLL = function(var s : string; x : integer; si : boolean): boolean; var buffer : string; DLL : HWND; LlamarDLL : TLlamarDLL; begin buffer := ''; DLL := LoadLibrary('monlib.dll'); try @LlamarDLL := GetProcAddress(DLL, 'buscarValor'); if @LlamarDLL <> nil then if llamarDLL(buffer, 30, false) then edit1.text := buffer; finally FreeLibrary(DLL); end; end; |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Error Abstract Error y Access violation | zvf | OOP | 33 | 08-09-2010 18:50:33 |
| 'DBX Error: No Mapping for Error Code Found' | CHECHE81 | Conexión con bases de datos | 1 | 09-06-2010 02:11:35 |
| Error 10093 al ver un informe - Que error es este? | URBANO | Impresión | 1 | 03-02-2006 18:44:39 |
| ¿Por qué me da este error?Error creating cursor manejador | nuri | SQL | 2 | 01-08-2005 17:30:28 |
| Error: RichEdit line insertation error | DarkByte | Varios | 3 | 19-07-2004 12:28:09 |
|