topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
evaluar algo de harbour en c. | [quote:zz1gsqfr]/*
static PHB_SYMB pSymbol = NULL;
if( ! pSymbol )
pSymbol = hb_dynsymSymbol( hb_dynsymGet( "OBTNEVENTS" ) );
if( pSymbol )
{
hb_vmPushSymbol( pSymbol );
hb_vmPushNil();
hb_vmPushNumInt( ( LONG_PTR ) hButton );
hb_vmPushLong( Msg );
hb_vmPushNumInt( wParam );
... |
evaluar algo de harbour en c. | muy bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
evaluar algo de harbour en c. | Antonio, este código en raras ocaciones que funciona, y luego ni ejecutando el exe funciona.
de pronto funciona y falla nuevamente.
este callback es llamado cada 300 milisegundos aproximadamente por vlc internamente. es esto un problema?
[code=fw:ie7qtbty]<div class="fw" id="{CB}" style="font-family: monospace;"><br />... |
evaluar algo de harbour en c. | Application Internal Error - d:\myplayer\myplayer.exe
Terminated at: 2018-12-07 13:14:03
Error irrecuperable 9015: S¡mbolo item esperado desde hb_vmDo()
Called from WINRUN(0)
Called from TWINDOW:ACTIVATE(1052) in .\source\classes\WINDOW.PRG
Called from MAIN(54) in source\myplayer.prg
-----------------------------------... |
evaluar algo de harbour en c. | esto funciona bien, no hay cuelge.
En el viewdegung se muestra la información sin problema:
[code=fw:14buo9g7]<div class="fw" id="{CB}" style="font-family: monospace;">void vlc_mycallback<span style="color: #000000;">(</span> const libvlc_event_t *event, void *param <span style="color: #000000;">)</span><br />... |
evaluar algo de harbour en c. | itentando cambiar la cosa por un codeblock.
sin la llamada a hb_evalBlock0 funciona y muestra la informacion de depuración
<!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
[code=fw:12ccnguv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ::<span style="color: ... |
evaluar algo de harbour en c. | De momento funcionando ok con este código:
[code=fw:2875qura]<div class="fw" id="{CB}" style="font-family: monospace;"><br />PROCEDURE VLC_MYEVENT<span style="color: #000000;">(</span> uParam <span style="color: #000000;">)</span><br /> Debug<span style="color: #000000;">(</span> <span style="color: #ff00... |
evaluate some harbor in c. | I have a class called tvlc, which has a data called bOnEvent of type codeblock
that codeblock I need to pass it to c and evaluate its content.
I am very confused with this since it exceeds my little knowledge in c.
this is what I have the api de vlc, has an event manager, which should be indicated that
do under certai... |
evaluate some harbor in c. | I did it some weeks ago:
for the EMF, in harbour I have:
[code=fw:947of8r1]<div class="fw" id="{CB}" style="font-family: monospace;">EnumEnhMetaFile<span style="color: #000000;">(</span>hDC,hMeta,<span style="color: #000000;">{</span>|pDC,pTable,pRECORD| MyCB<span style="color: #000000;">(</span>pdf,pTable... |
even numbers and odd numbers | is there a function to check if a number is even or odd?
thanks |
even numbers and odd numbers | [code=fw:l44u3tbq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> IsEvenNumber<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">(</span> ... |
even numbers and odd numbers | [quote="nageswaragunupudi":2pcltwv0][code=fw:2pcltwv0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> IsEvenNumber<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span s... |
even numbers and odd numbers | As old school programmer
[code=fw:tzyctbc0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> IsEvenNumber<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> <span style="color: #000... |
event Refresh() | Hi,
Is it possible to handle the event when executing the Refresh() method ? |
event Refresh() | Please provide an example PRG |
event Refresh() | Dear Yuri,
What event ?
FWH SysRefresh() will process events as they arrive |
event Refresh() | To update the window, I execute its Refresh() method (i.e. an event occurs)
I need to handle this event through a block of code |
evento VALID en un dialogo | Hola foro, tengo un pequeño problema que ya no se por donde buscarle, tengo un programa donde abro 2 dbf con sus alias abro el dialog, lo defino y al pulsar click en el boton de salida sale bien, pero al pulsar ESC me truena, esto nomas me sucede con xharbour con harbour jala bien, alguna sugerencia?
pongo un trozo del... |
evento VALID en un dialogo | Francisco,
Llama a la función Sale() después del ACTIVATE. Posiblemente se este haciendo un repintado de la caja de diálogo y se intenta usar la DBF:
ACTIVATE DIALOG oDlg VALID ...
Sale( ... ) |
evento VALID en un dialogo | Gracias Antonio, no fijate que no se corrigio me manda:
Argument error .NOT. form errorsys, line: 0
este mismo codigo lo tengo en otro .prg y funciona bien con xharbour, de hecho este codigo lo coie tal cual junto, asi tambien el dialogo en el recurso tiene las misma caracteristicas del que funciona bien, aki la unica ... |
evento VALID en un dialogo | Paco,
Has cambiado el valor de retorno del VALID para que devuelva .T. ó .F. ? |
evento VALID en un dialogo | No, el valor sigue devolviendo .T., por lo pronto le meti un truquillo, validar dentro de sale el VK_ESCAPE y que me devuelva .F., para que no siga con los select y cierre las bases de datos, por lo pronto funciona, seguire probando, gracias
salu2
Paco |
events handler | Hi, all !I want create my events handler for window of outside application.How I can do it with API function SetWindowsHookEx ? |
events handler | <!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/ms644990(VS.85">http://msdn.microsoft.com/en-us/library/ms644990(VS.85</a><!-- m -->).aspx |
events handler | Thanks, Antonio ! But I not know how write SetWindowsHookEx on FWH |
example for compile and link many PRG files with HB/FWH | Dear All,
Can I get an example to compile and link many PRG file for Harbour&FWH? This question may ask many time but I cannot find it.
Thanks&Regards,
Dutch |
example for compile and link many PRG files with HB/FWH | Dutch,
You may easily modify samples\buildx.bat to use more than one PRG:
%hdir%\bin\harbour %1 /n /i..\include;%hdir%\include /w /p %2 %3 > clip.log
@type clip.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT
echo -O2 -e%1.exe -I%hdir%\include %1.c > b32.bc
%bcdir%\bin\bcc32 -M -c -v @b32.bc
:ENDCOMPILE
... |
example for compile and link many PRG files with HB/FWH | You may also review fwh\makes directory working samples to use a Borland make or a Microsoft make instead of a batch file. |
example for compile and link many PRG files with HB/FWH | Dear Antonio,
I have no FWH\MAKES directory. Have you got an examples?
Regards,
Dutch |
example for compile and link many PRG files with HB/FWH | [quote="dutch":326it4t7]Dear Antonio,
I have no FWH\MAKES directory. Have you got an examples?
Regards,
Dutch[/quote:326it4t7]
Dutch
Check my reply to Vladimir in this forum, i have joined a working sample
Richard |
example for compile and link many PRG files with HB/FWH | Dear Antonio&Richard,
Thanks a lot, I got it.
Regards,
Dutch |
example for compile and link many PRG files with HB/FWH | Dutch:
Pls test VERCE an excellent GUI to compile all your project and to create Libs.
<!-- w --><a class="postlink" href="http://www.esm.com.mx/fivewin/index.htm">www.esm.com.mx/fivewin/index.htm</a><!-- w -->
Regards, Armando |
example for compile and link many PRG files with HB/FWH | [quote="Armando":vi2hu7nx]Dutch:
Pls test VERCE an excellent GUI to compile all your project and to create Libs.
<!-- w --><a class="postlink" href="http://www.esm.com.mx/fivewin/index.htm">www.esm.com.mx/fivewin/index.htm</a><!-- w -->
Regards, Armando[/quote:vi2hu7nx]
Regrettably no interface on english |
example for compile and link many PRG files with HB/FWH | Use XMate!!!!
With this program You Can create LIB, DLL, and EXE program in five minutes !!!!!
it run with clipper,fw,c3,xharbour,harbour.....
Regards |
example for compile and link many PRG files with HB/FWH | YES .. xMate is a great make and project manager .. jI recently uploaded new xMate environments for Borland and MSVC to their website..
<!-- m --><a class="postlink" href="http://www.geocities.com/wowbase/xMate.html">http://www.geocities.com/wowbase/xMate.html</a><!-- m -->
Rick Lipkin
SC Dept of Health, USA |
excel X ole | Good morning friends, I am making new attempt to try to solve a problem some time to generate some reports in Excel using what's more simple. A text file renamed to xls with chr (9) to separate the fields. but was no longer given more my clients passed the test with OLE could generate up to the file. It was to have 1 s... |
excel X ole | [code:1tv8hqq2]FUNCTION MAIN()
LOCAL oExcel := CREATEOBJECT( "Excel.Application" )
LOCAL oWorkbook := oExcel:Workbooks:Add()
LOCAL oSheet := oExcel:ActiveSheet
oSheet:Cells( 1, 1 ):Value = "This is a test"
oExcel:Visible = ... |
excel and bmp-files | Hello,
Is is possible to write a BMP-file to a cell in excel?
Thanks,
Marc |
excel and bmp-files | [code=fw:2eikesdn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">(</span><span style="color: #000000;">)</sp... |
excel and bmp-files | Thanks,
It's working nice <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Regards,
Marc |
excel font orientation - vertical | how to change font orientation in excel ? /vertical cells/
best regards
KAJOT |
excel font orientation - vertical | oRange:Orientation := value
Name Value Description
xlDownward -4170 Text runs downward.
xlHorizontal -4128 Text runs horizontally.
xlUpward -4171 Text runs upward.
xlVertical -4166 Text runs downward and is centered in the cell. |
excel font orientation - vertical | Thanks |
excel tactivex | Can anyone help me? How can this vbscript be writtein in xharbour + fwh with tactivex control of fwh?
[code:13zvh2t8]
Dim Spread As OWC11.Spreadsheet
Dim stYears(0 To 2) As String
Dim iCounter As Integer
stYears(0) = "1996"
stYears(1) = "1997"
stYears(2) = "1998"
Set Spread = Me&... |
excel tactivex | This is an incomplete test. It shows the spreadsheet but I was not able to get or set ColumnHeadings property:
[code:2rrc96kw]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd, oOwc, oColumnHeadings
DEFINE WINDOW oWnd
@ 0, 0 ACTIVEX oOwc;
PROGID "OWC.Spreadsheet"
oColumn... |
excel tactivex | yes. i could not find out how to get this working. |
excel tactivex | You are missing this:
[color=red:3vt2km67]With .ActiveWindow [/color:3vt2km67]
Here you have it working:
[code:3vt2km67]
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd, oOwc, oActiveWindow, nCounter
DEFINE WINDOW oWnd
@ 0, 0 ACTIVEX oOwc;
PROGID "OWC11.Spreadsheet"
... |
excel tactivex | [quote="Antonio Linares":h3fvttes]You are missing this:
[color=red:h3fvttes]With .ActiveWindow [/color:h3fvttes][/quote:h3fvttes]
I already tried it and unfortunately it doesn't work for me (Office 2000). <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
EMG |
excel tactivex | Enrico,
What's your Office PROGID ? |
excel tactivex | Where can I find it? I'm using "OWC.Spreadsheet" for Office Web Component.
EMG |
excel tactivex | Enrico,
Yes, that may be fine.
Have you considered to upgrade to Office 2003 ? |
excel tactivex | I don't really need of Office. And I can't write code that only works on Office 2003.
EMG |
excel tactivex | Enrico,
> And I can't write code that only works on Office 2003.
I agree with you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Anyhow, the sample is working fine |
excel tactivex | Yes. I'm currently searching a way to manage OWC cells in a Office-version-independent way.
EMG |
excel tactivex | Enrico,
You might want to try "Open Office" ( <!-- m --><a class="postlink" href="http://www.openoffice.org/">http://www.openoffice.org/</a><!-- m --> )
It is said to be compatible with MS-Office and it is FREE.
Jeff |
excel tactivex | Sorry, I can't force my clients to migrate to OpenOffice.
EMG |
excel tactivex | Ok, this is how to set cells values. It should work on any OWC version:
[code:2sf19q9q]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oWnd, oOwc, hSheet, hActiveWindow
DEFINE WINDOW oWnd
@ 0, 0 ACTIVEX oOwc;
PROGID "OWC.Spreadsheet"
hSheet = oOwc:GetProp( "ActiveSh... |
excel tactivex | Thank you Mr. Antonio. Now I am able to do this and other similar examples.
Still I have one general problem. How do I know what is the office version of on the target machine and decide whether to use owc or owc11 ? What should I use for office 2007.
With office2003 if i use owc, I am getting GPF. I am wondering ... |
excel tactivex | You may use:
IsActiveX( cProgID ) --> lYesNo
i.e.:
if IsActiveX( "OWC.Spreadsheet" )
...
else
... |
excel tactivex | Mr. Antonio
thanks. |
exchange data | What is the best way to exchange data between two running FWH programs?
Thanks in advance,
Otto |
exchange data | A file? TCP/IP (look at sockcli.prg and sockserv.prg)?
EMG |
exchange data | Hello Enrico,
I have a billing software and a customer administration software.
If I need a new customer in the billing software I have up to now a function inside the billing software to add a new customer.
But I think it would be easier to call the administration software and add there the new customer and then to h... |
exchange data | Otto,
>But I think it would be easier to call the administration software and add there the new customer and then to have the data inside the billing software
Why not just compile the add customer routines from the customer software into the billing software? Then you can add a customer from inside either program.
J... |
exchange data | Thank you for your answer, James.
regards,
Otto |
exe chiama obj | E' possibile salvare i moduli in formato Obj chiamarli dall'exe dell'applicazione ? magari salvare i moduli obj in file zippati e richiamarli quando servono.
questa situazione potrebbe essere utile per non ricompilare ogni volta tutta l'applicazione ma solo i singoli moduli |
exe chiama obj | [quote="Silvio.Falconi":2x1kcfc7]E' possibile salvare i moduli in formato Obj chiamarli dall'exe dell'applicazione ? magari salvare i moduli obj in file zippati e richiamarli quando servono.
questa situazione potrebbe essere utile per non ricompilare ogni volta tutta l'applicazione ma solo i singoli moduli[/quote:2x... |
exe chiama obj | [quote="cnavarro":314a96x5][quote="Silvio.Falconi":314a96x5]E' possibile salvare i moduli in formato Obj chiamarli dall'exe dell'applicazione ? magari salvare i moduli obj in file zippati e richiamarli quando servono.
questa situazione potrebbe essere utile per non ricompilare ogni volta tutta l'applicazione ma solo... |
exe in background | hi,
I'd like your advice to this situation.
I have a folder in my lan, in this folder some users put files txt (about one each 15 or 20 minutes)
for aech file I need to read it inside and print some information.
therefore I have to create a .exe that is always active (in background) and start print when it finds a new ... |
exe in background | [code=fw:1e149xaz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> PathFileExists<span style="color: #000000;">(</span><span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>labla<span style="col... |
exe in background | \samples\testtray.prg
Regards. |
exe in background | thank you karinha, I'll try it |
exe in background | Hello,
I think you should use a timer.
I tested your suggestion with syswait in a loop.
This is consuming 25% of CPU.
Best regards
Otto |
exe in background | hi Otto,
thank you, any example with timer? |
exe in background | Hello,
attached a sample.
This is my anti ransomware program. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
This program monitors the data folder.
Only dbf, ftp and cdx files are allowed in the data folder. If a ransomware tries to encrypt a file, the bat-file is called w... |
exe in background | Hello,
>I have a folder in my lan, in this folder some users put files txt (about one each 15 or 20 minutes)
Is the program that writes the TXT files from you. If so then you should create a lock file write the TXT file and then delete the lock file again.
The program with the timer () may only edit the TXT files if... |
exe in background | hi Otto,
txt files in the folder are generated by others application (not mine).
Pratically, there are some users that works with CAD, this CAD make nesting of iron sheet for mecanichal parts end this parts are in txt files in the folder.
I have to intercept this files when it is generated, my exe when there is a new t... |
exe property | hi,
this is exe property.
[img:1qz9fk2o]https://i.imgur.com/V9iGOHl.png[/img:1qz9fk2o]
is there any way to insert these property when make an exe ?
description
version
product name
copyright
thank you. |
exe property | Dear Damiano,
You have to add this section into your RC file:
[code=fw:23ktp2bi]<div class="fw" id="{CB}" style="font-family: monospace;">VS_VERSION_INFO VERSIONINFO<br /> FILEVERSION <span style="color: #000000;">1</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color... |
exe property | Thank you. This is nice.
For other languages, check the Translation codes. English is 0x09. |
exe property | Antonio
Been using this Version.Rc file .. lots of similarities .. but I have to use Notepad to edit but it still serves the purpose
[code=fw:2sigkdfb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Generated by ResEdit 1.6.6</span><br /><span style="color: #B900B9;">/... |
exe property | Antonio
Been using this Version.Rc file .. lots of similarities .. but I have to use Notepad to edit but it still serves the purpose
[code=fw:1gthgp9c]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Generated by ResEdit 1.6.6</span><br /><span style="color: #B900B9;">/... |
exe property | Dear Rick,
many thanks for sharing it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
exe protection against decompilers and debuggers | Hi,
I am searching for an utility that protects a 32 bits exe from being decompiled or debugged. Any help will be welcomed.
Thank you!. Best regards,
Moisés |
exe protection against decompilers and debuggers | Hi,
try PeCompact (<!-- w --><a class="postlink" href="http://www.bitsum.com">www.bitsum.com</a><!-- w -->),
it compress and crypt any executable.
I tried it with FWH/xHB apps and works fine.
Best regards,
Marco |
exe run's from xmate not stand alone | Hello,
After two month from conversion from fxh8.10 and xhb comercial to fwh12.02 and bcc582 , i try the final version.
Building the aplication with xmate , it works fine.
When the exe-file is launched from the command line , the aplication freezes on the paint clausule from the main window :
ACTIVATE WINDOW oWn... |
exe run's from xmate not stand alone | Frank,
have you checked that those bitmaps are properly loaded ? Maybe you are running the app from different paths
Try this:
MsgInfo( oBmpTiled:hBitmap )
MsgInfo( oBmp:hBitmap )
MsgInfo( oImage:hBitmap )
Those values should not be zero |
exe run's from xmate not stand alone | Antonio ,
Thank you very much for your answer.
I had some problems with GetCurDir and changed as :
# ifdef FWH12
LOCAL cDir := GetCurDir() + "\"
IF ! (cDir=CurDrive()+":\")
cDir := CurDrive() + ":\" + GetCurDir() + "\"
END
# else
LOCAL cDir := CurDrive() + ":\" + GetCurDir() + "\"
# endif
In the new environnem... |
exe run's from xmate not stand alone | Frank,
I always use without any Problems :
[color=#0000FF:181lis8q]c_path := GETCURDIR()[/color:181lis8q]
// use in older FWH-versions !!!
// [color=#0000FF:181lis8q]c_path := CURDRIVE() + ":\" + GETCURDIR()[/color:181lis8q]
A image call :
[color=#FF0000:181lis8q]DEFINE IMAGE oImage FILE c_path + "\Images\Logo.bmp... |
exe size | How can I reduce exe size (now 988kB).
In my application I will never use any rdd but simple menu and dialogs.
regards Eugeniusz |
exe size | Eugeniusz,
You may add this function to your main PRG:
function RddSys() ; return nil |
exe size | Antonio,
Now my exe is 786kB
regards Eugeniusz |
exe windows on tablet | Hi,
I'd like to run my .exe (FWH 64) on tablet android (or others tablet), is it possible?
Can you help me?
thank you |
exe windows on tablet | if the exe made for windows is not possible on Android (perhaps one day someone will invent something to make it work on android too)
I use a tablet Miix320 Lenovo ( windows 10 pro) and run correctly exe made with fwh |
exe windows on tablet | thank you Silvio,
Can I to use my app.exe (windows desktop) on tablet without changes ? |
exe windows on tablet | <!-- m --><a class="postlink" href="https://www.youtube.com/watch?v=cy5XhwVD488&app=desktop">https://www.youtube.com/watch?v=cy5XhwVD488&app=desktop</a><!-- m --> |
exe windows on tablet | Windows, iOS, and Android are separate operating systems and though some capabilities are supported, when trying to use the Mac version of FWH, there were many features we simply could not use because the other OS didn't support it. I tell my clients that Windows tablets are actually full computers and prices are affo... |
exe windows on tablet | [url:3cyet6fb]https://techonation.com/best-windows-emulator-for-android/[/url:3cyet6fb] |
exe bin or nb0 file ? | Hi,
I run the "deviceemulator tutor01.exe" and it shows error :-
Invalid Image file type. Must be bin or nb0 file.
What is that file ? |
exe bin or nb0 file ? | Hoe,
The deviceemulator.exe requires a Windows Mobile operating system image usually named as *.bin
To run your FWPPC app from the emulator (once the emulator is running) you place your EXE in a shared folder between the PC and the emulator. In the emulator your EXE shows in the Memory card. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.