FoxPro/Visual FoxPro - PARAMETROS DE ESTRUCTURAS EN DLL

 
Vista:
sin imagen de perfil

PARAMETROS DE ESTRUCTURAS EN DLL

Publicado por DALSOM (612 intervenciones) el 02/03/2005 19:49:56
HOLA A TODOS, ESTOY TRATANDO DE PASAR PARAMETROS A UNA ESTRUCTURA DE DATOS DENTRO DE UNA DLL. LA ESTRUCTURA ES LA sBrowseInfo DE LA Shell32.dll

typedef struct _browseinfo {
HWND hwndOwner;
LPCITEMIDLIST pidlRoot;
LPTSTR pszDisplayName;
LPCTSTR lpszTitle;
UINT ulFlags;
BFFCALLBACK lpfn;
LPARAM lParam;
int iImage;
} BROWSEINFO, *PBROWSEINFO, *LPBROWSEINFO;

Estoy haciendo lo siguiente y me da que estoy pasando muy pocos parametros.

sBrowseInfo = REPL(CHR(0),32)
PidLroot="C:\"
LpszTitle="Texto Informativo"
PszDisplayName="Caption de la Ventana"

DECLARE INTEGER SHBrowseForFolder IN SHELL32.DLL STRING @Browseinfo
SHBrowseForFolder(@sBrowseinfo)

DONDE LA FUNCION SHBrowseForFolder es quien me trae el puntero al folder. Solo con el sBroweinfo y sin definir los demas parametros funciona perfectamente, pero quiero darle formato, y por eso intento modificarlo.

Tampoco se como es que calculan los bytes que debo ponerle a la cadena que sirve de parametro, creo que es cada variable por 5 bytes, pero no estoy seguro.

Gracias de antemano.
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

RE:PARAMETROS DE ESTRUCTURAS EN DLL

Publicado por David Amador T. (168 intervenciones) el 02/03/2005 20:28:52
Revisate los siguientes links ...

http://fox.wikis.com/wc.dll?Wiki~ApiStructureClass~VFP
ftp://ftp.prolib.de/public/vfp/struct.zip
http://www.foxitaly.com/ecerlini/rpstruct.zip

Saludos..

David Amador Tapia
WebMaster "La Web de Davphantom"
www.davphantom.net
Cartagena. Colombia
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar