topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
problems in Picture clause of SAY command | Antonio,
1) with this change, i have a new error:
unrecoverable error 9003, too many recursive error handler calls.
i have tried: SetWindowText( ::hWnd, ::cCaption )
like in fwh 8.12 and so it works well.
what do you think?
2) the ELSE condition in fwh 8.12 is: ::cCaption = GetWindowText( ::hWnd )
the ELSE condition in fwh 9.03 is: ::cCaption = ::GetText()
is this correct for fwh 9.03?
thanks, marzio |
problems in Picture clause of SAY command | Marzio,
> unrecoverable error 9003, too many recursive error handler calls
Please review the created error.log and look for the line where the error comes from, and post it here, thanks.
>
the ELSE condition in fwh 9.03 is: ::cCaption = ::GetText()
is this correct for fwh 9.03?
>
Yes, it is correct. We are preparing the code for Unicode full support. |
problems in Picture clause of SAY command | Marzio,
Please post here your Class TSay Method Initiate() source code, thanks
It seems as you are using an undeclared cText variable there:
[quote:164ktb71]
Error description: Error BASE/1003 Variable does not exist: CTEXT
...
Called from: errsysw.prg => (b)ERRORSYS(0)
Called from: say.prg => TSAY:INITIATE(0)
...
[/quote:164ktb71] |
problems in Picture clause of SAY command | [code=fw:2i8i3khc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------// </span><br /><br /><span style="color: #00C800;">METHOD</span> Initiate<span style="color: #000000;">(</span> hDlg <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TSay <br /><br /> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">Initiate</span><span style="color: #000000;">(</span> hDlg <span style="color: #000000;">)</span> <br /><br /> <span style="color: #00C800;">if</span> ! IsAppThemed<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lTransparent</span> <br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">)</span> .and. !empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">oBrush</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">SetBrush</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oBrush</span> <span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">endif</span> <br /> <span style="color: #00C800;">endif</span> <br /> <span style="color: #00C800;">endif</span> <br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">cCaption</span> != <span style="color: #00C800;">nil</span> <span style="color: #B900B9;">// don't use Empty() here or blank texts will not show </span><br /> <span style="color: #B900B9;">// ::SetText( ::cCaption ) previous code</span><br /> SetWindowText<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span>, cText <span style="color: #000000;">)</span> <span style="color: #B900B9;">// new</span><br /> <span style="color: #00C800;">else</span> <br /> ::<span style="color: #000000;">cCaption</span> = ::<span style="color: #000000;">GetText</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /> <span style="color: #00C800;">endif</span> <br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------// </span></div>[/code:2i8i3khc] |
problems in Picture clause of SAY command | [code=fw:10gt7zgk]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br /> Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">T</span>:\marzio\Winclip\Applicazioni\printXls\printXls.exe <span style="color: #000000;">(</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">2</span>,<span style="color: #000000;">492</span>,<span style="color: #000000;">928</span> bytes<br /> Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">2</span> secs <br /> Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">05</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">09</span>, <span style="color: #000000;">10</span>:<span style="color: #000000;">05</span>:<span style="color: #000000;">01</span><br /> Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1003</span> Variable does not exist: <span style="color: #000000;">CTEXT</span><br /> Args:<br /><br /><span style="color: #000000;">Stack</span> Calls<br />===========<br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">say</span>.prg => TSAY:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __OBJSENDMSG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => OSEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => ASEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECT<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => ERRORDIALOG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>ERRORSYS<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">say</span>.prg => TSAY:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __OBJSENDMSG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => OSEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => ASEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECT<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => ERRORDIALOG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>ERRORSYS<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">say</span>.prg => TSAY:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __OBJSENDMSG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => OSEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => ASEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECT<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => ERRORDIALOG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>ERRORSYS<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">say</span>.prg => TSAY:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __OBJSENDMSG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => OSEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => ASEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECT<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => ERRORDIALOG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>ERRORSYS<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">say</span>.prg => TSAY:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __OBJSENDMSG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => OSEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => ASEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECT<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => ERRORDIALOG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>ERRORSYS<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">say</span>.prg => TSAY:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __OBJSENDMSG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => OSEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => ASEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECT<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => ERRORDIALOG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>ERRORSYS<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">say</span>.prg => TSAY:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __OBJSENDMSG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => OSEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">harbour</span>.prg => ASEND<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECT<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">dialog</span>.prg => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => ERRORDIALOG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">errsysw</span>.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>ERRORSYS<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: <span style="color: #0000ff;">say</span>.prg => TSAY:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __OBJSENDMSG<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /><br />System<br />======</div>[/code:10gt7zgk] |
problems in Picture clause of SAY command | Marzio,
Instead of:
SetWindowText( ::hWnd, cText ) // new
it should be:
SetWindowText( ::hWnd, ::cCaption ) // new |
problems with ActiveX from viscomsoft | Hello,
some have some body experience with viscomsoft ActiveX for scanning [url:7j2hgl32]http://www.viscomsoft.com/products/scanner/index.html[/url:7j2hgl32].
I have two initial problems:
1.- I can't put it inside a Dialog
2.- using the method save, to save scanned image into file, stop the app without any message
regards
Marcelo |
problems with ActiveX from viscomsoft | Did you get any answer for this? I am looking for scanning solution that also can get barcode from image. |
problems with email | Hi,I want to open the pre-defined mail program, create a new message and attach a file.I tried DEFINE MAIL but I does not work fine. In some cases, you have to call it twice, and in some computers it does not work at all!!.Any ideas?. Thank you, Best regards, |
problems with email | DEFINE MAIL works with MAPI. If the computer isn't configured with a default MAPI mail client, then DEFINE MAIL won't work.Regards,James |
problems with email | Thank you, James!!It must be an alternative!!. It is a basic feature that Fivewin must have. |
problems with email | There is an alternative. You can use SMTP instead. This will send mail directly to a SMTP server. There are some negatives. Users will not get to edit the mail before it goes out and they will not get a copy saved in their Sent folder in their mail client software.See FWH\samples\testsmtp.prgRegards,James |
problems with email | Thank you James, it i want to send the email with the email client, so as to avoid the difficulties you have pointed out.Why does DEFINE MAIL not work fine with Outlook express?.Best regads |
problems with email | DEFINE MAIL does work with Outlook Express. However, recently I installed the new Outlook Express replacement, Windows Live Mail (desktop) and it reconfigured Windows to make itself the default MAPI client. Then I went back to using Outlook Express and set it to the default MAPI client, but all mail sent to it using another program (such as FW's DEFINE MAIL), still gets sent to Windows Live Mail. I have not been able to find a solution for this. So, DEFINE MAIL still works in this case but it is being sent to the wrong MAPI client--but this is a Windows configuration issue, not a FW issue.What is the problem you are having with Outlook Express? Are you getting error messages? Perhaps it is a Windows configuration problem. What version of Windows? I am using XP Pro SP2.Regards,James |
problems with email | Here is a link on how to fix various MAPI configuration problems.<!-- m --><a class="postlink" href="http://www.ctimls.com/Support/KB/Error%20Fixes/Fix_Mapi_error.htm">http://www.ctimls.com/Support/KB/Error% ... _error.htm</a><!-- m -->Regards,James |
problems with email | Hi James,Thank you for your help!!.I use Windows XP SP2, Fivewin 7.12 y Harbour 1.1.This code:DEFINE MAIL oMail; SUBJECT "Envío documento"; TEXT "Cordiales saludos" ; FILES ( cEmailFile ), cFileName( cEmailFile ) ; FROM USER ACTIVATE MAIL oMail In some computers only works when you call it twice. In others, It does not work at all!!!.What I want is very simple: with the provided file, open a new email meesage. Fivewin should support this!!.Best regards, |
problems with email | Moises,> What I want is very simpleWhat you want is not as simple as it seems <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> It should be simple if you have the right settings in your computer.What email software do you use ? Do have Outlook and Outlook Express both installed in your computer ? |
problems with email | Antonio:The computer is working fine. No problems when in a web page, for example, yo do click on an email adress. It start it propely.I have Outlook Express and Outlook. The pre-defined email client is the first.Thank you!!!. Best regards, |
problems with email | [quote="Antonio Linares":2lz99oyd]Moises,
> What I want is very simple
What you want is not as simple as it seems <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> It should be simple if you have the right settings in your computer.
What email software do you use ? Do have Outlook and Outlook Express both installed in your computer ?[/quote:2lz99oyd]Dear Linares,Taking your topic, let me ask something:I have a similar routine that works perfectly when the default program is Outlook Express, but when it's defined for Mozilla Thunderbird ... the routine only opens the program, but not the screen for sending e-mail like in Outlook.Is there any extra configuration to do? |
problems with email | Moises,>In some computers only works when you call it twice. In others, It does not work at all!!!. >What I want is very simple: with the provided file, open a new email meesage. Fivewin should support this!!.I don't think this has anything to do with FW. FW does support MAPI and I have been using it for many years without problem. You are having a MAPI configuration problem. Did you look at the link I provided above?James |
problems with email | Hi,I found an alternative, the mailto: command. It starts the pre-defined mail client, but i don´t know how to specify a file to attach.Anyone has more info about this command?. Thank you |
problems with email | Moises,<!-- m --><a class="postlink" href="http://www.google.es/search?hl=es&q=mailto%3A+attach+a+file&meta=">http://www.google.es/search?hl=es&q=mai ... file&meta=</a><!-- m --> |
problems with email | Antonio,Of course, I tried Google first, but those pages refer to UNIX, not to Windows and I did´t find a working example to attach a file with mailto: command. Where I can find its parameters?.Thank you |
problems with email | Moises,Try this:"mailto:{0}?Subject={1}&Body={2}&Attach={3}"Replace {n} with the values |
problems with email | Moises,I found these in my notes (for MAPI). It may help.James-----------------------If you specify a TO and the parameter is blank and you are using the FROM USER clause, the message compose box will not appear. Likewise if the filename is invalid or not found. It is best to use an error trap:[code:3disdv52] DEFINE MAIL...
ACTIVATE MAIL...
IF oMail:nRetCode!=0
MsgAlert("The message could not be sent due to an error."+CRLF+;
"MAPI error code: "+ltrim(str(oMail:nRetCode)),"Alert")
ENDIF[/code:3disdv52]
------------------------
MAPI error codes
SUCCESS_SUCCESS 0
MAPI_USER_ABORT 1
MAPI_E_FAILURE 2
MAPI_E_LOGIN_FAILURE 3
MAPI_E_DISK_FULL 4
MAPI_E_INSUFFICIENT_MEMORY 5
MAPI_E_ACCESS_DENIED 6
MAPI_E_TOO_MANY_SESSIONS 8
MAPI_E_TOO_MANY_FILES 9
MAPI_E_TOO_MANY_RECIPIENTS 10
MAPI_E_ATTACHMENT_NOT_FOUND 11
MAPI_E_ATTACHMENT_OPEN_FAILURE 12
MAPI_E_ATTACHMENT_WRITE_FAILURE 13
MAPI_E_UNKNOWN_RECIPIENT 14
MAPI_E_BAD_RECIPTYPE 15
MAPI_E_NO_MESSAGES 16
MAPI_E_INVALID_MESSAGE 17
MAPI_E_TEXT_TOO_LARGE 18
MAPI_E_INVALID_SESSION 19
MAPI_E_TYPE_NOT_SUPPORTED 20
MAPI_E_AMBIGUOUS_RECIPIENT 21
MAPI_E_MESSAGE_IN_USE 22
MAPI_E_NETWORK_FAILURE 23
MAPI_E_INVALID_EDITFIELDS 24
MAPI_E_INVALID_RECIPS 25
MAPI_E_NOT_SUPPORTED 26
------------------------------
MAPISEND.EXE is a free program available here:
<!-- w --><a class="postlink" href="http://www.lexacorp.com.pg">www.lexacorp.com.pg</a><!-- w -->
Usage: MAPISEND /A address(s) [/N name(s)][/S subject][/B body][/F filenames(s)][/R][/E]
If name is included it must be give AFTER address. Filenames should include full paths, separate filenames with semi-colon(;)
If /R is included, a Response will be given indicating that a message has been sent.
If /E is included, the Email program will be opened with the Message available for editing. You can pass just /E and get an empy new message dialog.
If you don't use /E the mail is sent automatically and you will probably get a warning dialog from Outlook or OE, that mail is being sent. You can turn this off in OE under Tools-Options-Security; "Warn when other applications send mail as me."
Note: Don't use quotes around the path+filename.
/S - Subject cannot be longer than 23 characters. If so, mail progam doesn't run. Cannot contain slashes either (can use dashes).
This will work under XP (32 bit MAPI). It doesn't provide CC, BC, or return receipt (you can manually add those if you use /E).
Here is an example of how to use it from within FW:
[code:3disdv52]/*
Purpose: Test using MapiSend.exe from inside FW
*/
#include "fivewin.ch"
function main()
local cParams:=""
cParams:= [ /E /A whoever@hotmail.com /S "Invoice" /B "See attached." /F c:\documents and settings\james\my documents\temp\test.html]
// You can use shellexecute()
//SHELLEXECUTE( 0, 0, "mapisend", cParams, 0, 1 )
// You may use waitRun() instead. You will need to if you are mailing a temp file
// and you want to delete it after mailing.
waitRun( "mapisend "+ cParams)
sysrefresh()
msgInfo("")
return nil[/code:3disdv52]--------------------------------- |
problems with email | Antonio,I am afraid your code does not work. It shows OK the destination, subject and body, but not the ATTACHMEND. Did you try it?.Thank you |
problems with email | Moises,You must provide the full path to the attachment. Did you do this?Also, if it has spaces in it, you probably have to use quotes around it.James |
problems with email | James:You were right!!!. I must provide the full path, with letter.But surprilingly, at the second time with wrong path it works!!!.Thank you James for your help!!!.Best regards, |
problems with email | Moises,Glad to hear you got it working. MAPI is a great tool, but it can be a pain.James |
problems with radio and radioitem | Guys ... I'm tweaking some functions and realized that the radio (standing inside a folder, in a dialog works correctly) to choose an option passes twice in the function, and this is causing me slowly to select the records because two processes times the while, is to fix this?
working example:
[code=fw:1lz91ez2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">520</span>,<span style="color: #000000;">820</span> <span style="color: #0000ff;">PIXEL</span><br /> <br /> @ <span style="color: #000000;">000</span>,<span style="color: #000000;">195</span> GROUP <span style="color: #0000ff;">TO</span> <span style="color: #000000;">045</span>,<span style="color: #000000;">335</span> LABEL <span style="color: #ff0000;">"Tipo do Relatório"</span> <span style="color: #0000ff;">PIXEL</span> TRANSPARENT <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">007</span>,<span style="color: #000000;">195</span> <span style="color: #0000ff;">RADIO</span> oTipo <span style="color: #0000ff;">VAR</span> nTipo <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tabela de Preço"</span>, <span style="color: #ff0000;">"Tabela de Promoção"</span>, <span style="color: #ff0000;">"Lista de Compra"</span>, <span style="color: #ff0000;">"Lista de Compra Ideal"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">9</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> Troca<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">007</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Sugestão de Compra"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">016</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Mínimo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">025</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Negativo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /> @ <span style="color: #000000;">034</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Positivo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span><br /> <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:1lz91ez2]
example with problem
[code=fw:1lz91ez2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">520</span>,<span style="color: #000000;">820</span> <span style="color: #0000ff;">PIXEL</span><br /> <br /> @ <span style="color: #000000;">90</span>,<span style="color: #000000;">03</span> <span style="color: #0000ff;">FOLDER</span> oFld <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Produto"</span>,<span style="color: #ff0000;">"&Movimentação"</span>,<span style="color: #ff0000;">"&Valores"</span> ;<br /> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">405</span>,<span style="color: #000000;">208</span><br /> <br /> @ <span style="color: #000000;">000</span>,<span style="color: #000000;">195</span> GROUP <span style="color: #0000ff;">TO</span> <span style="color: #000000;">045</span>,<span style="color: #000000;">335</span> LABEL <span style="color: #ff0000;">"Tipo do Relatório"</span> <span style="color: #0000ff;">PIXEL</span> TRANSPARENT <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">007</span>,<span style="color: #000000;">195</span> <span style="color: #0000ff;">RADIO</span> oTipo <span style="color: #0000ff;">VAR</span> nTipo <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tabela de Preço"</span>, <span style="color: #ff0000;">"Tabela de Promoção"</span>, <span style="color: #ff0000;">"Lista de Compra"</span>, <span style="color: #ff0000;">"Lista de Compra Ideal"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">9</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> Troca<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">007</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Sugestão de Compra"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">016</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Mínimo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">025</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Negativo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">034</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Positivo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span><br /> <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:1lz91ez2]
[code=fw:1lz91ez2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Troca<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />?<span style="color: #ff0000;">"with folder passes twice"</span> + CRLF + <span style="color: #ff0000;">"with dialog passes once"</span><br /><span style="color: #00C800;">RETURN</span><br /> </div>[/code:1lz91ez2]
thank you |
problems with radio and radioitem | Aferra,
I think what you are seeing is that you are changing focus from the folder to the message, then back to the folder. So, it appears to be getting called twice.
I tried the test code below and changed the Troca() function to write to a log file (test.log) each time it is called. It only logs one time.
Also I am not seeing any slowdown--it is very fast.
James
[code=fw:344752s2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />Purpose : Test calling of function by radion buttons<br />Author : Aferra, Modified by James Bott<br />Date : 7/14/2015 3:06:11 PM<br />Language : Fivewin/xHarbour<br />Updated : <br />Notes :<br /><br />*/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oDlg, oFld, nTipo:=<span style="color: #000000;">1</span>, oTipo<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">520</span>,<span style="color: #000000;">820</span> <span style="color: #0000ff;">PIXEL</span><br /> <br /> @ <span style="color: #000000;">90</span>,<span style="color: #000000;">03</span> <span style="color: #0000ff;">FOLDER</span> oFld <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Produto"</span>,<span style="color: #ff0000;">"&Movimentação"</span>,<span style="color: #ff0000;">"&Valores"</span> ;<br /> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">405</span>,<span style="color: #000000;">208</span><br /> <br /> @ <span style="color: #000000;">000</span>,<span style="color: #000000;">195</span> GROUP <span style="color: #0000ff;">TO</span> <span style="color: #000000;">045</span>,<span style="color: #000000;">335</span> LABEL <span style="color: #ff0000;">"Tipo do Relatório"</span> <span style="color: #0000ff;">PIXEL</span> TRANSPARENT <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">007</span>,<span style="color: #000000;">195</span> <span style="color: #0000ff;">RADIO</span> oTipo <span style="color: #0000ff;">VAR</span> nTipo <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tabela de Preço"</span>, <span style="color: #ff0000;">"Tabela de Promoção"</span>, <span style="color: #ff0000;">"Lista de Compra"</span>, <span style="color: #ff0000;">"Lista de Compra Ideal"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">9</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> Troca<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">007</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Sugestão de Compra"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">016</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Mínimo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">025</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Negativo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">034</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Positivo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span><br /> <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">function</span> Troca<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//?"with folder passes twice" + CRLF + "with dialog passes once"</span><br /> logfile<span style="color: #000000;">(</span><span style="color: #ff0000;">"test.log"</span>,<span style="color: #000000;">{</span><span style="color: #ff0000;">"Troca()"</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span></div>[/code:344752s2] |
problems with radio and radioitem | I confirm the problem
[code=fw:sg03mev6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oDlg, oFld, nTipo:=<span style="color: #000000;">1</span>, oTipo<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">520</span>,<span style="color: #000000;">820</span> <span style="color: #0000ff;">PIXEL</span><br /> @ <span style="color: #000000;">90</span>,<span style="color: #000000;">03</span> <span style="color: #0000ff;">FOLDER</span> oFld <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Produto"</span>,<span style="color: #ff0000;">"&Movimentação"</span>,<span style="color: #ff0000;">"&Valores"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">405</span>,<span style="color: #000000;">208</span><br /> @ <span style="color: #000000;">000</span>,<span style="color: #000000;">195</span> GROUP <span style="color: #0000ff;">TO</span> <span style="color: #000000;">045</span>,<span style="color: #000000;">335</span> LABEL <span style="color: #ff0000;">"Tipo do Relatório"</span> <span style="color: #0000ff;">PIXEL</span> TRANSPARENT <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">007</span>,<span style="color: #000000;">195</span> <span style="color: #0000ff;">RADIO</span> oTipo <span style="color: #0000ff;">VAR</span> nTipo <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Tabela de Preço"</span>, <span style="color: #ff0000;">"Tabela de Promoção"</span>, <span style="color: #ff0000;">"Lista de Compra"</span>, ;<br /> <span style="color: #ff0000;">"Lista de Compra Ideal"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">9</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> Troca<span style="color: #000000;">(</span>nTipo<span style="color: #000000;">)</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">007</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Sugestão de Compra"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">016</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Mínimo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">025</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Negativo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> @ <span style="color: #000000;">034</span>,<span style="color: #000000;">265</span> RADIOITEM <span style="color: #ff0000;">"Estoque Positivo"</span> RADIOMENU oTipo <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">08</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">function</span> Troca<span style="color: #000000;">(</span>nTipo<span style="color: #000000;">)</span><br /> logfile<span style="color: #000000;">(</span><span style="color: #ff0000;">"test.log"</span>,<span style="color: #000000;">{</span>str<span style="color: #000000;">(</span>nTipo<span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:sg03mev6]
3 line-down gives:
07/14/15 22:18:09: 2
07/14/15 22:18:09: 2
07/14/15 22:18:10: 3
07/14/15 22:18:10: 3
07/14/15 22:18:10: 4
07/14/15 22:18:10: 4
<!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> Euclides |
problems with radio and radioitem | I tried it too,
Here the stacks: the top one is without the folder, the bottom two are with the folder.
[img:9zt8z0nn]http://i.imgur.com/0olvFKd.png[/img:9zt8z0nn]
here TRadMenu:Refresh():
[code=fw:9zt8z0nn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TRadMenu<br /><br /> <span style="color: #00C800;">local</span> nOption := Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bSetGet</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> nAt := AScan<span style="color: #000000;">(</span> ::<span style="color: #000000;">aItems</span>, <span style="color: #000000;">{</span> | oRadio | <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oRadio != <span style="color: #00C800;">nil</span>, oRadio:<span style="color: #000000;">lIsChecked</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, .f. <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DEFAULT</span> nOption := <span style="color: #000000;">1</span><br /><br /> <span style="color: #00C800;">if</span> nAt != nOption .and. nAt <= Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aItems</span> <span style="color: #000000;">)</span> .and. Len<span style="color: #000000;">(</span> ::<span style="color: #000000;">aItems</span> <span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">if</span> nAt != <span style="color: #000000;">0</span><br /> ::<span style="color: #000000;">aItems</span><span style="color: #000000;">[</span> nAt <span style="color: #000000;">]</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> .f. <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">aItems</span><span style="color: #000000;">[</span> nOption <span style="color: #000000;">]</span> != <span style="color: #00C800;">nil</span><br /> ::<span style="color: #000000;">aItems</span><span style="color: #000000;">[</span> nOption <span style="color: #000000;">]</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> .t. <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bChange</span> != <span style="color: #00C800;">nil</span><br /> Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bChange</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:9zt8z0nn]
looks like in the case with folder, the click is called before than lIsCheckd returns true so nAt is not the new nOption, <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
problems with radio and radioitem | Euclides,
I just tested your example with FWH 15.05 and I get this in the test.log:
07/15/15 13:55:39: 2
07/15/15 13:55:42: 3
07/15/15 13:55:48: 4
Antonino,
Are you testing Euclides example ? |
problems with radio and radioitem | I thank all the answers.
Antonio, You suggest that update refresh the radio? |
problems with radio and radioitem | I simply tested Euclides example and it worked fine with FWH 15.05
Is there any other example that you would like me to test ? |
problems with radio and radioitem | well, I moved the test to logfile () and believe me, this passing only once, now put this structure gives the error.
example
aArray: = {}
while eof ()
AADD (aArray ....)
skip
ENDDO
if I comment this line aArray: = {} my array doubles the data, I am confused now. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
problems with radio and radioitem | I found the problem.
after while ... ENDDO have a msgyesno (), taking this msg () does not happen the problem, the logfiile shows only once passing within the function.
what to do? |
problems with radio and radioitem | Before calling:
msgyesno()
Try this:
oDlg:Disable()
and after the msgyesno():
oDlg:Enable() |
problems with radio and radioitem | YES,
It worked perfectly, was already thinking about changing the screen to get the result, but now everything in order and with a simple solution ...
thank you Antonio |
probloemas mdi | Amigos, tengo el siguiente problema, trabajo con una venana mdi, y esta funciona bien cuando la llamo, aparece centrada en la pantall y sin problema en los bordes, pero cuando la miniminizo (achico), me muestra el boton azul de la ventana abajo, tipo word o excel, hasta ahi todo bien, peroooo cuando pincho este boton para que vuelva a colocarse en el centro, como al principio, nadaaaaaaaaa, se va al costado superior izquierdo de la pantalla y se desaparece la linea azul del dialogo,,,
que estara pasando FW2.2, blinkr 5,.0, clip 5.3e, WS 4.0
DEFINE WINDOW oWndBrw TITLE "MODULO DE VENTA " MDICHILD FROM 03,5 TO 50,115
oWndBrw:bgotfocus:={||oDlgEdit1:Setfocus()}
DEFINE DIALOG oDlgEdit1 RESOURCE "FVENTA" TITLE "PUNTO DE VENTA " OF oWndBrw
ACTIVATE DIALOG oDlgEdit1 NoWait on init oDlgEdit1:move(0,0) VALID (oWndBrw:End())
ACTIVATE WINDOW oWndBrw ;
ON INIT oWndBrw:SetSize( oDlgedit1:nWidth, oDlgedit1:nHeight ) |
procedure AppSys // XBase++ requirement | What is the purpose of the following code. I have found it in most of the samples in FWHprocedure AppSys // XBase++ requirementAnser |
procedure AppSys // XBase++ requirement | It is a source code required for the Xbase++ compiler and FW++.It does nothing and it is not needed for FWH. |
procedure AppSys // XBase++ requirement | [quote="Antonio Linares":2wqcobcq]It is a source code required for the Xbase++ compiler and FW++.
It does nothing and it is not needed for FWH.[/quote:2wqcobcq]Thank you for the info |
processor TI's OMAP? 850 201 MHZ | hi, fwppc works with processor above?? whats device is good for fwppc? some smartphone works?? thanks |
processor TI's OMAP? 850 201 MHZ | We don't know it for sure. If they are Intel XScale compatible then FWPPC will work fine on them.
The same applies for SmartPhones. If they are Intel XScale compatible (ARM architecture) then they are ok for FWPPC |
processor TI's OMAP? 850 201 MHZ | Antonio, where i found an list of compatible devices, i am buying an smartphone and i dont know an compatible, someone user has one? |
processor TI's OMAP? 850 201 MHZ | Norberto,
Sorry, we don't have a hardware compatibility list yet. Try to locate an Intel XScale processor compatible one. |
processor TI's OMAP? 850 201 MHZ | Antonio, this:
<!-- m --><a class="postlink" href="http://www.directinsight.co.uk/microcontroller/arm-devices.html">http://www.directinsight.co.uk/microcon ... vices.html</a><!-- m -->
is right?
i guess this list very important to us... fwppc developers.
Norberto |
processor TI's OMAP? 850 201 MHZ | or <!-- m --><a class="postlink" href="http://www.calculator.org/devices.html">http://www.calculator.org/devices.html</a><!-- m --> is best??
norberto |
processor TI's OMAP? 850 201 MHZ | Norberto,
Yes, both are fine, as FWPPC uses ARM architecture. Please notice that on the second list there are some that aren't ARM |
program buffer or a keyboard buffer | Hello,
I try to find out how I can read a keyboard buffer.
This is what I found so far. Can someone help me to with a fivewin solution.
[quote:q3xg8ofw]so if there is a command line and there is a text in it and waiting for an 'enter' to be pressed in which buffer does it stay?,in a program buffer or a keyboard buffer?
It depends on the platform, but for example on a .NET console app running on Windows, if you call Console.ReadLine() while the app has focus it is going to receive the keyboard input and store it in an application level buffer. The only time it would stay at a lower level buffer is if the system is too busy to process the input in time. At this level 'buffering' is really just a semantic concept; the system is basically at rest, the input has been processed, transformed into a UTF-8 string and stored in memory waiting to be returned to your program when the enter key is detected.
[/quote:q3xg8ofw]
Best regards,
Otto |
program buffer or a keyboard buffer | Hello,
I try to find out how I can read a keyboard buffer.
This is what I found so far. Can someone help me to with a fivewin solution.
so if there is a command line and there is a text in it and waiting for an 'enter' to be pressed in which buffer does it stay?,in a program buffer or a keyboard buffer?
It depends on the platform, but for example on a .NET console app running on Windows, if you call Console.ReadLine() while the app has focus it is going to receive the keyboard input and store it in an application level buffer. The only time it would stay at a lower level buffer is if the system is too busy to process the input in time. At this level 'buffering' is really just a semantic concept; the system is basically at rest, the input has been processed, transformed into a UTF-8 string and stored in memory waiting to be returned to your program when the enter key is detected.
Best regards,
OttoUser avatar
Otto Posts: 2972Joined: Fri Oct 07, 2005 7:07 pm |
program buffer or a keyboard buffer | Hi Otto,
Please explain what you are trying to accomplish. Maybe that would help with an answer.
James |
program buffer or a keyboard buffer | Hello James,
I have a panel with some buttons in it.
The data I want to read comes from a keylock which is writing into the keyboard buffer.
Now when I press a key I would like to read the data.
Thanks in advance
Otto |
program buffer or a keyboard buffer | Otto,
Well I expect there is a windows API for this, but I don't know it.
Here is another idea though. Create an invisible GET. Send a ENTER key or TAB key to it, then read the data in the GET. The ENTER or TAB key may send the keyboard buffer into the GET.
James |
program buffer or a keyboard buffer | Hello James,
This is exactly what I tried this afternoon.
But it is not working properly. I will go on tomorrow.
Thank you for your help.
Best regards,
Otto
[code=fw:17cyvzqh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oDlg, oGet, oSay<br /> <span style="color: #00C800;">LOCAL</span> cCad := Space<span style="color: #000000;">(</span><span style="color: #000000;">200</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> csay := <span style="color: #ff0000;">"test"</span><br /> <span style="color: #00C800;">LOCAL</span> nNum := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">LOCAL</span> dDat := Date<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> cTest :=<span style="color: #ff0000;">""</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TGet from "</span> + FWDESCRIPTION<br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span> ;<br /> <span style="color: #0000ff;">SAY</span> oSay ;<br /> <span style="color: #0000ff;">PROMPT</span> csay ;<br /> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">1</span>,<span style="color: #000000;">6</span> ;<br /> <span style="color: #0000ff;">GET</span> oGet ;<br /> <span style="color: #0000ff;">VAR</span> cCad ;<br /> <span style="color: #0000ff;">OF</span> oDlg ;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">(</span> cTest := mgetline<span style="color: #000000;">(</span>oget:<span style="color: #000000;">hwnd</span><span style="color: #000000;">)</span> , iif<span style="color: #000000;">(</span> <span style="color: #0000ff;">right</span><span style="color: #000000;">(</span> cTest, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> = <span style="color: #ff0000;">"out"</span>, logfile<span style="color: #000000;">(</span><span style="color: #ff0000;">"test.log"</span>,<span style="color: #000000;">{</span> cTest<span style="color: #000000;">}</span><span style="color: #000000;">)</span> , <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>;<br /> <span style="color: #B900B9;">// , msginfo(cTest),msginfo(cTest) ) )</span><br /> <span style="color: #B900B9;">//ON CHANGE ( iif( right(cCad,3) = "1", msginfo(cCad), ) )</span><br /> <span style="color: #B900B9;">//ON CHANGE ( msginfo(right(oGet:cText,3)),iif( right(cCad,3) = "OUT", (msginfo( procname() + " " + str(procline()) + " " + str( 1 ) ),csay := cCad, cCad := space(200) ,oSay:refresh()), ) )</span><br /><br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />logfile<span style="color: #000000;">(</span><span style="color: #ff0000;">"test.log"</span>,<span style="color: #000000;">{</span> cTest<span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /> </div>[/code:17cyvzqh] |
program buffer or a keyboard buffer | Otto,
OK, we are thinking along the same lines, but you can't use bChange. I think you need to create the GET, set focus to it, then push a key to the keyboard buffer via program code like:
__keyboard( VK_RETURN )
This should empty the keyboard buffer into the GET buffer. Now read the GET buffer and you should have what was in the keyboard buffer.
You could do all this inside a function which is triggered by a button press. Then just return the result to the program and process it.
James |
program buffer or a keyboard buffer | I found a reference to a C++ program that read the keyboard buffer.
<!-- m --><a class="postlink" href="http://programmersheaven.com/discussion/222659/reading-keyboard-buffer">http://programmersheaven.com/discussion ... ard-buffer</a><!-- m -->
Maybe one of the C programmers here could show us how to use it. Or, maybe there is already such a function in (x)Harbour?
James |
program buffer or a keyboard buffer | Dear James,
I am posting here a screenshot for better understanding what I want to do.
I have to change the keylock type from USB (COM) to a keyboard type.
The reason is that we work all our software remotely. This way I can support all different operating systems.
But we have no USB drivers for WINDOWS RT and also ANDROID is not well supported by the keylock type we use.
If you put a key into the lock a number is written into the keyboard buffer if you pull out the key “Out” is written into the buffer.
Now I thought to store the value in a global variable. So if you press the button “Bonieren” or “Abrechnen” which is register and bill then we read the global variable. If there is a valid code in it we bill the waiter if there is “Out” we say “please insert a key”.
BTW, this is still the application where you help me to develop class design.
Now I have to change the ECR-class.
Thank you again and best regards,
Otto
[img:1lshvq00]http://www.atzwanger-software.com/fw/ECR20150206.jpg[/img:1lshvq00] |
program buffer or a keyboard buffer | James,
[quote="James Bott":1f8mzzgw]I found a reference to a C++ program that read the keyboard buffer.
<!-- m --><a class="postlink" href="http://programmersheaven.com/discussion/222659/reading-keyboard-buffer">http://programmersheaven.com/discussion ... ard-buffer</a><!-- m -->
Maybe one of the C programmers here could show us how to use it. Or, maybe there is already such a function in (x)Harbour?[/quote:1f8mzzgw]
It's a DOS program, you can't use it on Windows, I'm afraid.
EMG |
program buffer or a keyboard buffer | Mr Otto
Can you clarify if I understood this correctly?
1) There is one Windows PC to which a KeyLock COM device is connected. If a key is inserted the device places a number in the keyborad buffor or if the key is pulled out "Out" is placed in the keybpard buffer of that Windows PC.
2) The Application (image you posted) is run from mobiles with Windows RT OS or Android OS through Remote Desktop. In other words, this application physically resides on one Windows Server and is executed by the mobile devices remotely.
3) The Windows Server (in para-2) hosting the application and the WindowsPC (in par-1) with the keylock COM device can physically be the same computer or diferent computers on the network.
4) Now the Application the mobile devices are running should know what is the latest status of the keylock when the user presses "Register" or "Bill" ( “Bonieren” or “Abrechnen” ) and act on the basis of the latest status of the keylock.
Is this understanding correct?
If this is correct, this can be a solution:
We can have an application continuously running on the PC with COM device which continuously polls the keyboard events and keeps writing the latest even (number or 'out') at a specified place on the disk.
The Application run remotely by the mobiles is actually run on the Server which has access and can read this data when the user presses the buttons and respond accordingly. |
program buffer or a keyboard buffer | Dear Mr. Rao,
Thank you for your help.
The keylock is connected to each client PC and detected as a keyboard.
As I found no way to clear the buffer I am trying now with
oGet:KeyDown(VK_HOME)
oGet:KeyDown(VK_DELETE).
Maybe I can resolve my problem this way.
Best regards,
Otto |
program buffer or a keyboard buffer | Otto,
keyboard pressed chars will automatically arrive to the app as Windows messages, so there is no need to access the keyboard buffer.
In case that you want to check in advanced (before those messages come to you) what is there is the buffer you can use PeekMessage()
[url:1bs7o7wi]https://msdn.microsoft.com/en-us/library/windows/desktop/ms644943%28v=vs.85%29.aspx[/url:1bs7o7wi] |
program idle time | i want that my program should be closed if the user has not used it for say one hour. how do i know for how much time my program is idle. (without any event). |
program is too much for memory | hi at all,
I'm trying xHarbour + fivewin 6.12.when compile everything is ok, but when lanch the executable program gives me an error message "the program is too large for memory. ". compiling other sample programs, everything works without error. if i compiling the program with harbour + fivewin 6.12 it's ok. Someone have any idea? thanks all for reply
S.B. |
program is too much for memory | It looks like a linker error when linking the xHarbour libraries, try to use a more recent xHarbour version |
program is too much for memory | thanks for reply antonio,
i have already use a more recent xharbour version,but i have an error like "pcode" version is holder than version of xharbour. when i try to compile other program with fhw + xharbour is all ok,and program start. specifically in this program i must to test the velocity,writing 10.000 row in one Database.with harbour and fivewin program start correctly,while fhw + xharbour give me this error,but compil and link is ok .How can i fix it? |
program very slow in LAN with 2 users | Good afternoon:
We run the program from a shared folder on the server, for example \\ server \ app \ app.exe.
Server and workstations are Windows 7, all wired.
When just running from a single workstation, everything works perfect, but when a second pc is connected RDDdbfcdx operations and xbrowses are very slow, it is impossible to work.
DBFs are small, < 5000 records. No filters. LAN wired 100 Mbps.
Also, *.dbf, *.cdx and *.ftp are excluded in Karperski Antivirus from analysis.
Any clue please ?.
Thank you very much. |
program very slow in LAN with 2 users | joseluispalma
If I recall .. this is a opportunistic locking problem .. Please review this link ..
Rick Lipkin
<!-- m --><a class="postlink" href="http://www.dataaccess.com/whitepapers/opportunlockingreadcaching.html#Disabling_Opportunistic_Locking_on_SMB2">http://www.dataaccess.com/whitepapers/o ... ng_on_SMB2</a><!-- m --> |
program very slow in LAN with 2 users | Hello Rick,
OS_NetRegOK( .t.) will fix it?.
Thank you. Best regards |
program very slow in LAN with 2 users | Hello,
Paco Garcia and other users reported this problem too:
<!-- m --><a class="postlink" href="https://groups.google.com/forum/#!topic/harbour-users/fUjum_dSEIo">https://groups.google.com/forum/#!topic ... Ujum_dSEIo</a><!-- m -->
But no solution was ever posted.
I will very much appreciate any clue.
Thank you. |
program very slow in LAN with 2 users | hola:
hace mucho tiempo, instale en un server 2003, un sistema en DBF, todo bien, hasta que se conectaba el 2° pc al sistema, se me ralentizaba demasiado, revisando el código las instrucciones de bloqueo de archivos para hacer los ingresos, modificaciones o eliminaciones, utilizaba la clausula FLOCK(), "bloqueo de archivo" , las reemplace por las RLOCK(),"bloqueo de registro", saque en todas partes la clausula COMMIT, (aquí era el real problema), y los filtros los reemplace por archivos indexados en partes según el filtro que necesitaba con la clausula "INDEX ON... WHILE ..."
ademas ajustando parámetros en los archivos config.sys, FILES=255, BUFFERS=250,4 (no recuerdo bien pero era algo así)
también hay que hacer unos ajustes de configuración en el mismo server, para que arranque con los mismos parametros que le colocas a las estaciones de trabajo
mira esto es lo que recuerdo, asumo de que el sistema es DBF completo, fue la única forma que logre que funcionara de una forma correcta, (no fue full pero me ayudo mucho)
con el tiempo traspase el sistema a MySQL y se acabaron los problemas de velocidad.
No se si te sirva pero no esta de mas mencionarlo.
Saludos |
program very slow in LAN with 2 users | Hi José Luis,
[quote="joseluispalma":5oc9gd8t]Hello Rick,
OS_NetRegOK( .t.) will fix it?.
[/quote:5oc9gd8t]
IMHO Rick put you in the right track. And, if Rick is right, the function could be the solution. The only point I see is that this function changes the registry, so you need administrative rights to run it.
Please try it and see what happens. After running take a look at the registry and check if the values have changed. I always thought that a reboot is needed after the registry changes to take effect, so keep in mind that.
Have you tried sth else?
Regards |
program very slow in LAN with 2 users | Hello,
OS_NetRegOK( .t.) with Admin rights and rebooting the PC and servers does not work.
We have to test this solution, shared in the spanish fórum:
[quote:10qjkhkr]Lo siguiente se tiene que hacer en cada uno de los clientes con W7 afectados
Primero desactivé la Compresión Diferencial Remota en:
Panel de Control-->Programas y Caraterísticas-->Activar o Desactivar las características de Windows
Se abrirá una nueva ventana y localizamos Compresión Diferencial Remota , la desactivamos y Aceptamos.
Una vez hecho esto, vamos a modificar el autotiming de la tarjeta de red, que según he leido por ahí, por defecto viene como Normal y había que Desactivarlo, pero a mí, así me fue incluso peor, lo que hice fue ponerlo así desde la consola de comandos:
netsh interface tcp set global autotuninglevel=highlyrestricted
Reinicé la máquina, sin mucha fe ni esperanza, ya que estaba ya harto de probar historias y ninguna funcionar y... voilà, la cosa empezó a ir rapidita, funcionaba bien el tema, he dejado pasar unos 4-5 días y de momento sigue funcionando todo correcto y ninguna queja, así que me he puesto a escribir esto por si alguien tiene problemas similares espero que le sirva de algo.
[/quote:10qjkhkr] |
programa FW en pendrive ? | Amigos:
Es posible hacer funcionar un programa en FW 16 bits
en un pendrive?
Saludos.
Gracias
Ruben Fernandez. |
programa FW en pendrive ? | Si, perfectamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
programa FW en pendrive ? | Gracias Antonio
Saludos
Ruben Fernandez. |
programa FWM funcionando en 10.11 | Los programas que tenia fwM compilados para Yosemite siguen funcionando aparentemente en la beta de Macosx 10.11 "El Capitan" .
Me falta comprobar que la creación de las librerias de FHM funciona con el framework de 10.11 y xcode-beta 7 .
A nivel interno han "depreciado" el uso del recolector de basura de objective-c y no se hasta que punto puede afectar a fwM . En principio no debería ya que harbour usa su propio recolector pero puede que existan llamadas a objetos que no se liberen adecuadamente.
Seguiré informando ....
[img:1niu1ezk]http://i62.tinypic.com/2u3vamg.png[/img:1niu1ezk] |
programa FWM funcionando en 10.11 | Manuel,
Muchas gracias por tu información, siempre valiosa <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Que tal funciona esta nueva versión de OSX ?
Para mi Yosemite es más lenta que Leopard, pero como Apple obliga a actualizar, no queda otra.
Ese sea tal vez el problema de Microsoft, que no puede obligar a actualizar a sus usuarios. |
programa FWM funcionando en 10.11 | No podría decirte exactamente. No va mal, va algo mas lento que yosemite pero no es comparable ...
1.- es una Beta que aunque no falla seguro que la refinan.
2.- La tengo instalada en un disco mecánico externo conectado por usb2, mientras que yosemite esta en un disco interno de memoria y literalmente vuela ...
Por lo demas , a pesar de ser en un disco externo , es usable .
Me gustan las cosas que han puesto nuevas , nada del otro mundo pero funcionan. Han dado marcha atras en el protocolo wifi y volvieron al antiguo que no daba problemas .
sigo investigando .... |
programa FWM funcionando en 10.11 | Tengo mas noticias ....
He instalado el xcode-beta 7 y recompilado las librerías fwM completamente con el nuevo framework 10.11 ...
compilan , eso si, me suelta la friolera de 60 warnings sobretodo por deprecated (funciones variadas y desechadas por macosx ) que tendremos que revisar.
He generado uno de los ejemplos con las nuevas librerías y funciona sin problemas .
Eso si con el ejemplo aunque funciona perfectamente la pantalla completa ( ya estaba implementado ) no permite usar el programa a pantalla partida .
Buenas noticias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
programa FWM funcionando en 10.11 | Hoy se ha actualizado capitan a la beta 2 ....
La verdad que tengo pocas cosas instaladas pero funciona desde un viejo disco duro externo mediante usb 2 y me tiene impresionado , la mejora desde la beta 1 es impresionante , algo han activado que hace que mejore mucho . Una vez ha arrancado , no tiene nada que envidiar al yosemite instalado internamente en un SSD . Siguo informando . |
programa FWM funcionando en 10.11 | Manuel,
muchas gracias por tu valiosa información <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
programa autoactualizable | Hola:
Quiero añadir una funcionalidad a mis programas que permitan autoactualizarse via internet. Esto es, añadir una opción de menú para que el programa se conecte a un servidor web, y si hay alguna versión posterior del programa que se actualice. Tengo claro que lo primero es establecer una conexión via FTP con el sitio web, luego descargar el programa, pero no se como hacer el cambio de un ejecutable por otro.
Me gustaría saber si alguien ha hecho algo así.
Saludos, |
programa autoactualizable | <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=3548&highlight=">http://fivetechsoft.com/forums/viewtopi ... highlight=</a><!-- m --> |
programa autoactualizable | [quote="José Luis Sánchez":2fvmhw80]Hola:
Quiero añadir una funcionalidad a mis programas que permitan autoactualizarse via internet. Esto es, añadir una opción de menú para que el programa se conecte a un servidor web, y si hay alguna versión posterior del programa que se actualice. Tengo claro que lo primero es establecer una conexión via FTP con el sitio web, luego descargar el programa, pero no se como hacer el cambio de un ejecutable por otro.
Me gustaría saber si alguien ha hecho algo así.
Saludos,[/quote:2fvmhw80]
Yo lo que hago usar la clase TURL incluida con xHarbour, funciona estupendamente para este tipo de casos:
Esta es la mecanica:
1) descargo de internet un fichero .INI que tengo puesto en la web, ese fichero .INI contiene en una de las entradas la ultima version del software:
oUrl := tURL():New("http://www.google.d2g.com/curver.inil" )
oClient := tIPClient():New( oUrl )
IF oClient:Open( oUrl )
oClient:ReadToFile( cIniFile2 )
oClient:Close()
ENDIF
Esto se puede hacer nada mas comenzar el programa.
2) Se comparan las versiones del programa, y si hay una version nueva, puedes volver a utilizar la clase TURL para descargarla via http, o bien utilizar un FTP para descargar, en mi caso lo hago via FTP con el componente Funcky FTP
3) Yo aconsejo que el programa "descargador" sea un EXE independiente de tu programa principal el cual puedes ejecutar con algo como esto:
IF MsgYesNO("hay una nueva version disponbile del programa, desea actualizar ?)
WINEXEC("decarga.exe")
ENDIF
4) Dentro de Descarga.EXE sigue el proceso que indica Antonio para "matar" el progrma original antes de descargar la actualizacion. |
programa autoactualizable | Gracias a los dos. Voy a ir probando lo que me decis.
Saludos, |
programa colgado en memoria | Gracias antonio,
revisando cuando acceso al sistema le memoria esta en 12,000 kb aprox. con 110 handles y 250 gdi, conforme trabajo aumenta la memoria a 30,000 kb con 120 handles y hasta 530 gdi y conforme cierro procesos los gdi bajan hasta 350 pero ya no en los originales y la memoria ya no baja sino hasta 29,000 kb, es esto normal? se supone que todas las font, brush, print, bitmaps, querys todo los finalizo con end() y algunos con deleteobject()
se me paso comentar que el programa se queda en procesos (memoira) cuando lo finalizo, durante la operacion no me da problemas...
gracias
paco |
programa colgado en memoria | hola foro,
pues tengo un gran problema,
desde hace 1 semana aproximadamente y de ahi en adelante, despues de hacer varios cambios al sistema, detecte que mi .exe se queda en memoria (procesos) colgado como de 5 a 15 segundos, cosa que antes no hacia y lo peor, de pronto me empezo a enviar al cerrar el programa este error y no se de que es, adjunto imagen
[url=http://imageshack.us/photo/my-images/338/xhbt.jpg/:3vd3ko7y][img:3vd3ko7y]http://img338.imageshack.us/img338/84/xhbt.th.jpg[/img:3vd3ko7y][/url:3vd3ko7y]
no he cambiado de version de sistema operativo windows, no he cambiado de version ni actualizado nada del software que uso para el desarrollo, fwh1103, xharbour, tmysql y las lib de mysql, ni version de mysql..... bajo windows 7 pro
unicamente cambios a mis .prg y recompilar...
alguna pista???
gracias
paco |
programa colgado en memoria | Paco,
Mantén abierto el administrador de tareas de Windows y selecciona desde su menú el ver la memoria que consume tu aplicación y observa si va consumiendo más y más, pudiera ser eso llegando a un punto en que se cae la aplicación |
programa colgado en memoria | Tambien puedes monitorizar los objetos GDI usados y los handles abiertos:
[img:o1e13atp]http://img689.imageshack.us/img689/4792/captureyfy.png[/img:o1e13atp] |
programa colgado en memoria | Si los valores se estabilizan no hay problema, el problema viene cuando no paran de crecer. Observalo... |
programa colgado en memoria | asi es Antonio, parece que se estabilizan en cierto punto, pero me di cuenta de una cosa por la noche se me colgo hasta para el inicio y cheque con el administrador de tareas y la memoria estaba en 540,000 kb, se me hizo raro que de pronto de estar trabajando de 28000 a 30000 kb subiera tanto, dentro del sistema actualizo un archivo .log para guardar ciertos movimientos del sistema, entonces ese archivo estaba con menos de 2mb, pero al revisarlo cuando se me colgo el sistema estaba en 191mb, entonces llego a la conclusion que por ahi puede estar el problema,
si ese archivo .log se me hace muy grande se cuelga mucho el sistema, aqui el detalle es que no detecte en que momento crecio casi 190mb,
uff muchisisisimo
alguna sugerencia?
gracias
paco |
programa colgado en memoria | Paco,
Que contiene ese archivo log ?
Lo mantienes en memoría hasta que finalmente lo grabas en disco ?
Prueba a ir grabándolo a disco, conforme se genera, para asi saber que es lo que está ocurriendo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
programa colgado en memoria | Antonio,
el el Main.prg tengo esto:
LOCAL cErrText := "", cErrOld := MemoRead("Cambios.log")
luego cuando accesan al sistema hago esto:
cErrText := ""
cErrText += Replicate("*",50) + CRLF
cErrText += "ACCESO AL SISTEMA" + CRLF
cErrText += "Fecha : "+Dtoc(FechaServer())+Space(18)+"Hora: "+Time() + CRLF
cErrText += "==> Usuario : (" + oApp:cIdUsuario + ") - " + oApp:cIniciales + " - " + ALLTRIM(oApp:cUsuario) + CRLF
cErrText += "==> Nivel : " + oApp:cNivel + CRLF
cErrText += Replicate("-",50) + CRLF + CRLF
cErrText += cErrOld
MemoWrit("Cambios.log",cErrText)
como se si el cambio.log se queda en memoria?
y cuando salen del sistema:
cErrText := ""
cErrOld := MemoRead("Cambios.log")
cErrText += Replicate("*",50) + CRLF
cErrText += "SALIDA DEL SISTEMA" + CRLF
cErrText += "Fecha : "+Dtoc(FechaServer())+Space(18)+"Hora: "+Time() + CRLF
cErrText += "==> Usuario : (" + oApp:cIdUsuario + ") - " + oApp:cIniciales + " - " + ALLTRIM(oApp:cUsuario) + CRLF
cErrText += "==> Nivel : " + oApp:cNivel + CRLF
cErrText += Replicate("-",50) + CRLF + CRLF
cErrText += cErrOld
MemoWrit("Cambios.log",cErrText)
gracias
paco
p.d. estoy pensando en guardar el registro de los movimientos en una tabla y olvidar este proceso del archivo .log |
programa colgado en memoria | El problema esta en la salida del programa en este codigo:
cErrOld := MemoRead("Cambios.log")
La variable cErrOld se carga con muchas mb. de datos.
Hacerlo de forma mas adecuada, sin necesidad de cargar en una variable el contenido de Cambios.Log, seria asi:
.................
.................
hCambios:= FOpen("Cambios.Log")
FWrite(hCambios, cErrText)
FClose(hCambios) |
programa colgado en memoria | Paco,
Si, usar una DBF te permitiría poder hacer login de todo lo que el usuario haga, procesos, etc. Es una muy buena idea <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
hmpaquito, no hay problema por usar MemoRead(), basta con hacer la variable a nil y la memoria usada se liberará <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
programa colgado en memoria | Paco,
La primera comprobación a hacer y que no te he comentado es controlar el consumo de objetos GDI (fonts, bitmaps, brushes, etc.), puesto que un consumo incorrecto de objetos GDI puede acabar tirando una aplicación. Para ello lo primero que debes hacer es llamar a esta función al inicio de tu aplicación:
SetResDebug( .T. )
y justo antes de salir de tu aplicación llamar a:
CheckRes()
esto te generará un fichero checkres.txt en donde te aparecen los objetos GDI que no se han destruido ( llamando al método :End()) correctamente en tu aplicación, ó porque sea un error de programación en alguna clase, etc. Por favor haz esto y muestra aqui su contenido |
programa colgado en memoria | Antonio,
Es cierto que no debe haber problema en cargar una variable string con muchas mbs. desde un memoread().
Pero en lo que yo pensaba es que ese memoread() más la siguiente concatenación de una string ENORME se produce en un momento "delicado" del programa: al salir del mismo.
¿ Qué puede pasar si se le manda el PostQuitMessage() a la aplicación, y justo en ese momento la aplicación empieza a hacer el memoread() que es de muchas mbs. más además la concatenación a la cadena obtenida que es enorme ? Pues me imagino que lo que está pasando: mucho tiempo de proceso y la aplicación termina como ventana pero en cambio se queda "pillada" leyendo el memoread() y concatenando; ya a partir de ahí el comportamiento, que quede abierta como tarea, es totalmente incontrolado. Esa es mi teoría.
Saludos |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.