topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
hbcurl how is it used? | Byron,
Are you running Apache on Windows ?
If so, please download and use this mod_harbour version:
[url:3soyl61o]https://github.com/FiveTechSoft/mod_harbour/tree/master/windows/win64[/url:3soyl61o] |
hbcurl how is it used? | We are running IIS. Do I need to download something new? Is it the dll or Mod_Harbour.lib as well?
Thanks,
Byron... |
hbcurl how is it used? | Byron,
The problem that we have found with IIS and curl is that there is a missing DLL, that does not allow to load libharbour.dll, and we don't know which one is it yet
So for now, curl support is disabled for IIS until we find the missing DLL
You can test it using this libharbour.dll:
[url:2fuu971o]https://github.com/FiveTechSoft/mod_harbour/tree/master/windows/win64[/url:2fuu971o]
We are checking it again |
hbcurl how is it used? | I have just sent you a slack invitation, where we talk about mod_harbour trying to solve this IIS issue... |
hbcurl how is it used? | Byron,
ok, mod_harbour for IIS properly working with CURL support.
Please download the new files from here:
[url:19wcn0ru]https://github.com/FiveTechSoft/mod_harbour/tree/master/IIS/bin[/url:19wcn0ru]
Please remember to copy libcurl.dll, libcrypto-1_1-x64.dll and libssl-1_1-x64.dll to c:\windows\system32\inetsrv
I appreciate if you let us know how it works, thanks |
hbcurl xharbour | Hi, Does anyone know how to rewrite this routine using hbcurl? Thanks in advance.
TRY
oUrl = TUrl():New( 'https://www.averbeporto.com.br/websys/php/conn.php' )
CATCH
CurSorArrow()
MsgInfo('Erro ao criar a conexão','Erro')
RETURN(.F.)
END
IF !EMPTY( oUrl )
oCli = TIPClientHttp():New( oUrl )
IF !EMPTY( oCli )
oCli:nConnTimeout = -1
IF oCli:Open()
hQuery["mod"] := "login"
hQuery["comp"] := "5"
hQuery["user"] := "USERNAME"
hQuery["pass"] := "PASSWD"
oCli:cUserAgent:='Mozilla/5.0 (compatible; Indy Library)'
IF !oCli:PostMultiPart(hQuery)
CurSorArrow()
MsgInfo(oCli:lastErrorMessage,'Erro')
ELSE
cNFSeResp :=oCli:ReadAll()
RespC := oCli:GetCookies() // Captura cookie
ENDIF
//oCli:Close()
ENDIF
ENDIF
ENDIF
If Alltrim(cNFSeResp) == '{"success":1,"logout":1}'
CurSorArrow()
oCli:Close()
MsgBeep()
MsgAlert("Não foi possível conectar ao site de averbação!","Atenção")
Return .f.
Endif
// Faz o upload do xml para averbação
oCli:Close()
oCli = TIPClientHttp():New( oUrl )
IF !EMPTY( oCli )
oCli:nConnTimeout = -1
IF oCli:Open()
ocli:SetCookie( respc )
hQuery["comp"] := "5"
hQuery["mod"] := "Upload"
hQuery["path"] := "eguarda/php/"
hQuery["recipient"] := ""
EmiCte := Dtoc(oArqCto:DTEMIS)
LocXml := Alltrim(oConfCte:P_AUTORI)+Substr(EmiCte,4,2)+Substr(EmiCte,7,4)+"\"+Alltrim(oArqCto:CHAVESEFAZ)+;
"-ProcCTe.xml"
If ! File(LocXml)
CurSorArrow()
MsgBeep()
MsgAlert("Xml do cte não localizado!","Atenção")
oCli:Close()
Return .f.
Endif
ArqAtach := LocXml
oCli:cUserAgent:='Mozilla/3.0 (compatible; Indy Library)'
oCli:Attach("file",ArqAtach)
IF !oCli:PostMultiPart(hQuery)
CurSorArrow()
MsgInfo(oCli:lastErrorMessage,'Erro')
ELSE
Respchave:=oCli:ReadAll()
ENDIF
ENDIF
ENDIF
If Substr(Alltrim(Respchave),1,12) == '{"success":0'
CurSorArrow()
oCli:Close()
MsgBeep()
MsgAlert("Não foi possível fazer o upload do arquivo xml!","Atenção")
MsgAlert(Repchave)
Return .f.
Endif |
hbcurl xharbour | Any idea? |
hbcurl y googledrive | Buenas,
he estado probando hbcurl para descarga de ficheros desde googledrive, este siempre me contestaba diciéndome que el fichero se había movido temporalmento o se había redirigido:
[code=fw:3h2nqgga]<div class="fw" id="{CB}" style="font-family: monospace;"><HTML><br /><HEAD><br /><TITLE>Moved Temporarily</TITLE><br /></HEAD><br /><BODY BGCOLOR=<span style="color: #ff0000;">"#FFFFFF"</span> <span style="color: #0000ff;">TEXT</span>=<span style="color: #ff0000;">"#000000"</span>><br /><H1>Moved Temporarily</H1><br />The document has moved <A HREF=<span style="color: #ff0000;">"https://sites.google.com/site/ejemplo/home/fichero.zip?attredirects=0"</span>>here</A>.<br /></BODY><br /></HTML><br /><HTML><br /><HEAD><br /><TITLE>Moved Temporarily</TITLE><br /></HEAD><br /><BODY BGCOLOR=<span style="color: #ff0000;">"#FFFFFF"</span> <span style="color: #0000ff;">TEXT</span>=<span style="color: #ff0000;">"#000000"</span>><br /><H1>Moved Temporarily</H1><br />The document has moved <A HREF=<span style="color: #ff0000;">"https://sites.google.com/site/ejemplo/home/fichero.zip?attredirects=0"</span>>here</A>.<br /></BODY><br /></HTML><br /> </div>[/code:3h2nqgga]
lo he solucionado añadiendo la siguiente sentencia al código
[code=fw:3h2nqgga]<div class="fw" id="{CB}" style="font-family: monospace;">curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_FOLLOWLOCATION <span style="color: #000000;">)</span></div>[/code:3h2nqgga]
Desde estas líneas dar las gracias a nuestro compañero Carlos Mora por su ayuda. Carlos, muchísimas gracias.
Saludos |
hbcurl y googledrive | podrias compartir la rutina para bajar archivos?
tienes forma de subir archivos a googledrive ?
desde ya gracias |
hbcurl y googledrive | Hola Postinelli,
aquí tienes la función que uso:
[code=fw:1h6cfhwy]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> Descarga<span style="color: #000000;">(</span>sURL<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">LOCAL</span> cFolderDestino := StrCapFirst<span style="color: #000000;">(</span> cFilePath<span style="color: #000000;">(</span> GetModuleFileName<span style="color: #000000;">(</span> GetInstance<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"Descargas"</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> curl, lOK<br /><br />curl_global_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">IF</span> ! Empty<span style="color: #000000;">(</span> curl := curl_easy_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_DOWNLOAD <span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_URL, sURL <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// Si usa https, estas lineas ayudan</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_SSL_VERIFYPEER, <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_SSL_VERIFYHOST, <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_FOLLOWLOCATION <span style="color: #000000;">)</span> <span style="color: #B900B9;">// Necesario para aquellos sitios que nos redirigen a otros</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_FILETIME, <span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_DL_FILE_SETUP,cFolderDestino + <span style="color: #ff0000;">"<span style="color: #000000;">\f</span>ichero.zip"</span><span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_NOPROGRESS, <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_VERBOSE, <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span><br /> curl_easy_perform<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">if</span> curl_easy_perform<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span> == <span style="color: #000000;">0</span><br /> lOK := <span style="color: #00C800;">TRUE</span><br /> <span style="color: #00C800;">Else</span><br /> lOK := <span style="color: #00C800;">FALSE</span><br /> <span style="color: #00C800;">endif</span><br /> curl_easy_reset<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br />curl_global_cleanup<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">RETURN</span> lOK</div>[/code:1h6cfhwy]
Saludos, |
hbcurl y googledrive | Postinelli,
puedes mejorar la rutina añadiendo:
[code=fw:hbv8jlld]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Variables para tomar el nombre del fichero de la URL</span><br /><span style="color: #00C800;">LOCAL</span> fichero := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">LOCAL</span> nCaracteres := LEN<span style="color: #000000;">(</span>sURL<span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> nPosicion := RAT<span style="color: #000000;">(</span><span style="color: #ff0000;">"/"</span>,sURL<span style="color: #000000;">)</span><br /><br />fichero := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span>sURL,nPosicion + <span style="color: #000000;">1</span>, nCaracteres - nPosicion<span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//sustituye la línea anterior</span><br /><span style="color: #B900B9;">//curl_easy_setopt( curl, HB_CURLOPT_DL_FILE_SETUP,cFolderDestino + "\fichero.zip)</span><br /><span style="color: #B900B9;">//por</span><br />curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_DL_FILE_SETUP,cFolderDestino + <span style="color: #ff0000;">"<span style="color: #000000;">\"</span> + fichero)<br /></span></div>[/code:hbv8jlld]
Incluso podías hacerlo así:
[code=fw:hbv8jlld]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">LOCAL</span> fichero := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> sURL, RAT<span style="color: #000000;">(</span><span style="color: #ff0000;">"/"</span>,sURL<span style="color: #000000;">)</span> + <span style="color: #000000;">1</span>, LEN<span style="color: #000000;">(</span>sURL<span style="color: #000000;">)</span> - RAT<span style="color: #000000;">(</span><span style="color: #ff0000;">"/"</span>,sURL<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:hbv8jlld]
Saludos |
hbcurl y googledrive | Postinelli,
adjunto el código del ejemplo ftp_uldl.prg de hbcurl, podrás ver los parámetros que se utilizan para poder subir ficheros.
[code=fw:13b4jhhw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br /> * $Id: ftp_uldl.prg 17552 2012-06-04 22:21:59Z vszakats $<br /> */</span><br /><br /><span style="color: #B900B9;">/* NOTE: Redirect STDERR to a file to see the verbose output. */</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbcurl.ch"</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fileio.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> UPLOAD_FILE_AS <span style="color: #ff0000;">"test_ul.bin"</span><br /><span style="color: #00D7D7;">#define</span> RENAME_FILE_TO <span style="color: #ff0000;">"test_ul_renamed.bin"</span><br /><span style="color: #00D7D7;">#define</span> REMOTE_URL <span style="color: #ff0000;">"ftp://harbour:power@localhost/"</span> + UPLOAD_FILE_AS<br /><span style="color: #00D7D7;">#define</span> REMOTE_URL_DEL <span style="color: #ff0000;">"ftp://harbour:power@localhost/"</span> + RENAME_FILE_TO<br /><span style="color: #00D7D7;">#define</span> REMOTE_URL_MEM <span style="color: #ff0000;">"ftp://harbour:power@localhost/from_mem.txt"</span><br /><br />PROCEDURE Main<span style="color: #000000;">(</span> cDL, cUL <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> curl<br /> <span style="color: #00C800;">LOCAL</span> info<br /> <span style="color: #00C800;">LOCAL</span> tmp<br /> <span style="color: #00C800;">LOCAL</span> tmp1<br /> <span style="color: #00C800;">LOCAL</span> f<br /> <span style="color: #00C800;">LOCAL</span> a<br /><br /> <span style="color: #00C800;">LOCAL</span> lVerbose := .F.<br /><br /> ? curl_version<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ? curl_getdate<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Sun, 1 Jun 2008 02:10:58 +0200"</span> <span style="color: #000000;">)</span><br /><br /> info := curl_version_info<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">FOR</span> tmp := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">(</span> info <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> tmp == <span style="color: #000000;">8</span><br /> ? tmp, <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">FOR</span> tmp1 := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">(</span> info<span style="color: #000000;">[</span> <span style="color: #000000;">8</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> ?? info<span style="color: #000000;">[</span> <span style="color: #000000;">8</span> <span style="color: #000000;">]</span><span style="color: #000000;">[</span> tmp1 <span style="color: #000000;">]</span> + <span style="color: #ff0000;">" "</span><br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #00C800;">ELSE</span><br /> ? tmp, info<span style="color: #000000;">[</span> tmp <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /> ? <span style="color: #ff0000;">"Press key..."</span><br /> Inkey<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"INIT:"</span>, curl_global_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> ! Empty<span style="color: #000000;">(</span> curl := curl_easy_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"ESCAPE:"</span>, tmp := curl_easy_escape<span style="color: #000000;">(</span> curl, <span style="color: #ff0000;">"http://domain.com/my dir with space&more/"</span> <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"UNESCAPE:"</span>, curl_easy_unescape<span style="color: #000000;">(</span> curl, tmp <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Press key..."</span><br /> Inkey<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> hb_default<span style="color: #000000;">(</span> @cUL, <span style="color: #ff0000;">"ftp_uldl.prg"</span> <span style="color: #000000;">)</span><br /><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_UPLOAD <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_URL, REMOTE_URL <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_UL_FILE_SETUP, cUL <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_INFILESIZE, hb_FSize<span style="color: #000000;">(</span> cUL <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, hb_FSize<span style="color: #000000;">(</span> cUL <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">// ? curl_easy_setopt( curl, HB_CURLOPT_USERPWD, "harbour:power" ) /* May use this instead of embedding in URL */</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_PROGRESSBLOCK, <span style="color: #000000;">{</span>| nPos, nLen | a := CurGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, DispOutAt<span style="color: #000000;">(</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, Str<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nPos / nLen <span style="color: #000000;">)</span> * <span style="color: #000000;">100</span>, <span style="color: #000000;">6</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"%"</span> <span style="color: #000000;">)</span>, CurSet<span style="color: #000000;">(</span> a <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_NOPROGRESS, .F. <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_POSTQUOTE, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"RNFR "</span> + UPLOAD_FILE_AS, <span style="color: #ff0000;">"RNTO "</span> + RENAME_FILE_TO <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_VERBOSE, lVerbose <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"UPLOAD FILE:"</span>, curl_easy_perform<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> ? curl_easy_getinfo<span style="color: #000000;">(</span> curl, HB_CURLINFO_EFFECTIVE_URL <span style="color: #000000;">)</span><br /> ? curl_easy_getinfo<span style="color: #000000;">(</span> curl, HB_CURLINFO_TOTAL_TIME <span style="color: #000000;">)</span><br /><br /> info := curl_easy_getinfo<span style="color: #000000;">(</span> curl, HB_CURLINFO_SSL_ENGINES, @tmp <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"SSL ENGINES: "</span>, tmp, Len<span style="color: #000000;">(</span> info <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">FOR</span> tmp := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">(</span> info <span style="color: #000000;">)</span><br /> ?? info<span style="color: #000000;">[</span> tmp <span style="color: #000000;">]</span> + <span style="color: #ff0000;">" "</span><br /> <span style="color: #00C800;">NEXT</span><br /><br /> curl_easy_reset<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Press key..."</span><br /> Inkey<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">/* Delete file */</span><br /><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_UPLOAD <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_UL_NULL_SETUP <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_URL, REMOTE_URL_DEL <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">// ? curl_easy_setopt( curl, HB_CURLOPT_USERPWD, "harbour:power" ) /* May use this instead of embedding in URL */</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_NOPROGRESS <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_POSTQUOTE, <span style="color: #000000;">{</span> <span style="color: #ff0000;">"DELE "</span> + RENAME_FILE_TO <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_VERBOSE, lVerbose <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"DELETE FILE:"</span>, curl_easy_perform<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> curl_easy_reset<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Press key..."</span><br /> Inkey<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">/* Upload file from memory */</span><br /><br /> tmp := <span style="color: #ff0000;">"This will be the content of the file"</span><br /><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_UPLOAD <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_URL, REMOTE_URL_MEM <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_UL_BUFF_SETUP, tmp <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_INFILESIZE, Len<span style="color: #000000;">(</span> tmp <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, Len<span style="color: #000000;">(</span> tmp <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">// ? curl_easy_setopt( curl, HB_CURLOPT_USERPWD, "harbour:power" ) /* May use this instead of embedding in URL */</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_PROGRESSBLOCK, <span style="color: #000000;">{</span>| nPos, nLen | a := CurGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, DispOutAt<span style="color: #000000;">(</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span>, Str<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nPos / nLen <span style="color: #000000;">)</span> * <span style="color: #000000;">100</span>, <span style="color: #000000;">6</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"%"</span> <span style="color: #000000;">)</span>, CurSet<span style="color: #000000;">(</span> a <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_NOPROGRESS, .F. <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_VERBOSE, lVerbose <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"UPLOAD FILE FROM MEMORY:"</span>, curl_easy_perform<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> ? curl_easy_getinfo<span style="color: #000000;">(</span> curl, HB_CURLINFO_EFFECTIVE_URL <span style="color: #000000;">)</span><br /> ? curl_easy_getinfo<span style="color: #000000;">(</span> curl, HB_CURLINFO_TOTAL_TIME <span style="color: #000000;">)</span><br /><br /> curl_easy_reset<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Press key..."</span><br /> Inkey<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> hb_default<span style="color: #000000;">(</span> @cDL, <span style="color: #ff0000;">"ftp://ftp.cisco.com/README"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">/* Now let's download to a file */</span><br /><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_DOWNLOAD <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_URL, cDL <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_SSL_VERIFYPEER, .F. <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_SSL_VERIFYHOST, .F. <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_DL_FILE_SETUP, <span style="color: #ff0000;">"test_dl.bin"</span> <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_PROGRESSBLOCK, <span style="color: #000000;">{</span>| nPos, nLen | a := CurGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, DispOutAt<span style="color: #000000;">(</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">10</span>, Str<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nPos / nLen <span style="color: #000000;">)</span> * <span style="color: #000000;">100</span>, <span style="color: #000000;">6</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"%"</span> <span style="color: #000000;">)</span>, CurSet<span style="color: #000000;">(</span> a <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_NOPROGRESS, .F. <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_VERBOSE, lVerbose <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"DOWNLOAD FILE:"</span>, curl_easy_perform<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> curl_easy_reset<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Press key..."</span><br /> Inkey<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">/* Now let's download to memory */</span><br /><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_DOWNLOAD <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_URL, <span style="color: #ff0000;">"http://kent.dl.sourceforge.net/sourceforge/harbour-project/harbour-static-0.99.2-0mdk20070.i586.rpm"</span> <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_SSL_VERIFYPEER, .F. <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_SSL_VERIFYHOST, .F. <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_DL_BUFF_SETUP <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_PROGRESSBLOCK, <span style="color: #000000;">{</span>| nPos, nLen | a := CurGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, DispOutAt<span style="color: #000000;">(</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">10</span>, Str<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nPos / nLen <span style="color: #000000;">)</span> * <span style="color: #000000;">100</span>, <span style="color: #000000;">6</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"%"</span> <span style="color: #000000;">)</span>, CurSet<span style="color: #000000;">(</span> a <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_NOPROGRESS, .F. <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_VERBOSE, lVerbose <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"DOWNLOAD FILE TO MEM:"</span>, curl_easy_perform<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> tmp := <span style="color: #ff0000;">"test_dlm.bin"</span><br /> ? <span style="color: #ff0000;">"WRITING TO FILE: "</span>, tmp<br /> f := FCreate<span style="color: #000000;">(</span> tmp, FC_NORMAL <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> f != F_ERROR<br /> FWrite<span style="color: #000000;">(</span> f, curl_easy_dl_buff_get<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> FClose<span style="color: #000000;">(</span> f <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> curl_easy_reset<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"Press key..."</span><br /> Inkey<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /><br /> hb_default<span style="color: #000000;">(</span> @cDL, <span style="color: #ff0000;">"ftp://ftp.cisco.com/"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">/* Now let's download a dirlist to memory */</span><br /><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_DOWNLOAD <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_DIRLISTONLY <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_URL, cDL <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_SSL_VERIFYPEER, .F. <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_SSL_VERIFYHOST, .F. <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_DL_BUFF_SETUP <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_PROGRESSBLOCK, <span style="color: #000000;">{</span>| nPos, nLen | a := CurGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, DispOutAt<span style="color: #000000;">(</span> <span style="color: #000000;">11</span>, <span style="color: #000000;">10</span>, Str<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> nPos / nLen <span style="color: #000000;">)</span> * <span style="color: #000000;">100</span>, <span style="color: #000000;">6</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"%"</span> <span style="color: #000000;">)</span>, CurSet<span style="color: #000000;">(</span> a <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_NOPROGRESS, .F. <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_VERBOSE, lVerbose <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"DOWNLOAD DIRLIST TO STRING:"</span>, curl_easy_perform<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> ? <span style="color: #ff0000;">"RESULT 1: "</span> + curl_easy_dl_buff_get<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /> ? curl_easy_setopt<span style="color: #000000;">(</span> curl, HB_CURLOPT_DL_BUFF_GET, @tmp <span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"RESULT 2: "</span> + tmp<br /><br /> <span style="color: #B900B9;">/* Cleanup session */</span><br /><br /> curl_easy_cleanup<span style="color: #000000;">(</span> curl <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> curl_global_cleanup<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> CurGet<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #000000;">{</span> Row<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, Col<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><span style="color: #00C800;">STATIC</span> PROCEDURE CurSet<span style="color: #000000;">(</span> a <span style="color: #000000;">)</span><br /> SetPos<span style="color: #000000;">(</span> a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, a<span style="color: #000000;">[</span> <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span><br /><br /> </div>[/code:13b4jhhw]
Saludos, |
hbcurl y googledrive | muy amable, haré pruebas y comento |
hbcurl y googledrive | Baxajuan,
Podrias mostrar un ejemplo de la llamada al drive para subir/bajar un fichero ?
Gracias ! |
hbcurl.c | HI,
i want use curl in xharbour, i make download of harbour source contrib and found hbcurl.c and curl.ch
more that i try compiler dont found curl.h, types.h and easy.h
where i found this ? how compiler to use this .
thanks so much. |
hbcurl.c | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=130276#p130276">viewtopic.php?p=130276#p130276</a><!-- l --> |
hbmk2 and #ifdef | trying to switch from xHarbour to Harbour
Have a lot of
[code=fw:tx0043mq]<div class="fw" id="{CB}" style="font-family: monospace;">#ifdef __NOXHBCOM__<br /> ... <br />#endif</div>[/code:tx0043mq]
in my source prg.
How do I configure go.bat/hbmk2.hbp so that conditional compilation respects '__NOXHBCOM__'? |
hbmk2 and #ifdef | Add -D__NOXHBCOM__ inside hbmk2.hbp |
hbmk2 and #ifdef | <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
hbmk2 con Bcc71 | Buen día
Alguien está usando hbmk2 con bcc71 ? |
hbmk2 con Bcc71 | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=198176#p198176">viewtopic.php?p=198176#p198176</a><!-- l -->
Solo tienes que cambiar los nombres de las librerías:
-Lc:\fwh\lib -lFiveH
-Lc:\fwh\lib -lFiveHC |
hbmk2 con Bcc71 | Antonio , gracias por responder
Ya he conseguir usar hbmk2 con FWH64 , BCC71 y Harbour para BCC
Ahora quiero usar mingw y harbour + FWH64 , que librería debo utilizar ?
Saludos |
hbmk2 con Bcc71 | De momento no proporcionamos una librería para MinGW y FWH 64 bits.
Eres el primero que ha preguntado por ella <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
hbmk2 con Bcc71 | Estimado Antonio, las opciones que hasta hoy he probado para utilizar FWH64 bits han sido, xHarbour + VS y Harbour + Bcc7.1
La versión con xHarbour me genera errores aleatorios con AppCrash. Y en la versión con Harbour hay algunos comandos y operaciones matemáticas que no funcionan correctamente.
Que otra opción me recomiendas usar ?
Saludos |
hbmk2 con Bcc71 | Mi consejo es usar Harbour y Borland ó MSVC, ambos para 64 bits.
La decisión de usar Borland ó MSVC depende de las preferencias de cada uno. El debuger a bajo nivel de MSVC es muy bueno. |
hbmk2 con Bcc71 | Si has detectado algún error en Harbour, solo tienes que reportarlo en la lista de usuarios de Harbour y se solucionará muy rápido |
hbmk2 errors | Hi All! I am trying to link application with hbmk2 (Harbour 32, dolphin) :
hbmk2: Processing local make script: hbmk.hbm
hbmk2: Linking... pos32.exe
c:/fwh/lib/FiveH32.lib(objh32/DATABASE.obj):(.text+0x30): multiple definition of `HB_FUN_TDATABASE'
.hbmk/win/mingw/DATABASE.o:DATABASE.c:(.text+0x0): first defined here
C:/Dolph_SRC/lib/HARBOUR/BCC/dolphin.lib: file not recognized: File format not recognized
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1 |
hbmk2 errors | That Dolphin lib seems to be for Borland and you are using Microsoft |
hbmk2 errors | [quote="Antonio Linares":2ddr3lnw]That Dolphin lib seems to be for Borland and you are using Microsoft[/quote:2ddr3lnw]
Actually I am using mingw. |
hbmk2 errors | The problem was fixed. I have a new one when linking :
c:/fwh/lib/fivehg.lib(GETTASKS.o):GETTASKS.c:(.text+0x180): undefined reference to `GetModuleFileNameExA@16'
c:/fwh/lib/fivehgc.lib(RICHEDIT.o):RICHEDIT.C:(.text+0xa45): undefined reference to `OleUIPasteSpecialA@4'
c:/fwh/lib/fivehgc.lib(RICHEDIT.o):RICHEDIT.C:(.text+0x12de): undefined reference to `GetFileVersionInfoSizeA@8'
c:/fwh/lib/fivehgc.lib(RICHEDIT.o):RICHEDIT.C:(.text+0x1346): undefined reference to `GetFileVersionInfoA@16'
c:/fwh/lib/fivehgc.lib(RICHEDIT.o):RICHEDIT.C:(.text+0x1370): undefined reference to `VerQueryValueA@16'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1 |
hbmk2 errors | Mosh,
Please link this richedit.obj:
[url:3a6lvavy]https://code.google.com/p/fivewin-contributions/downloads/detail?name=RICHEDIT.obj[/url:3a6lvavy]
If you have problems with the linking order, etc. then I will provide you the library with the replacement.
I mentioned in my first answer that you were using Microsoft as you were linking FiveH32.lib. Glad to know you realized it also <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
hbmk2 errors | [quote="Antonio Linares":1nyirzo1]Mosh,
Please link this richedit.obj:
[url:1nyirzo1]https://code.google.com/p/fivewin-contributions/downloads/detail?name=RICHEDIT.obj[/url:1nyirzo1]
If you have problems with the linking order, etc. then I will provide you the library with the replacement.
I mentioned in my first answer that you were using Microsoft as you were linking FiveH32.lib. Glad to know you realized it also <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1nyirzo1]
[b:1nyirzo1]hbmk2: Processing local make script: hbmk.hbm
hbmk2: Linking... pos32.exe
RICHEDIT.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
[/b:1nyirzo1]
PS
I am not sure I am linking it right - I renamed it to richedit.o |
hbmk2 errors | Mosh,
Are you using MinGW 32 or 64 bits ? |
hbmk2 errors | [quote="Antonio Linares":emtvdyru]Mosh,
Are you using MinGW 32 or 64 bits ?[/quote:emtvdyru]
32 bits |
hbmk2 errors | Mosh,
Please try this one:
[url:wgsn9g16]https://code.google.com/p/fivewin-contributions/downloads/detail?name=mosh.zip[/url:wgsn9g16] |
hbmk2 errors | [quote="Antonio Linares":31h1r0z9]Mosh,
Please try this one:
[url:31h1r0z9]https://code.google.com/p/fivewin-contributions/downloads/detail?name=mosh.zip[/url:31h1r0z9][/quote:31h1r0z9]
Now I have :
[b:31h1r0z9]hbmk2: Processing local make script: hbmk.hbm
hbmk2: Linking... pos32.exe
RICHEDIT.o:RICHEDIT.C:(.text+0xa45): undefined reference to `OleUIPasteSpecialA@4'
RICHEDIT.o:RICHEDIT.C:(.text+0x12de): undefined reference to `GetFileVersionInfoSizeA@8'
RICHEDIT.o:RICHEDIT.C:(.text+0x1346): undefined reference to `GetFileVersionInfoA@16'
RICHEDIT.o:RICHEDIT.C:(.text+0x1370): undefined reference to `VerQueryValueA@16'
c:/fwh/lib/fivehg.lib(GETTASKS.o):GETTASKS.c:(.text+0x180): undefined reference to `GetModuleFileNameExA@16'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
[/b:31h1r0z9] |
hbmk2 errors | Mosh,
Please link MinGW liboledlg.a too and let me know if that solves the Ole one, thanks |
hbmk2 errors | MinGW libversion.a for Get... functions |
hbmk2 errors | [quote="Antonio Linares":2u2lxvqt]MinGW libversion.a for Get... functions[/quote:2u2lxvqt]
Now I have only this error :
[b:2u2lxvqt]hbmk2: Processing local make script: hbmk.hbm
hbmk2: Linking... pos32.exe
c:/fwh/lib/fivehg.lib(GETTASKS.o):GETTASKS.c:(.text+0x180): undefined reference to `GetModuleFileNameExA@16'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
[/b:2u2lxvqt]
PS
How can I link these libraries without copying the to working directory ?
-Lc:\hb32\comp\mingw\lib\ -llibversion
is ignored. |
hbmk2 errors | Mosh,
Please link MinGW libpsapi.a also
[quote:11u4hxv6]How can I link these libraries without copying the to working directory ?
-Lc:\hb32\comp\mingw\lib\ -llibversion
is ignored.[/quote:11u4hxv6]
I recently reported it to Viktor, but he seems not to agree to have the libs in a different folder from the standard path where they are created by the Harbour's make |
hbmk2 errors | [quote="Antonio Linares":6ncojijv]Mosh,
Please link MinGW libpsapi.a also
[quote:6ncojijv]How can I link these libraries without copying the to working directory ?
-Lc:\hb32\comp\mingw\lib\ -llibversion
is ignored.[/quote:6ncojijv]
I recently reported it to Viktor, but he seems not to agree to have the libs in a different folder from the standard path where they are created by the Harbour's make[/quote:6ncojijv]
[b:6ncojijv]Harbour Terminal: Raw stream console
Harbour 3.2.0dev (Rev. 18859)
Windows XP 5.1.2600 Service Pack 3
DS avail=403140KB OS avail=2076536KB EMM avail=0KB MemStat:Off MT:On
hbmk2: Processing local make script: hbmk.hbm
hbmk2: Linking... pos32.exe
c:/fwh/lib/fivehg.lib(GETTASKS.o):GETTASKS.c:(.text+0x180): undefined reference to `GetModuleFileNameExA@16'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
[/b:6ncojijv] |
hbmk2 errors | Mosh,
I assume that you are linking MinGW libkernel32.a too, right ? |
hbmk2 errors | [quote="Antonio Linares":2a2g7qd9]Mosh,
I assume that you are linking MinGW libkernel32.a too, right ?[/quote:2a2g7qd9]
It was not linked by default now I added it too, but it didn't help |
hbmk2 errors | Do you still get an unresolved external ? |
hbmk2 errors | [quote="Antonio Linares":1vuwoj0h]Do you still get an unresolved external ?[/quote:1vuwoj0h]
Yes, the same error :
[b:1vuwoj0h]c:/fwh/lib/fivehg.lib(GETTASKS.o):GETTASKS.c:(.text+0x180): undefined reference to `GetModuleFileNameExA@16'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
[/b:1vuwoj0h] |
hbmk2 errors | Mosh,
Did you link MinGW libpsapi.a ? |
hbmk2 errors | [quote="Antonio Linares":2ydwsjmp]Mosh,
Did you link MinGW libpsapi.a ?[/quote:2ydwsjmp]
Yes. This is my tst32.hbp
[b:2ydwsjmp]tst
RICHEDIT.o
libversion.a
liboledlg.a
libpsapi.a
libkernel32.a
-Lc:\fwh\lib -lfivehg
-Lc:\fwh\lib -lfivehgc
-Lc:\doltest -llibmysql
-Lc:\Dolph_SRC\lib\HARBOUR\MINGW32 -ldolphin
-otst32
-w1 -es0 -p -d__HB30__ -dVERS=103
[/b:2ydwsjmp] |
hbmk2 errors | Mosh,
Please link this GETTASKS.o also:
[url:1tz2h79b]https://code.google.com/p/fivewin-contributions/downloads/detail?name=GETTASKS.o[/url:1tz2h79b] |
hbmk2 errors | [quote="Antonio Linares":25jbo7ej]Mosh,
Please link this GETTASKS.o also:
[url:25jbo7ej]https://code.google.com/p/fivewin-contributions/downloads/detail?name=GETTASKS.o[/url:25jbo7ej][/quote:25jbo7ej]
Now it link w/o errors. Thanks! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
hbmk2 errors | Mosh,
Thanks for your feedback <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
These changes will be included in next FWH build |
hbmk2 errors | Antonio,
I'm the same have link problems building hbmk2. Using buildhm.bat plus libs bvcplr, hbct, xhm, send23 & I cannot link because I'm missing GetModuleFileNameExA@16'.
Where can I find it? |
hbmk2 errors | Are you linking C Compiler psapi.lib ? |
hbmk2 errors | Fixed an error in my link list and it now links correctly.
Unfortunately I'm now getting the error at program load, "ordinal 2143 not found in user23.dll." I'm getting this same error with my other application. I have absolutely no idea what an "ordinal" is. |
hbmk2 errors | Don,
Have you create an import library yourself from a DLL ?
have you used a DEF file to build it ? |
hbmk2 errors | Hi, Antonio
I didn't cread an "import library." I have no idea what it is.
I used BUILDHM.bat and added the libraries needed to resolve missing symbols. |
hbmk2 errors | Oops! I misspelled "create." |
hbmk2 errors | Don,
I guess there is a little typo in your error description, is it this one ?
"ordinal 2143 not found in user32.dll"
Please notice 32 instead of 23 |
hbmk2 errors | Antonio,
Yes, that certainly is a typo. I'm afraid that I often transpose numbers and letter like that. |
hbmk2 errors | If my reading is correct, ordinal 2143 is for name DefDlgProcA in user32.dll on my Vista system. DefDlgProcA in user32.dll on my XP system, which is the system where I'm having this problem, corresponds with ordinal 87. My very uneducated guess is that something within my VC or FWH or Harbour libs is assuming that my operating system is something other than XP.
What you suppose is calling User32.dll functions by ordinal rather than name? |
hbmk2 errors | Don,
Could you please email me your EXE ? (please zip it and rename as zop instead of zip)
<!-- e --><a href="mailto:alinares@fivetechsoft.com">alinares@fivetechsoft.com</a><!-- e -->
You are using Visual Studio 2010 Express, right ? Are you using Harbour or xHarbour ?
Are you linking any third party libraries besides FWH ? thanks |
hbmk2 errors | Yes, I'm using Visual Studio 2010 express. I switched back to Harbour, as you suggested.
No, I am not using any third-party libs.
VMH.zop should now be in your inbox. |
hbmk2 errors | Don,
I have not received your file yet. Could you please send it again or upload to minus, or 4shared or similar ? thanks
I am going to build in a few minutes, the same EXE like you using the same tools and will comment it here |
hbmk2 errors | Don,
Your EXE is corrupt. I have built it here using MS VS2010 and gets properly built and works fine.
Are you using this Harbour ?
[url:19fu4785]https://harbour-and-xharbour-builds.googlecode.com/files/harbour_msvc_20130328_2.zip[/url:19fu4785]
Are you building your EXE using FWH\samples\buildh32.bat ? In example:
buildh32 vmh
this will produce a correct vmh.exe |
hbmk2 for bcc64 | Antonio ,
is it possible to have hbmk2.exe for BCC64 ?
Thanks in anticipation
Maurizio
<!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w --> |
hbmk2 for bcc64 | Hbmk2.exe it is included in Harbour 64
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=16&t=32157#p188296">viewtopic.php?f=16&t=32157#p188296</a><!-- l --> |
hbmk2 for bcc64 | Hello ,
I had already tested it , but I have this error
[code=fw:17a6jrc5]<div class="fw" id="{CB}" style="font-family: monospace;">C:\Users\Maurizio\AppData\<span style="color: #00C800;">Local</span>\Temp\hbmk_1tczsy.dir\achoice.c:<br /><span style="color: #000000;">In</span> file included <span style="color: #0000ff;">from</span> C:\Users\Maurizio\AppData\<span style="color: #00C800;">Local</span>\Temp\hbmk_1tczsy.dir\achoi<br />ce.c:<span style="color: #000000;">7</span>:<br /><span style="color: #000000;">In</span> file included <span style="color: #0000ff;">from</span> c:\fwh64\Harbour_bcc7\include\hbvmpub.h:<span style="color: #000000;">50</span>:<br /><span style="color: #000000;">c</span>:\fwh64\Harbour_bcc7\include/hbdefs.h:<span style="color: #000000;">50</span>:<span style="color: #000000;">10</span>: <span style="color: #000000;">fatal</span> error: <span style="color: #ff0000;">'stdarg.h'</span> file not found<br /><span style="color: #00D7D7;">#include</span> <stdarg.h><br /> ^<br /><span style="color: #000000;">1</span> error generated.<br />hbmk2: <span style="color: #000000;">Error</span>: <span style="color: #000000;">Running</span> C/C++ compiler. <span style="color: #000000;">1</span><br />bcc64.exe -c -q -CP437 -Ic:\bcc71<span style="color: #000000;">-64</span>\INCLUDE\windows\crtl -Ic:\bcc71<span style="color: #000000;">-64</span>\INCLUDE\<br />windows\sdk -d -O2 -tWM -w -Q -w-sig- -nC:\Users\Maurizio\AppData\<span style="color: #00C800;">Local</span>\Temp\hb<br />mk_1tczsy.dir -Ic:\fwh64\Harbour_bcc7\include C:\Users\Maurizio\AppData\<span style="color: #00C800;">Local</span>\Te<br />mp\hbmk_1tczsy.dir\achoice.c<br />****************** Linking errors *</div>[/code:17a6jrc5]
Regards Maurizio |
hbmk2 for bcc64 | Please, revise your paths in your files make and .bat if is neccesary |
hbmk2 for bcc64 | Maurizio,
Check that stdarg.h is in c:\bcc71-64\INCLUDE\windows\crtl |
hbmk2 for bcc64 | Thank Antonio ,
I changed the directory of bcc64 ,and I set SET PATH=c:\Bcc7164\Bin but dosn't work ,
now with BCC in c:\bcc71-64\ it works
the error that I have is :
c:\bcc71-64
[code=fw:3dy7ii73]<div class="fw" id="{CB}" style="font-family: monospace;">hbmk2: <span style="color: #000000;">Linking</span>... mastrosql.EXE<br />Turbo Incremental Link64 <span style="color: #000000;">6.72</span> Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2015</span> Embarcadero Technologies,<br />Inc.<br />Fatal: <span style="color: #000000;">Unable</span> <span style="color: #0000ff;">to</span> open file <span style="color: #ff0000;">'C0W64.OBJ'</span><br />hbmk2: <span style="color: #000000;">Error</span>: <span style="color: #000000;">Running</span> linker. <span style="color: #000000;">2</span><br />ilink64.exe @C:\Users\Maurizio\AppData\<span style="color: #00C800;">Local</span>\Temp\j1r9if.lnk -Lc:\bcc71<span style="color: #000000;">-64</span>\LIB\psdk</div>[/code:3dy7ii73]
Thanks Maurizio |
hbmk2 for bcc64 | Thank Antonio ,
Finnaly I have compile all the prg ( a big program in MYSQL) in BCC64 bit with hbmk2 .
I had to rename c0w64.o in c0w64.obj and works.
This is the BAT
[code=fw:2sq4cv2i]<div class="fw" id="{CB}" style="font-family: monospace;">SET PATH=c:\bcc71<span style="color: #000000;">-64</span>\BIN\;c:\fwh64\Harbour_bcc7\bin\;C:\WINDOWS;C:\WINDOWS\SYSTEM32<br /><br />hbmk2 -inc mastro.hbm fwh.hbc -otest.EXE -info -debugpars -comp=bcc64</div>[/code:2sq4cv2i]
the fwh.hbc
[code=fw:2sq4cv2i]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>gt=gtgui<br /><br />incpaths=c:\bcc71<span style="color: #000000;">-64</span>\INCLUDE<br />libpaths=c:\bcc71<span style="color: #000000;">-64</span>\LIB<br />incpaths=C:\FWH64\include<br />libpaths=C:\FWH64\lib<br /><br /><span style="color: #000000;">{</span>bcc64<span style="color: #000000;">}</span>libs=five64.a fivec64.a <br /><br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbwin.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=gtgui.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbrtl.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbvm.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hblang.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbmacro.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbrdd.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=rddntx.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=rddcdx.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=rddfpt.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbsix.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbdebug.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbcommon.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbpp.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbcpage.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbcplr.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbct.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbpcre.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=xhb.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbziparc.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbmzip.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbzlib.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=minizip.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=png.a <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=hbusrrdd.a <br /><br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=cw64 <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=kernel32 <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=user32 <br /><span style="color: #000000;">{</span>win<span style="color: #000000;">}</span>libs=import64</div>[/code:2sq4cv2i]
and the mastri.hbm
[code=fw:2sq4cv2i]<div class="fw" id="{CB}" style="font-family: monospace;">-tshead=timestamp.ch <br /><br />-n <br />-m <br />-w <br />-es2 <br />-gc0 <br />-p <br />-q<br /><br />tutor01.prg</div>[/code:2sq4cv2i]
Maurizio
<!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w --> |
hbmk2 for bcc64 | very good <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
hbmk2 plugins | Using this hbmk2 plugin we get reported of the different states of the make process giving us the oportunity to modify params, etc
plugin.prg
[code=fw:azmoqg2u]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> hbmk2_plugin<span style="color: #000000;">(</span> hbmk2 <span style="color: #000000;">)</span><br /><br /> hb_MemoWrit<span style="color: #000000;">(</span> hbmk2<span style="color: #000000;">[</span> <span style="color: #ff0000;">"cSTATE"</span> <span style="color: #000000;">]</span> + <span style="color: #ff0000;">".txt"</span>, hb_jsonEncode<span style="color: #000000;">(</span> hbmk2, .T. <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:azmoqg2u]
[b:azmoqg2u]To build it:[/b:azmoqg2u]
harbour -gh -n plugin.prg
[b:azmoqg2u]To use it:[/b:azmoqg2u]
hbmk2 test.hbp plugin.hrb
Now we have a chance to fine tune the hbmk2 behavior when needed <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
hbmk2 plugins | Usando este plugin para hbmk2 podemos obtener los diferentes estados del proceso de construcción teniendo la oportunidad de modificar parámetros, etc
plugin.prg
[code=fw:1x9wxvp0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> hbmk2_plugin<span style="color: #000000;">(</span> hbmk2 <span style="color: #000000;">)</span><br /><br /> hb_MemoWrit<span style="color: #000000;">(</span> hbmk2<span style="color: #000000;">[</span> <span style="color: #ff0000;">"cSTATE"</span> <span style="color: #000000;">]</span> + <span style="color: #ff0000;">".txt"</span>, hb_jsonEncode<span style="color: #000000;">(</span> hbmk2, .T. <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1x9wxvp0]
[b:1x9wxvp0]Para construirlo:[/b:1x9wxvp0]
harbour -gh -n plugin.prg
[b:1x9wxvp0]Para usarlo:[/b:1x9wxvp0]
hbmk2 test.hbp plugin.hrb
Ahora tenemos una oportunidad para afinar el comportamiento de hbmk2 cuando sea necesario <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
hbmk2 plugins | Saludos desde Venezuela !
Antonio podrias ser mas especifico en el uso de este plugins ( como aplicarlo ) |
hbmk2 problem | Over the past couple of years, there has been encouragement to use Harbor's hbmk2 to build applications.
My application is large, and with Antonio's guidance, I have attempted to build it using hbmk2
[b:2p4nv2tv]PLEASE NOTE: [/b:2p4nv2tv] The program builds without error using a .mak file, and also building with Visual Studio Community 2023 directly. So this is NOT a coding error.
I have done a series of eliminations, and extensive testing, and the following is the result:
[code=fw:2p4nv2tv]<div class="fw" id="{CB}" style="font-family: monospace;">oARhistory:<span style="color: #000000;">seek</span><span style="color: #000000;">(</span> dBegDate, .t. <span style="color: #000000;">)</span></div>[/code:2p4nv2tv]
oARhistory is a database object
The error returned is: [b:2p4nv2tv]marutilities.prg(106) Error E0030 Syntax error "syntax error at '('"[/b:2p4nv2tv]
The failure is that hbmk2 does not recognize more than the first parameter in the Seek() method. It will compile correctly if I comment out the 2nd parameter. In the database class, seek is defined as:
[code=fw:2p4nv2tv]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">METHOD</span> Seek<span style="color: #000000;">(</span> uExp, lSoft, lWildSeek, lCurRec <span style="color: #000000;">)</span></div>[/code:2p4nv2tv]
In this case, I am passing a value of TRUE for lSoft ( soft seek ).
This would suggest that hbmk2 is actually not processing the database class in FWH but using something native to Harbour itself.
Has anyone else experienced this ? If so, have you found a workaround ? If you are using hbmk2 perhaps you have some further guidance. Thank you.
( I know it is very popular to ask for a working sample. However, I believe the issue here is very specific and enough detail has been provided. It would be a challenge to try and write a small subset of code ) |
hbmk2 problem | Dear Tim,
I just coded this little PRG and hbmk2 properly builds it so I tend to think that there is a preprocessor issue. Please compile it using -p to generate a PPO file and please check if such line gets modified, maybe a define is changing the code, many thanks:
This code generates an obvious runtime error but not a compiling error. The compiler does not check classes, etc. It just check the syntax.
tim.prg
[code=fw:1h5anh3q]<div class="fw" id="{CB}" style="font-family: monospace;"><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> o, dToday := Date<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /><br /> o:<span style="color: #000000;">seek</span><span style="color: #000000;">(</span> dToday, .T. <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1h5anh3q]
tim.hbp
[code=fw:1h5anh3q]<div class="fw" id="{CB}" style="font-family: monospace;">-gui<br /><br />tim.prg<br /><br />-Ic:\fwh\include<br /><br />-Lc:\fwh\lib<br />-lfiveh32<br />-lfivehc32<br /><br />-lgdiplus<br />-lole32<br />-lOleDlg<br />-lversion<br /><br />xhb.hbc<br />hbmzip.hbc<br />hbziparc.hbc<br /><br />-ldflag=/NODEFAULTLIB:<span style="color: #000000;">msvcrt</span></div>[/code:1h5anh3q]
and this go.bat to build it:
[code=fw:1h5anh3q]<div class="fw" id="{CB}" style="font-family: monospace;">setlocal<br />call <span style="color: #ff0000;">"%ProgramFiles%<span style="color: #000000;">\M</span>icrosoft Visual Studio<span style="color: #000000;">\2</span>022<span style="color: #000000;">\C</span>ommunity<span style="color: #000000;">\V</span>C<span style="color: #000000;">\A</span>uxiliary<span style="color: #000000;">\B</span>uild<span style="color: #000000;">\v</span>cvarsall.bat"</span> x86<br />c:\harbour\bin\win\msvc\hbmk2 tim.hbp<br />endlocal</div>[/code:1h5anh3q] |
hbmk2 problem | I am seeing this:
oARhistory := TARhistory():New( 2 )
[b:2zh9h64v] oARhistory:(.T.)->( dbSeek( dBegDate ) )[/b:2zh9h64v]
while ! oARhistory:eof( ) |
hbmk2 problem | Dear Tim,
What header files .CH are you using from such PRG ? |
hbmk2 problem | For that .prg, just fivewin.ch and tdata.ch. I commented out the the tdata, though that has no reference to seek(), and it made no difference. So essentially, just fivewin |
hbmk2 problem | Dear Tim,
It seems as
oARhistory:seek( dBegDate, .t. )
is preprocessed into:
oARhistory:(.T.)->( dbSeek( dBegDate ) )
Please search in all your used CH files and look for dbSeek |
hbmk2 problem | Also, please comment this line in fwstd.ch
// #command SEEK <xpr> => dbSeek( <xpr> )
just in case the error comes from here |
hbmk2 problem | I made the change you suggested and have the same error.
I did a search of ALL .ch files in FWH, Harbour, and my program. I looked for instances of SEEK and DBSEEK
There were no re-defines in any of those
It is strange that clearly, as shown by the PPO, that :seek is being redefined, but just how seems to be avoiding us. |
hbmk2 problem | Dear Tim,
Please build my above example and lets see what you get
thank you |
hbmk2 problem | Antonio,
Yesterday was our 53rd wedding anniversary, so I took off most of the day.
I did the build this morning, and it comes up as it did with you.
I also defined o as a tdatabase():new( ) and it still shows, in the PPO, that the seek in correct.
So now I will need to continue searching for an include file that might redefine the seek.
Tim |
hbmk2 problem | Antonio,
In your example, the code:[b:3qvuae40]o:seek( dToday, .T. )[/b:3qvuae40] becomes:[b:3qvuae40]o:seek( dToday, .T. )[/b:3qvuae40] in the PPO
In my application, [b:3qvuae40]oARhistory:seek( dBegDate, .t. )[/b:3qvuae40]. becomes: [b:3qvuae40] oARhistory:(.T.)->( dbSeek( dBegDate ) )[/b:3qvuae40]
Clearly a #translate is active here. I have looked at:
+ All source code I have written
+ All FWH source in classes, functions, and winapi
+ All FWH\include files
+ All Harbour\include files
+ Any project include files
I can't find a seek( ) modification anywhere.
Do you have any other ideas on where to look ?
Tim |
hbmk2 problem | Dear Tim,
Do you use any #define on that PRG ? |
hbmk2 problem | There are no #define in that .prg
There are some elsewhere in the total application, but none of them show anything related to databases. |
hbmk2 problem | Dear Tim,
Then I would suggest to completely remove all the files in FWH\include and reinstall them
If that does not solve it, then you should do the same with harbour\include folder |
hbmk2 problem | The easiest way to do that is to install the latest downloads from the FW subscription site.
That was no problem for FWH. However, the latest posted MVSC Harbour build is 3 years old, and it does not show a download.
Do you have a link to download the latest Harbour installation file ? Maybe there is a problem with the older version.
Tim |
hbmk2 problem | Dear Tim,
[url:6lpkjhvt]https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/harbour_msvc32_20230406.zip[/url:6lpkjhvt] |
hbmk2 problem | Unfortunately, that did not resolve the problem.
I also took the the .prg file and moved it to the top of the list so it didn't pick up any redefines from other files as it was compiling ( if that's a thing ).
It still has the same, original, error with that seek( x, y ) function.
It doesn't prevent me from building the application since I can do that with my bat/mak files. It only prevents me from using the recommended hbmak2.
Tim |
hbmk2 problem | Dear Tim,
Can you email me that PRG ?
many thanks |
hbmk2 problem | I found the problem ... but will follow up with an email:
The script for the .hbp says to use hbfoxpro.ch
In it, we have this redefine:
[b:2bcp71wq]#xtranslate SEEK( <x>, <wa> ) => (<wa>)->( dbSeek( <x> ) )[/b:2bcp71wq]
Removing that file solves the compile problem.
However, there are other issues and I will email you on those. |
hbmk2 problem | very good finding <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
hbmk2.exe 64 bits | Buenos días,
alguien tiene hbmk2.exe para 64 bits ?
Muchas gracias.
Saludos,
Felix |
hbnetio como configurarlo | Compañeros del foro.
Como se configura hbnetio, donde puedo encontrar mas información.
Gracias |
hbnetio.lib para xHarbour | aludos al forum
Existe esta hbnetio.lib para xHarbour, si existe me la podrian facilitar. |
hbnetio.lib para xHarbour | No encuentro nada ne el SVN de xHarbour.
Desculpame por mi espanol.
EMG |
hbnetio.lib para xHarbour | nO, He buscado en la descargas de xHarbour y no hay nada, solamente en Harbour |
hboleaut | Guys,
I am using Harbour dan Microsoft Visual C. I am currently trying to set connecting from Harbour to MS SQL Server. I read from this forum that it can achieved by using ADORDD. Since I am using Harbour, supposedly I will need adordd.lib and hboleaut.lib.
I have found the adordd source code but I am still missing the hboleaut source code and I can't find it anywhere in the Harbour GitHub.
Can someone point me to the right direction on how to accomplish this? Thanks.
Regards,
Teddy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.