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
Search found 58 matches
- Wed Mar 06, 2024 5:33 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: How to include hbCurl?
- Replies: 13
- Views: 4813
- 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: 690
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 ...
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 ...
- 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: 2398
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();
}
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();
}
- 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: 2398
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 ...
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 ...
- Tue Jun 18, 2019 3:53 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: How extract XML from P7M
- Replies: 9
- Views: 1299
Re: How extract XML from P7M
Hello
you must use the OPENSSL command
below an example:
// ---------------------------------------------------//
nFIN:="file.xml.p7m"
nFOUT:="file.xml"
nCMD:="openssl smime -verify -noverify -in "+nFIN+" -inform DER -out "+nFOUT
WaitRun(nCMD,0) // 0 = esegue la finestra in HIDE ...
you must use the OPENSSL command
below an example:
// ---------------------------------------------------//
nFIN:="file.xml.p7m"
nFOUT:="file.xml"
nCMD:="openssl smime -verify -noverify -in "+nFIN+" -inform DER -out "+nFOUT
WaitRun(nCMD,0) // 0 = esegue la finestra in HIDE ...
- Sun Jun 03, 2018 9:25 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Compilar código Harbour con gcc en 64 BITS
- Replies: 8
- Views: 2503
Re: Compilar código Harbour con gcc en 64 BITS
do not use the option
-compiler=mingw64
hbmk2 auto recognize the compiler
compile this test code with harbour 64 ad gcc 7.3 64 bit
and show the result
=====================
Function MAIN()
SET COLOR TO
CLEAR
? HB_VERSION()
? HB_BuildDate()
? HB_PCodeVer()
?
? HB_COMPILER()
?
? OS ...
-compiler=mingw64
hbmk2 auto recognize the compiler
compile this test code with harbour 64 ad gcc 7.3 64 bit
and show the result
=====================
Function MAIN()
SET COLOR TO
CLEAR
? HB_VERSION()
? HB_BuildDate()
? HB_PCodeVer()
?
? HB_COMPILER()
?
? OS ...
- Tue May 29, 2018 7:25 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Compilar código Harbour con gcc en 64 BITS
- Replies: 8
- Views: 2503
Re: Compilar código Harbour con gcc en 64 BITS
you have to check this:
1) your windows system is 64 bit ?
2) your harbour release is 64 bit and is compiled with gcc 7.3 64 bit ?
regards
1) your windows system is 64 bit ?
2) your harbour release is 64 bit and is compiled with gcc 7.3 64 bit ?
regards
- Sun May 27, 2018 8:21 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Compilar código Harbour con gcc en 64 BITS
- Replies: 8
- Views: 2503
Re: Compilar código Harbour con gcc en 64 BITS
Hello
for 64 bit
i have to use:
harbour 64 bit
GCC 7.3 64 bit
x86_64-7.3.0-release-posix-seh-rt_v5-rev0
whe you compile a sample .prg
i have to use KBMK2
this is a sample of TEST64.HBP
# ==========================
# ==========================
-oTEST
-exitstr
-gui
-inc
### solo per GCC ...
for 64 bit
i have to use:
harbour 64 bit
GCC 7.3 64 bit
x86_64-7.3.0-release-posix-seh-rt_v5-rev0
whe you compile a sample .prg
i have to use KBMK2
this is a sample of TEST64.HBP
# ==========================
# ==========================
-oTEST
-exitstr
-gui
-inc
### solo per GCC ...
- Thu May 17, 2018 8:03 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Antonio: Differences between BORLAND and VCC
- Replies: 32
- Views: 8212
Re: Antonio: Differences between BORLAND and VCC
compiled with Harbour + Fivewin 18.03 and GCC 7.3 32 bit

compiled with Harbour + Fivewin 18.03 and GCC 7.3 64 bit

regards

compiled with Harbour + Fivewin 18.03 and GCC 7.3 64 bit

regards
- Thu May 25, 2017 1:12 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: convert C to fivewin
- Replies: 14
- Views: 2931
Re: convert C to fivewin
now it's better
here the new code:
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
static DWORD dwSysError;
DWORD CEFGetVersion(LPTSTR lpVer, LPDWORD lpdwSysError);
DWORD CEFRead(unsigned char *lpMemArea, LPDWORD pdwByteRead, LPDWORD lpdwSysError);
DWORD CEFWrite(unsigned char ...
here the new code:
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
static DWORD dwSysError;
DWORD CEFGetVersion(LPTSTR lpVer, LPDWORD lpdwSysError);
DWORD CEFRead(unsigned char *lpMemArea, LPDWORD pdwByteRead, LPDWORD lpdwSysError);
DWORD CEFWrite(unsigned char ...
- Thu May 25, 2017 1:03 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: convert C to fivewin
- Replies: 14
- Views: 2931
Re: convert C to fivewin
Thank You Antonio
- Wed May 24, 2017 6:11 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: convert C to fivewin
- Replies: 14
- Views: 2931
Re: convert C to fivewin
the problem is IMPLIB without -a
now it's ok
here the code:
thanks to all
===
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
DWORD CEFGetVersion(LPTSTR lpVer, LPDWORD lpdwSysError);
DWORD CEFRead(unsigned char *lpMemArea, LPDWORD pdwByteRead, LPDWORD lpdwSysError);
DWORD CEFWrite ...
now it's ok
here the code:
thanks to all
===
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
DWORD CEFGetVersion(LPTSTR lpVer, LPDWORD lpdwSysError);
DWORD CEFRead(unsigned char *lpMemArea, LPDWORD pdwByteRead, LPDWORD lpdwSysError);
DWORD CEFWrite ...
- Wed May 24, 2017 1:42 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: convert C to fivewin
- Replies: 14
- Views: 2931
Re: convert C to fivewin
hello i try but i get error
any sample please
thanks
any sample please
thanks
- Tue May 23, 2017 5:18 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: convert C to fivewin
- Replies: 14
- Views: 2931
Re: convert C to fivewin
I do not have any file .H
the cefdll.dll is a dll for a cash register CUSTOM XKUBE
you can download from the follow link:
www.veneziasoft.com/download/custom/cefdll125.zip
there is any samples in the zip file
but i dont know how interface it with fivewin
thanks for you help
the cefdll.dll is a dll for a cash register CUSTOM XKUBE
you can download from the follow link:
www.veneziasoft.com/download/custom/cefdll125.zip
there is any samples in the zip file
but i dont know how interface it with fivewin
thanks for you help
- Tue May 23, 2017 3:29 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: convert C to fivewin
- Replies: 14
- Views: 2931
Re: convert C to fivewin
I have linked the cefdll.lib
but i get always the errror
Warning W8065 SA.PRG 53: Call to function 'CEFOpen' with no prototype in function HB_FUN_CEFOPEN
Error: Unresolved external '_CEFOpen' referenced from C:\USERS\SANTO\APPDATA\LOCAL\TEMP\HBMK_VE2YOI.DIR\SA.OBJ
thanks
but i get always the errror
Warning W8065 SA.PRG 53: Call to function 'CEFOpen' with no prototype in function HB_FUN_CEFOPEN
Error: Unresolved external '_CEFOpen' referenced from C:\USERS\SANTO\APPDATA\LOCAL\TEMP\HBMK_VE2YOI.DIR\SA.OBJ
thanks