Hola , estoy implementado
Arrastrar y soltar archivos (Drag and Drop) sin
procedure-pointer
obteniendo la direccion de la funcion , la consulta cual seria la mejor forma de atrapar el nombre del archivo arrastrado , lo estoy haciendo con un cmtimer
pero no se si es la forma correcta


Código COBOL:
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 wsHwnd pic s9(9) comp-5.
01 newWndProc pic s9(9) comp-5.
01 OldWndProc external pic s9(9) comp-5.
01 GWLP-WNDPROC pic s9(9) comp-5 value -4.
01 hModule pic s9(9) comp-5.
PROCEDURE DIVISION.
move "hwnd" of pow-self to wsHwnd.
move wsHwnd to "Text" OF CmText1
call "GetModuleHandleA" with stdcall using by value 0 returning hModule
* DISPLAY "hModule: " , hModule.
call "GetProcAddress" with stdcall using by value hModule
by content "_ProcDragFile@16" & X"00"
returning newWndProc.
y la imagen con
Código COBOL:
01 EXP-FILE-NAME PIC X(250) GLOBAL EXTERNAL. *> Retorno del Procedimiento
*cmtimer*
IF EXP-FILE-NAME NOT = SPACES THEN
* display "Fichero TIMER: " EXP-FILE-NAME
MOVE EXP-FILE-NAME TO "ImageName" OF CmImage1
END-IF.
Saludos ....