![]() |
ERROR:ShLink.GetPath(Buffer, Sizeof(Buffer), Data, SLGP_UNCPRIORITY)
Código:
function estrai_path_da_lnk(filen:widestring):widestring; ShLink.GetPath(Buffer, Sizeof(Buffer), Data, SLGP_UNCPRIORITY); [DCC Error] helper_urls.pas(153): E2033 Types of actual and formal var parameters must be identical En ShlObj.pas: Código:
IShellLinkW = interface(IUnknown) { sl } (E2033)Types of actual and formal var parameters must be identical: For a variable parameter, the actual argument must be of the exact type of the formal parameter. He cambiado declaraciones de variables, modificado parámetros ,en fin le he dado a esto muchas vueltas...No le encuentro la solución. ¿Podria alguien ayudarme? ¡ Gracias! Saludos a todos. |
Hola, prueba cambiando
por
El error ya te esta dando una pista de cual es el problema, que los tipos deben ser identicos, y si te fijas el tipo del parametro pfd es TWin32FindDataW y no TWin32FindData. Cita:
|
Si,si! ¡Correcto, muchas gracias!
Como no lo ví, si lo tenía delante... Saludos:) |
La franja horaria es GMT +2. Ahora son las 09:28:35. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi