topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
Build with Visual Studio 2015 errors | I will test it when it arrives. Thank you. |
Build with Visual Studio 2015 errors | Thanks to you for your great feedback and for making us aware of the new MS tools <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Build with Visual Studio 2015 errors | The only problem is that these new FWH libs are not backwards compatible. I just tested them
They require the new Harbour and VS2015 |
Build with Visual Studio 2015 errors | Antonio,
I have no problem with that. VS 2015 is on a test machine with Win 10. My current "production" computer will not be affected. I simply copy source code from the production machine to the test machine where the new libs will be found.
Tim |
Build with Visual Studio 2015 errors | very good <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Build with Visual Studio 2015 errors | OK ...
I still have 3 problems: UNDEFINED
__vaCopy in _hb_vsnprintf found in hbcommon.lib
__iob_func in hbssl.lib ( I don't think you rebuilt this one )
_except_handler4_ommon in MSVCRTD.lib though I told it not to link this file by default ... it still goes to it.
Tim |
Build with Visual Studio 2015 errors | Tim,
Please try to link vcruntime.lib too |
Build with Visual Studio 2015 errors | That took care of the MSVCRT issue, but not hbssl and hbcommon libs. |
Build with Visual Studio 2015 errors | Tim,
I have never built hbssl myself, so I will have to check how to do it...
As far as I know we have to use OpenSSL
maybe some hbssl user can help us here |
Build with Visual Studio 2015 errors | I am trying to build it this way:
c:\harbour\contrib\hbssl>c:\harbour\bin\hbmk2 hbssl -comp=msvc
hbmk2: Building sub-project (level 2): hbssls.hbp
hbmk2[hbssls]: Warning: Missing dependency: openssl
Surely Rafa Carmona or another FWH user may be able to help us on this |
Build with Visual Studio 2015 errors | Antonio, creo, pero no lo he usado nunca, que has de tener instalado el OpenSSl en C:\OpenSSl...
He encontrado esto
¿ <!-- m --><a class="postlink" href="http://www.openssl.org/source/openssl-0.9.8h.tar.gz">http://www.openssl.org/source/openssl-0.9.8h.tar.gz</a><!-- m --> ?
Pero no se si es la version a utilizar
<!--... |
Build with Visual Studio 2015 errors | Cristobal,
These are the steps that Rafa Carmona explained:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=23539&p=157479&hilit=openssl#p126479">viewtopic.php?f=6&t=23539&p=157479&hilit=openssl#p126479</a><!-- l -->
Lets see if we can build it... |
Build with Visual Studio 2015 errors | [url:1muzlab6]http://developer.covenanteyes.com/building-openssl-for-visual-studio/[/url:1muzlab6] |
Build with Visual Studio 2015 errors | Before calling:
nmake -f ms\nt.mak
this call must be done:
call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
and I get this error:
[quote:1r9t1jxr]C:\openssl>nmake -f ms\nt.mak
Microsoft (R) Program Maintenance Utility Version 14.00.22310.1
Copyright (C) Microsoft Corporation. All rights r... |
Build with Visual Studio 2015 errors | Error solved removing the word "HANDLE" from line 556
Compiling... |
Build with Visual Studio 2015 errors | Next error:
[quote:1jc9cons] cl /Fotmp32\b_print.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /nol
2_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECA
-DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -D
B5 -DOPENSSL_NO... |
Build with Visual Studio 2015 errors | Solved changing line 381 of c:\openssl\crypto\bio\b_print.c this way:
*num = ( short ) currlen;
Next error:
[quote:1v0chur3] cl /Fotmp32\rand_win.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /no
32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPREC
-DOPENSSL... |
Build with Visual Studio 2015 errors | Solved comenting the line 404 of c:\openssl\crypto\rand\rand_win.c
// MODULEENTRY32 m;
next error:
[quote:dfss9ztf] cl /Fotmp32\rand_win.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN
32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NO... |
Build with Visual Studio 2015 errors | Solved with these changes in c:\openssl\crypto\rand\rand_win.c line 544:
[code=fw:1witi5wg]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #B900B9;">// m.dwSize = sizeof(MODULEENTRY32);</span><br /> ... |
Build with Visual Studio 2015 errors | Next error:
[quote:2ba9etr4] link /nologo /subsystem:console /opt:ref /out:out32\constant_time_test.exe @C:\Users\ADMINI~1\AppData\Local\Temp\nmF6
D2.tmp
constant_time_test.obj : error LNK2019: unresolved external symbol ___iob_func referenced in function _main
C:\Program Files (x86)\Microsoft Visual Studio 14.... |
Build with Visual Studio 2015 errors | These libs have been already built:
c:\openssl\out32\libeay32.lib
c:\openssl\out32\ssleay32.lib
Not sure what else we need now... |
Build with Visual Studio 2015 errors | According to hbssl.hbp we need these DLLs:
-depimplibs=openssl:../out32dll/libeay32.dll
-depimplibs=openssl:../out32dll/ssleay32.dll
-depimplibs=openssl:../dll/libeay32.dll
-depimplibs=openssl:../dll/ssleay32.dll
-depimplibs=openssl:../libeay32.dll
-depimplibs=openssl:../ssleay32.dll
We may try to solve the iob_func ... |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Using hbmk2.exe to build our FWH app 32 bits using Microsoft Visual Studio Community 2022:
test.hbp
[code=fw:37lszryg]<div class="fw" id="{CB}" style="font-family: monospace;">-gui<br /><br />-Ic:\fwh\include<br /><br />test.prg<br /><br />-Lc:\fwh\lib<br /><br />-lFiveH32<br />-lFiveHC32<br /><br />-lgdiplus<br />-lo... |
Build your FWH app using hbmk2.exe and MSVC 32&64 | 64 bits version using FWH 64 and MSVC 64 bits:
test64.hbp
[code=fw:1vo4spti]<div class="fw" id="{CB}" style="font-family: monospace;">-gui<br /><br />-Ic:\fwh\include<br /><br />test.prg<br /><br />-Lc:\fwh\lib<br /><br />-lFiveH64<br />-lFiveHC64<br /><br />-lgdiplus<br />-lole32<br />-lOleDlg<br />-lversion<br /><br... |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Hi Antonio,
What is the advantage of hbmk2.exe? |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Hakan,
Simplicity and easy of use |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Good Morning Antonio,
I can´t find download for MSVC 2019. Could I try it with MSVC 2022?
Which option should us choose in this screen?
[img:sbspese7]https://i.imgur.com/4qrUWuK.jpg[/img:sbspese7] |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Vilian,
> Could I try it with MSVC 2022 ?
Please use 2022
Please select "desenvolvimiento para desktop com C++" |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Thank you Antonio,
I'm tryng to compile a little samples, but it's showing the error message bellow:
[code=fw:3qyopxlp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">[</span>vcvarsall.bat<span style="color: #000000;">]</span> Environment initialized <span style="color: ... |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Vilian,
Please do this:
git clone <!-- m --><a class="postlink" href="https://github.com/harbour/core">https://github.com/harbour/core</a><!-- m --> harbour
so it gets cloned at c:\harbour |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Thank you <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Hola Antonio,
He seguido los pasos que indicas, pero tengo el siguiente error, usando el test.prg:
[img:ailgwjjz]https://tssemsa.com/sistemas/img/msvcharb.jpg[/img:ailgwjjz]
Que no encuentra la funcion BuildMenu()
Estoy utilizando el Harboour de MSVC20201019, Visual Studio 2022 y FWH22.03
Saludos
Carlos... |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Ya esta solucionado Antonio.
Le cambie el nombre a la funcion BuildMenu de tu Ejemplo a MenuSis y enlazo correctamente, y genero el ejecutable sin problema
No se porque no encontraba la funcion con el nombre original?
Saludos cordiales
Carlos |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Carlos,
Ya habiamos detectado ese bug y está arreglado para el próximo build de FWH <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Efectivamente la solución es cambiar el nombre de la función BuildMenu() |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Enterado Antonio, gracias.
Seguiré ahora con tratar de armar un proyecto que ya tengo funcionando con Borland, y que quiero ahora tener con MSVC.
Saludos
Carlos. |
Build your FWH app using hbmk2.exe and MSVC 32&64 | [quote="Antonio Linares":27h9xqew]Vilian,
Please do this:
git clone <!-- m --><a class="postlink" href="https://github.com/harbour/core">https://github.com/harbour/core</a><!-- m --> harbour
so it gets cloned at c:\harbour[/quote:27h9xqew]
Hi Antonio,
After cloning, what should I do? There is not any binary file b... |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Dear Hakan,
Please use these batch files to build Harbour 32 and 64 bits using Visual Studio Community 2022:
copy them into c:\harbour
You have to download OpenSSL 32 and 64 bits from here: [url:g3tvgk0z]https://slproweb.com/products/Win32OpenSSL.html[/url:g3tvgk0z] and
curl from here: [url:g3tvgk0z]http... |
Build your FWH app using hbmk2.exe and MSVC 32&64 | This is the right one for 64 bit:
[url:2fkc621u]https://slproweb.com/download/Win64OpenSSL_Light-3_0_2.exe[/url:2fkc621u]
And this for 32 bit:
[url:2fkc621u]https://slproweb.com/download/Win32OpenSSL_Light-3_0_2.exe[/url:2fkc621u]
EMG |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Antonio, para salir de dudas de una vez por todas....
Que version de ssl descargar tanto para bcc como para msvc? en sus versiones 32 y 64 bits.. |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Carlos,
Para 32 bits prueba con:
[url:jdzx6ezy]https://slproweb.com/download/Win32OpenSSL-3_0_2.exe[/url:jdzx6ezy]
Para 64 bits prueba con:
[url:jdzx6ezy]https://slproweb.com/download/Win64OpenSSL-1_1_1n.exe[/url:jdzx6ezy]
En la página de descargas tambien hay unas versiones "light" que podrí... |
Build your FWH app using hbmk2.exe and MSVC 32&64 | [quote="Antonio Linares":29fq6mfn]Carlos,
Para 32 bits prueba con:
[url:29fq6mfn]https://slproweb.com/download/Win32OpenSSL-3_0_2.exe[/url:29fq6mfn]
Para 64 bits prueba con:
[url:29fq6mfn]https://slproweb.com/download/Win64OpenSSL-1_1_1n.exe[/url:29fq6mfn]
En la página de descargas tambien ha... |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Dear Hakan,
We already explained it here:
<!-- l --><a class="postlink-local" href="https://forums.fivetechsupport.com/viewtopic.php?p=249800&sid=cf5b3f87e1f151243044e5d25dfd8ca0#p249800">viewtopic.php?p=249800&sid=cf5b3f87e1f151243044e5d25dfd8ca0#p249800</a><!-- l -->
Just run go32.bat to get Harbour 32 bits, or run... |
Build your FWH app using hbmk2.exe and MSVC 32&64 | Previous post updated including:
set HB_WITH_LIBHARU |
Build-in Querybuilder | Hi,
I want to implement a query-builder in an application.
Is there an easy way to verify the correct syntax before running the query?
The users of the application are engineers, so they know how to make queries.
I want that they enter something like :
[b:2zz268r6]NAME = 'FI123' OR PTDESC like '%B701%'[/b:2zz268r6]
T... |
Build-in Querybuilder | Marc,
Please review FWH function FWExpBuilder( cExp, oRs, nClrTxt, nClrBack )
This function is used from FWH\samples\fivedbu.prg so you can test it
[img:3jr40s39]https://bitbucket.org/fivetech/screenshots/downloads/exprbuilder.JPG[/img:3jr40s39] |
Build-in Querybuilder | Thank you Antonio,
That's a very good start. |
Build-in Querybuilder | Antonio,
I have tested it, but I have a problem.
I'm using a recordset.
I first call FWExpBuilder()
Then I call FWCheckExpression() to see if the result is ok, but I'm always get the error 'Variable does not exist' This is the fieldname of the oRs.
I tested it with FWH64 May 2016 (FWH 6.04 Revd Build-3) |
Build-in Querybuilder | Please copy here the expression that you build
In case that you are using a local variable, turn it into a public one |
Build-in Querybuilder | Here is a little test:
adoHaalPointselRecordset() returns the recordset.
[code=fw:2vk89msz]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">FUNCTION</span> tpsquery<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C8... |
Build-in Querybuilder | I found the mysql_error() in the mariadb functions to display the last sql-error, but don't know how to display it <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> |
Build-in Querybuilder | I found it with calling 'SHOW ERRORS' <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
Build.bat for MSVC 2015 | I have successfully been able to use the MSVC 2015 ( Community ) IDE to build both 32 bit and 64 bit versions of my application ( with nearly 100 .prg files ).
Prior to 16.03, I had no problem with UE Studio building a Harbour / MSVC 2013 / FWH app ( up to 16.02 ). However, with VS / VC 2015, Microsoft made some defi... |
Build.bat for MSVC 2015 | Tim,
To build an app using nearly 100 prgs you should use a batch and a makefile as explained here:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=162896#p162896">viewtopic.php?p=162896#p162896</a><!-- l --> |
Build.bat for MSVC 2015 | Here is the .mak file, but I get the error mak(27) : fatal error U1034: syntax error : separator missing
Line 27 references mServiceHistory.prg
[code=fw:1ashlmr7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#Microsoft VS2015 make sample, <span style="color: #000000;">(</span>c<span style="col... |
Build.bat for MSVC 2015 | Tim,
All PRGs names must be lowercase (name and extension)
Check that there are no tabs in line 47:
c:\Projects\MLS2015\Source\mServiceHistory.prg \ |
Build.bat for MSVC 2015 | I re-cased all lines.
I removed the offending line and re-entered it.
I still get the same error.
Tim |
Build.bat for MSVC 2015 | This works with hbmk2
m.bat
[code=fw:1echj2h5]<div class="fw" id="{CB}" style="font-family: monospace;">@echo off<br /><br /><br />SET PATH=C:\Program Files <span style="color: #000000;">(</span>x86<span style="color: #000000;">)</span>\Microsoft Visual Studio <span style="color: #000000;">14.0</span>\VC\;c:\f... |
Build.bat for MSVC 2015 | Tim,
Please remove the line that fails and try it again
Don't reenter it
Lets see if the error continues without it |
Build.bat for MSVC 2015 | Maurizio,
You appear to have a Borland path reference in there which I am not using.
Antonio,
It's not that line. Here is a modified go64.bat file. I modified it, and put it in the same folder as the .prg files.
[code=fw:1ehs2oof]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#Microsoft VS2015 m... |
Build.bat for MSVC 2015 | Tim ,
it can works with msvc or borland , for 32 or 64 bit .
Maurizio
<!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w --> |
Build.bat for MSVC 2015 | Tim,
Do you have the libs here ?
FWDIR=c:\fwh64
%FWDIR%\lib ?
Please check that they are there |
Build.bat for MSVC 2015 | The libs are all in the right place. I checked that before posting.
Everything builds, and the .obj files all link in, but then it replies that it cannot open the .lib files. If I comment some, then the first one it sees will generate the same message. |
Build.bat for MSVC 2015 | Tim,
> Here is a modified go64.bat file
Surely you meant a makefile filename
Please post here the msvc.tmp file that is created
The .bmp filenames are already listed in your RC file. You don't need to list them in this makefile |
Build.bat for MSVC 2015 | Yes,I meant a .mak file name.
There is no msvc.tmp file being created at this point. |
Build.bat for MSVC 2015 | Tim,
Could we have a TeamViewer (or similar) session ? |
Build.bat for MSVC 2015 | Sure ... I'll email you the info. |
Build.bat for MSVC 2015 | Problem solved:
Never forget to add a tab in front of each makefile line to execute |
Build.bat for MSVC 2015 | One more STOP
NMAKE : fatal error U1077: 'link' : return code '0x49d'
The command line was link @msvc.tmp /nologo /subsysterm:windows /NODEFAULTLIB:msvcrt > link.log
Tim |
Build.bat for MSVC 2015 | Tim,
Please post here the contents of link.log |
Build.bat for MSVC 2015 | The error is:
LINK : fatal error LNK1181: cannot open input file '%fwdir%\lib\FiveH64.lib'
In the .mak file:
echo %fwdir%\lib\FiveH64.lib %fwdir%\lib\FiveHC64.lib >> msvc.tmp
FiveH64.lib and FiveHC64.lib are in the C:\FWH64\lib folder
The path is:
FWDIR=c:\fwh64 |
Build.bat for MSVC 2015 | Tim,
Please replace %fwdir% with %FWDIR% |
Build.bat for MSVC 2015 | I already tried that. I tried again. It makes no difference.
I'm wondering if there is an issue with it not thinking this is a 64 bit app. It says it can't open the .lib file, not that it can't find it ( if that makes a difference ).
The files are from you and dated 3/30/16
I commented that one out and tried to s... |
Build.bat for MSVC 2015 | Tim,
Lets have another TeamViewer session <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Build.bat for MSVC 2015 | I sent you an email with the Team Viewer info and the computer is setup for you.
I also have a Go32.bat and a 32 bit mak file in a separate folder. That calls the 32 bit libs and it fails at exactly the same place. I did other testing where I commented out all Harbour and FWH libs, and it does link all of the window... |
Build.bat for MSVC 2015 | The problem continues. I'm using the .bat and .mak files discussed previously. We've had errors formatting the .mak file which are all corrected.
This is using Harbour, FWH 16.03, and MSVC 2015. This is to be a 64 bit build, but the linker is acting like it's a 32 bit build and giving the following error on ALL 64 ... |
Build.bat for MSVC 2015 | Tim,
VS vcvarsall.bat is not properly being called
VS vcvarsall.bat selects to work with 32 or 64 bits |
Build.bat for MSVC 2015 | The call is right, the file is there ... |
Build.bat for MSVC 2015 | Tim,
This error means that it is building in 32 bits mode:
library machine type 'x64' conflicts with [b:2upxskyh]target machine type 'X86'[/b:2upxskyh] |
Build.bat for MSVC 2015 | Yes, that is what I have been trying to point out.
By deduction:
1) Harbour translates .prg to .c. That is not specific to 32 or 64 bit ...
2) The C compiler translates .c to .obj. I don't know if that is specific to 32 or 64 bit.
3) The linker obviously thinks this is 32 bit code.
4) The .lib files are ALL... |
Build.bat for MSVC 2015 | Tim,
It is not a flag. When we call vcvarsall.bat with the right parameter, a different C compiler is selected. |
BuildCe.bat make easy... | Hi,
I made a program to automate the process of building exe and copy the exe to a directory mounted to emulator.
Screen capture:
[img:3aerv5ru]http://x2f.xanga.com/f93a70ea5043567634188/b45406435.jpg[/img:3aerv5ru]
What it does:
1. Open a source program
2. Compile it by calling BuildCE.bat
3. Copy t... |
BuildCe.bat make easy... | Paul,
Thanks for your contribution <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
BuildCe.bat make easy... | Download from here
[url:uyakxu8n]http://hyperupload.com/download/024e4bb231/BuildCE_MadeEasy.zip.html[/url:uyakxu8n]
Paul |
BuildComDcb() | I have a strange problem with BuildComDbc()....
When using the MicroSoft Bluetooth Stack if I try:
[b:2m5o7ic7]IF[/b:2m5o7ic7] BuildCommDcb( "COM"+alltrim(str(nComPort))+":9600,N,8,1", @cDcb )
Endif
It returns .f.
On the Toshiba Bluetooth Stack it returns .t.
Here is the strange part....
If I remove the "IF" a... |
BuildComDcb() | Jeff,
I had problems with FW-build in COM support and RDP.
I have substituted through this obj.
<!-- m --><a class="postlink" href="http://www.atzwanger-software.com/fw/COMTOOLS.ZIP">http://www.atzwanger-software.com/fw/COMTOOLS.ZIP</a><!-- m -->
Best regards,
Otto |
BuildComDcb() | Thanks Otto ... Is there a Com Write function? |
BuildComDcb() | Jeff,
yes.
I never tried these functions.
Best regards,
Otto
[code=fw:2yy4fuz7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//*****************************************************************************</span><br /><span style="color: #B900B9;">//*</span><br /><span style=... |
BuildComDcb() | Otto, I don't see where I can set the post speed, parity etc...
Am I missing something? |
BuildComDcb() | Best regards,
otto
[code=fw:166l6wdd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> COMOPEN <span style="color: #000000;">)</span> <span style="color: #B900B9;">// () --> nPorts</span><br /><span style="color: #000000;... |
BuildComDcb() | A copy of Otto's posted ComTools, thanks
[url:mqlcwgas]http://code.google.com/p/fivewin-contributions/downloads/detail?name=comtools.zip&can=2&q=[/url:mqlcwgas] |
BuildComDcb() | Not having any luck with this...
ComOpen returns .t. but ComWrite returns 0 |
BuildComDcb() | Try this terminal sample:
[code=fw:25s6lx94]<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=... |
BuildComDcb() | Thanks Enrico,
Your test program seems to be collecting data from com port...
I will need to modify my program to see if it solves the problem of connecting/disconnecting. With the MS stack I can only connect/disconnect about 4 times before the system locks up... This never happens with the Toshiba Stack. |
BuildComDcb() | [quote="Jeff Barnes":rwqd4907]Thanks Enrico,
Your test program seems to be collecting data from com port...[/quote:rwqd4907]
You can also send data hitting keys on the keyboard.
EMG |
BuildCommDCB | El problema que tengo con la funcion BuildCommDCB es que no configura el puerto com del PC. La utilizo de la siguiente manera:
[color=red:2h4jojyr]nComHandle:=OpenCom("COM4",1024,1024)
BuildCommDcb("COM4:9600,N,8,1", @cDcb)[/color:2h4jojyr]
Para configurarlo tengo que irme al MS-DOS y hacer lo siguiente:
[color=blue:2... |
BuildCommDCB | Verhoven,
Haz una búsqueda de BuildCommDCB() en los *.PRG de fwh\samples y verás como hay que usarlo |
BuildCommDCB | Gracias por contestar Antonio, he probado ya de todo y en varios ordenadores a ver si es que se tratara de un fallo por estar usando un puerto COM creado a través de uno USB con un cable conversor USB-RS-232. Pero NO.
[color=red:3ln94s7b]El problema es que la funcion BuildCommDCB no configura el puerto a lo que dice ... |
BuildCommDCB | Verhoven,
En realidad BuildCommDcb() solo rellena la información de una esctructura "DCB". En realidad la función que aplica esos valores es:
SetCommState()
y aqui es donde está la diferencia con los 16 bits. En Clipper se usa así:
SetCommState( cDcb ), pero en 32 bits se usa así: [color=red:3ff4yx50]SetCommState(... |
BuildCommDCB | Antonio he probado pero sigue igual. Te pongo el trozo de codigo para que puedas ver exactamente como lo hago:
function Prueba()
local lPortReady:=.f.
local nBytes :=0
local nError :=0
local cTexto :='Prueba escritura RS-232'
local [color=green:2zn8ihxe]cPort:='4', cSpeed:='9600'[/color:2zn8ihxe]
... |
BuildCommDCB: flow control strings | Hello all.
I know that BUILDCOMMDCB( "COM1:9600,N,8,1", @cDcb ) opens the COM1: port, but how to enable flow control ?
I've read at <!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/aa363143%28VS.85%29.aspx">http://msdn.microsoft.com/en-us/library ... 85%29.aspx</a><!-- m --> that the paramet... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.