Search found 4 matches

by vensanto
Wed Mar 06, 2024 5:33 am
Forum: FiveWin for Harbour/xHarbour
Topic: How to include hbCurl?
Replies: 13
Views: 4422

Re: How to include hbCurl?

HI,
you can generate C code from the CURL command line
adding "--libcurl filename.c" to the end of the command line

below is an example:
curl http://example.com --libcurl example.c

look at the link
https://everything.curl.dev/libcurl/libcurl
by vensanto
Thu Aug 03, 2023 8:08 am
Forum: FiveWin for Harbour/xHarbour
Topic: dialog opening difference in the monitor between 32/64 bit
Replies: 4
Views: 601

dialog opening difference in the monitor between 32/64 bit

Good morning,
I compile fivewin programmes in both 32bit and 64bit versions with MinGW 8.5 - fivewin release 22.12 and use 2 monitors

I have noticed that in the 32bit version if I open a dialogue from the second monitor this is opened in the second monitor
whereas if I open a dialogue from the ...
by vensanto
Wed Jan 11, 2023 6:08 pm
Forum: FiveWin for Harbour/xHarbour
Topic: How to create a PRIVATE variable owned by the caller?
Replies: 21
Views: 1822

Re: How to create a PRIVATE variable owned by the caller?

this is the function code in "memvars.c" of Harbour

HB_FUNC( __MVSETBASE )
{
HB_STACK_TLS_PRELOAD
HB_ISIZ nOffset = hb_stackBaseProcOffset( 0 );

if( nOffset > 0 )
hb_stackItem( nOffset )->item.asSymbol.stackstate->nPrivateBase =
hb_memvarGetPrivatesBase();
}
by vensanto
Wed Jan 11, 2023 5:50 pm
Forum: FiveWin for Harbour/xHarbour
Topic: How to create a PRIVATE variable owned by the caller?
Replies: 21
Views: 1822

Re: How to create a PRIVATE variable owned by the caller?

__mvSetBase()

This is a hacking function which changes base private offset so PRIVATE variables created in function which calls __mvSetBase()
will not be released when the function exit but will be inherited by its caller.

Function sa_1()

sa_2()

? cTXT

Return .T.


Function sa_2()

Private ...