Antonio,
The main window is showing but not responding and the menu is not showing up. I commented a try() function and get the following runtime error at oRect:Move(Max(oRect:nTop, ::nTop ).
alert('oRect:nTop='+ valtype(::nTop) ) &&<-- this is equal to 'U'.
oRect:Move( max( oRect:nTop, ::nTop ), max( oRect:nLeft, ::nLeft ) )
Here's the error log:
Application
===========
Path and name: C:\pcrwin\PCREGW32.Exe (32 bits)
Size: 2,769,408 bytes
Time from start: 0 hours 0 mins 13 secs
Error occurred at: 05/12/08, 10:10:16
Error description: Error BASE/1093 Argument error: MAX
Args:
[ 1] = N 0
[ 2] = U
Stack Calls
===========
Called from: => MAX(0)
Called from: CRect.prg => CRECT:NEW(83)
Called from: CPcreg.prg => CPCREG:NEW(63)
Called from: PCREGW.PRG => WINMAIN(87)
May be this is related to the creation of main window in C.
Any idea?
Thanks,
Jose