topic
stringlengths
1
63
text
stringlengths
1
577k
Artificial intelligence - Class TPerceptron
OK, I found the problem! It only occurs when I copy code from the forum. Sometimes there are special characters (invisible) instead of spaces indenting the code. I this case it was this line: [code=fw:35ao5vy2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">CLASS</span> TPercep...
Artificial intelligence - Class TPerceptron
Ok, normally you use 3 spaces to indent. These are hex 20,20,20. Some of the lines in the Perceptron code indented with spaces but others are indented with A0,20,A0. This causes a syntax error by the compiler. I am at a loss as to how code that was working, can then be uploaded to the forum and end up with the A0,20,...
Artificial intelligence - Class TPerceptron
James, I copied from the posted code and did a past with my editor. Maybe Your used EDITOR is the problem ? regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Artificial intelligence - Class TPerceptron
The problem is a bug in MS Edge. Try with IE and it will work fine. EMG
Artificial intelligence - Class TPerceptron
Enrico, [quote:3qv9r2wi]The problem is a bug in MS Edge. Try with IE and it will work fine.[/quote:3qv9r2wi] Thanks so much for that tip. I am using Edge. I'll try to remember the next time I copy text to use IE. I have been using Edge for a couple of years now and I never had that problem before. I suppose the bug ...
Artificial intelligence - Class TPerceptron
Antonio, Pardon me for accidentally hijacking your thread. I have found a good article about preceptrons: [url=https&#58;//appliedgo&#46;net/perceptron/:1ckugwjd]Perceptrons - the most basic form of a neural network[/url:1ckugwjd] James
Artificial intelligence - Class TPerceptron
I've been looking for some old source code to prove it to myself but this looks very similar to what I was taught as Predictor/Corrector methods back in the mid-80s when I was working on my mechanical engineering degree. I had forgotten about it until reading this code. If I remember correctly, for learning purposes, w...
Artificial intelligence - Class TPerceptron
[quote="James Bott":1oab6g2e]Enrico, [quote:1oab6g2e]The problem is a bug in MS Edge. Try with IE and it will work fine.[/quote:1oab6g2e] Thanks so much for that tip. I am using Edge. I'll try to remember the next time I copy text to use IE. I have been using Edge for a couple of years now and I never had that probl...
Artificial intelligence - Class TPerceptron
[quote="rhlawek":37plpnov]I've been looking for some old source code to prove it to myself but this looks very similar to what I was taught as Predictor/Corrector methods back in the mid-80s[/quote:37plpnov] Yes, it's a very old concept. But still interesting. EMG
Artificial intelligence - Class TPerceptron
Pedro Domingos name them "learners": software that can "learn" from data. The simplest way of learning from data is comparing two bytes. How ? Substracting them: A zero means they are equal, different from zero means they are different. The difference between them is the "error". To correct the error, we modify a "wei...
Artificial intelligence - Class TPerceptron
[img:3eaqkasd]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/perceptron&#46;JPG[/img:3eaqkasd]
Artificial intelligence - Class TPerceptron
[img:34qo88ic]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/redNeuronal&#46;JPG[/img:34qo88ic] Perceptrón [b:34qo88ic]Multicapa[/b:34qo88ic]
Artificial intelligence - Class TPerceptron
C and C++ source code: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=33946&p=202105#p202104">viewtopic.php?f=6&t=33946&p=202105#p202104</a><!-- l -->
Artificial intelligence - Class TPerceptron
David Miller C++ code ported to Harbour: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=202115#p202115">viewtopic.php?p=202115#p202115</a><!-- l --> Don't miss to try your first neural network <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" />...
Artificial intelligence - Class TPerceptron
Inspecting the neural network: [code=fw:2s7helmi]<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;">&#40;</span><span style="...
Artificial intelligence - Class TPerceptron
[b:2wih07x9]Teaching a perceptron to multiply a number by 2:[/b:2wih07x9] [code=fw:2wih07x9]<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=...
Artificial intelligence - Class TPerceptron
Antonio, Inteligência Artificial <!-- m --><a class="postlink" href="https://www.facebook.com/504184556441407/videos/568926636633865">https://www.facebook.com/50418455644140 ... 6636633865</a><!-- m --> <!-- m --><a class="postlink" href="https://www.youtube.com/watch?v=h0DyYLLf3m8">https://www.youtube.com/watch?v=...
Artificial intelligence - Class TPerceptron
[url:3alvrg4b]http&#58;//www&#46;learnartificialneuralnetworks&#46;com/neural-network-software/backpropagation-source-code/[/url:3alvrg4b]
Artificial intelligence - Class TPerceptron
[url:1wg8s8mx]https&#58;//github&#46;com/alkresin/hrb4fann[/url:1wg8s8mx] [url:1wg8s8mx]http&#58;//leenissen&#46;dk/[/url:1wg8s8mx] [url:1wg8s8mx]https&#58;//github&#46;com/libfann/fann[/url:1wg8s8mx] FannTool: [url:1wg8s8mx]https&#58;//bitbucket&#46;org/birolkuyumcu/fanntool/downloads/[/url:1wg8s8mx] documentation...
Artificial intelligence - Class TPerceptron
[b:39azm5uk]Scaled value:[/b:39azm5uk] ( Input Value - Minimum ) / ( Maximum - Minimum ) [b:39azm5uk]Descaled value (Input Value):[/b:39azm5uk] ( Scaled value * ( Maximum - Minimum ) ) + Minimum
Artificial intelligence - Class TPerceptron
Test of scaling and descaling values: Scaling: ( value - minimum ) / ( Maximum - Minimum ) 0 --> ( 0 - 0 ) / ( 9 - 0 ) --> 0 1 --> ( 1 - 0 ) / ( 9 - 0 ) --> 0.111 2 --> ( 2 - 0 ) / ( 9 - 0 ) --> 0.222 3 --> ( 3 - 0 ) / ( 9 - 0 ) --> 0.333 4 --> ( 4 - 0 ) / ( 9 - 0 ) --> 0.444 5 --> ( 5 - 0 ) / ( 9 - 0 ) --> 0.555...
Artificial intelligence - Class TPerceptron
In TensorFlow we have the [b:2dhjlltl]Softmax[/b:2dhjlltl] function which transforms the output of each unit to a value between 0 and 1, and makes the sum of all units equals 1. It will tell us the probability of each category [url:2dhjlltl]https&#58;//medium&#46;com/@Synced/big-picture-machine-learning-classifying-te...
Artificial intelligence - Class TPerceptron
Hola ! Articulo interesante que ayuda a entrar en este mundillo... <!-- m --><a class="postlink" href="https://blogs.elconfidencial.com/tecnologia/tribuna/2017-09-02/deep-learning-demonios-explicacion_1437007/">https://blogs.elconfidencial.com/tecnol ... n_1437007/</a><!-- m --> Saludetes.
As I can define this function to use in the FWH/xHarbour ?
Antonio, As I can define this function to use in the FWH/xHarbour ? [code:2hp6kag5]CreateTerWindow Open a TER Window&#58; HWND CreateTerWindow&#40;ptr&#41; struct arg_list far *ptr; The ptr argument points to a structure that provides the initial parameters to open a window&#46; This structure includes the ...
As I can define this function to use in the FWH/xHarbour ?
Vilian, The easiest way is to fill the C structure from C code: [code:2hxidul6] #pragma BEGINDUMP #include <windows&#46;h> #include <hbapi&#46;h> HB_FUNC&#40; CREATETERWINDOW &#41; &#123; struct arg_list ptr; &#46;&#46;&#46; fill the ptr &#46;&#46;&#46; members using hb_par&#46;&#46;&#46;&#40; x &#41;, i&#4...
As I can define this function to use in the FWH/xHarbour ?
Antonio, When I try to compile appear the following messages: [code:17v8cehx]Error E2450 \\tec2000\\sig50\\SIG241&#46;PRG 1410&#58; Undefined structure 'arg_list' in function HB_FUN_CREATETERWINDOW Error E2449 \\tec2000\\sig50\\SIG241&#46;PRG 1410&#58; Size of 'ptr' is unknown or zero in function HB_FUN_CREATETERWIN...
As I can define this function to use in the FWH/xHarbour ?
Try it this way: [code:2it2b738] #pragma BEGINDUMP #include <windows&#46;h> #include <hbapi&#46;h> HWND CreateTerWindow&#40; &#46;&#46;&#46; &#41;; HB_FUNC&#40; CREATETERWINDOW &#41; &#123; hb_retnl&#40; &#40; ULONG &#41; CreateTerWindow&#40; hb_parnl&#40; 1 &#41;, // x ...
As I can define this function to use in the FWH/xHarbour ?
Antonio, Thanks.
As I can define this function to use in the FWH/xHarbour ?
[quote="vilian":305k87st]Antonio, Thanks.[/quote:305k87st]Hola Vilian,Conseguistes funcionar CreateTerWindow() desde FWH?Cómo?SaludosCarlos G.
As I can define this function to use in the FWH/xHarbour ?
Sim, o suporte de subsystem é excelente e ajudou muito.[code:30dxv44v]xDll &#58;= LoadLib32&#40;"TER15&#46;DLL"&#41; TerSetLicenceKey&#40;"XXXX-XXXX-XXXX"&#41; DEFINE WINDOW oWndEdt TITLE "Editor de Laudos" MDICHILD OF oWnd DEFINE BUTTONBAR oBar 3D SIZE 22,27 TOP OF oWndEdt DEFINE BUTTON NAME ...
As I can define this function to use in the FWH/xHarbour ?
[quote="vilian":1bya4kxv]Sim, o suporte de subsystem é excelente e ajudou muito. [code:1bya4kxv]xDll &#58;= LoadLib32&#40;"TER15&#46;DLL"&#41; TerSetLicenceKey&#40;"XXXX-XXXX-XXXX"&#41; DEFINE WINDOW oWndEdt TITLE "Editor de Laudos" MDICHILD OF oWnd DEFINE BUTTONBAR oBar 3D SIZE 22,27 TOP OF oWndEdt ...
As byte
Estoy usando un control activeX, y necesito llamar un metodo y pasarle un parmetro, dicho parametro espera recibirlo del tipo array de bytes (ByRef aRawData() As Byte) ). Alguna idea para pasarselo desde harbour. El parametro es el contenido de un fichero binario. En VB se hace de la siguiente forma: [code=fw:3sa6kv...
As byte
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=16746">viewtopic.php?f=3&t=16746</a><!-- l -->
As byte
Hola... Perdón por entrar a este post con otro tema... Escribo para comentarle a Biel que estuve mirando su blog y dejé un comentario en el topic de Compresión y descrompresión de ficheros Zip... Tuve algunos problemitas con sus funciones, y quizá amablemente podría darme una mano. Desde ya muchas gracias, y nuevamente...
As byte
Esteban, te he contestado en el blog.
As byte
[quote="Antonio Linares":3p4peptw]Biel, This is obvious, but have you tried it in this order ? [code=fw:3p4peptw]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oTmp:<span style="color: #000000;">Deserialize</span><span style="color: #000000;">&#40;</span> xVar2<span style="color: #000000;">&#41;</span...
As byte
Hola Biel... No he probado esto, pero puedes intentar de esta manera... [code=fw:w34mz90n]<div class="fw" id="{CB}" style="font-family: monospace;"><br />....<br />Serialize<span style="color: #000000;">&#40;</span> oAx, xVal <span style="color: #000000;">&#41;</span><br />...<br /><br /><span style="color: #00D7D7;"...
As byte
Biel, Que ActiveX es ? Hay demo de él ?
As byte
Biel, Pensando en el asunto, has probado esto ? [code=fw:34pzwcio]<div class="fw" id="{CB}" style="font-family: monospace;"><br />xVar2 := xVar1<br />oTmp:<span style="color: #000000;">Deserialize</span><span style="color: #000000;">&#40;</span> xVar2 <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:...
As byte
[quote="Daniel Garcia-Gil":10ul4lxa]Hola Biel... No he probado esto, pero puedes intentar de esta manera... [code=fw:10ul4lxa]<div class="fw" id="{CB}" style="font-family: monospace;"><br />....<br />Serialize<span style="color: #000000;">&#40;</span> oAx, xVal <span style="color: #000000;">&#41;</span><br />...<br /...
As byte
[quote="Antonio Linares":3biwmw41]Biel, Pensando en el asunto, has probado esto ? [code=fw:3biwmw41]<div class="fw" id="{CB}" style="font-family: monospace;"><br />xVar2 := xVar1<br />oTmp:<span style="color: #000000;">Deserialize</span><span style="color: #000000;">&#40;</span> xVar2 <span style="color: #000000;">&#4...
As byte
Biel, Me parece que es un bug generado entre el soporte de OLE y el ItemApi. Te explico mis razones: 1. El valor que viene devuelto del ActiveX se pasa de Variant a Item de Harbour/xHarbour usando: hb_oleVariantToItem() 2. Puesto que es de tipo "C", se ha llamado a la función hb_itemPutCPtr(): [code=fw:1exkgrmk]<di...
As byte
[url:1r1ocu1n]http&#58;//www&#46;matrixlist&#46;com/pipermail/harbour/2009-September/025325&#46;html[/url:1r1ocu1n]
As byte
Biel, Este cambio en olecore.c deberia solucionar el bug: [code=fw:12t53931]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> VT_BSTR:<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbs...
As byte
Muchas gracias Antonio por el tiempo dedicado, para mi hubiera sido imposible localizarlo. No he podido comprobar el funcionamiento, hoy salgo de viaje, pero cuando regrese de Andorra, interar compilar los cambios y te comento.
As byte
Biel, El bug fué arreglado unos dias antes en el propio repositorio de Harbour <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Solo hay que volver a construir un nuevo build de Harbour y listo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /...
As download a file from xharbour in a fixed route without q
WaitRun(iexplore()+"http://www.aduanet.gob.pe/aduanas/sgdbf/Vehiculos.zip") As download a file from xharbour in a fixed route without q the users the route
As to catch return of oActiveX:Do
hi, I need to catch the return of the following command: oActiveX&#058;Do("TerSearchReplace2","rich","",SRCH_SEARCH,N,0) According to documentation of the [b:r6eul5q6]TerSearchReplace2[/b:r6eul5q6] component would have to return a numerical value.
As to catch return of oActiveX:Do
Vilian, Try: MsgInfo( oActiveX&#058;Do("TerSearchReplace2","rich","",SRCH_SEARCH,N,0) )
As to catch return of oActiveX:Do
Antonio, Already I tried thus and is returning NIL.
As to catch return of oActiveX:Do
Antonio, Studying activex.prg with the aid of the Gilmer, we perceive that the Do() method treats only 4(four) parameters. But necessary TerSearchReplace2 of 5(five). We try to make thus: nPos := ActXInvoke( ActXPdisp( oActiveX&#058;hActiveX ),"TerSearchReplace2","rich","",SRCH_SEARCH,N,0) But also it did not funct...
As to catch return of oActiveX:Do
Vilian, Are you using Harbour or xHarbour ?
As to catch return of oActiveX:Do
Antonio, I use xHarbour.
As to catch return of oActiveX:Do
Vilian, Please do this: tlib fivehc.lib - ole.obj then add these functions to your app: [code:3lygq5xq] function OleGetProperty&#40; hObj, cPropName &#41; local o &#58;= TOleAuto&#40;&#41; local uRet o&#58;hObj = hObj uRet = __ObjSendMsg&#40; o, cPropName &#41; o&#58;hObj = nil return uRet functio...
As to catch return of oActiveX:Do
Antonio, Later that I made what you asked for started to occur the following error: [code:2j2av2ya]Application =========== Path and name&#58; F&#58;\FWH\SAMPLES\pdf&#46;exe &#40;32 bits&#41; Size&#58; 1,306,624 bytes Time from start&#58; 0 hours 0 mins 0 secs Error occurred at&#58; 07/31/07, 09&#58;38&#5...
As to catch return of oActiveX:Do
Antonio, I changed OleInvoke for the following one: [code:288w5goi]function OleInvoke&#40; hObj, cMethName, uPar1, uPar2, uPar3, uPar4, uPar5 &#41; local o &#58;= TOleAuto&#40;&#41; local uRet o&#58;hObj = hObj IF uPar2 # NIL uRet = o&#58;Invoke&#40; cMethName, uPar1, uPar2, uPar3, uPar4, uPar5 ...
As to catch return of oActiveX:Do
Vilian, > ? OleInvoke(oActivex&#058;hWnd, ... That is not correct, as the first parameter is NOT the hWnd. It has to be OleInvoke( ActXPdisp( oActivex&#058;hActiveX ), ...
As to catch return of oActiveX:Do
Antonio, Very grateful. Now he was ok.
As to catch return of oActiveX:Do
Antonio, Now necessary to implement keyboard key accelerator(Sample: CTRL+P to print). I made thus: [code:1sohd6hx] oActiveX&#58;bOnEvent &#58;= &#123; | event, nKey | EventInfo&#40; event, nKey &#41; &#125; STATIC FUNCTION EventInfo&#40;event, nKey&#41; IF Upper&#40;event&#41; $ "KEYPRESS,KEYDOWN" IF ...
As to catch return of oActiveX:Do
have you tried with two params ? oActiveX&#058;bOnEvent := { | event, nKey1, nKey2 | EventInfo( event, nKey1, nKey2 ) }
As to catch return of oActiveX:Do
Antonio, Yes, i tried with four params. oActiveX&#058;bOnEvent := { | event, nKey1, nKey2, nKey3, nKey4 | EventInfo( event, nKey1, nKey2, nKey3, nKey4 ) } The return is: nKey1 = array empty nKey2 = 1242696 ever(constant) nKey3 = NIL nKey4 = NIL
As to catch return of oActiveX:Do
Vilian, Analize the value 1242696 according to WM_KEYDOWN docs: <!-- m --><a class="postlink" href="http://msdn2.microsoft.com/en-us/library/ms646280.aspx">http://msdn2.microsoft.com/en-us/library/ms646280.aspx</a><!-- m --> unless that activex provides different parameters
As to catch return of oActiveX:Do
Antonio, I verified the topic that you he suggested, I identified some functions for the treatment of messages, but I did not understand as they can help me !
As to catch return of oActiveX:Do
Vilian, Do you always get 1242696 no matter what key you press ?
As to catch return of oActiveX:Do
Antonio, any one.
As to catch return of oActiveX:Do
Do you get that value without pressing a key ? What documentation about such event does your activex provides ?
As to catch return of oActiveX:Do
Antonio, On these specific events the following text only exists: [code:21dqwyrg]Standard events&#58; The control supports these standard events&#58; Click, Double click, Got Focus, and Lost Focus, KeyDown, KeyPress, KeyUp&#46; The KeyDown, KeyPress and KeyUp event take one integer parameter which passes the value ...
As to catch return of oActiveX:Do
Vilian, You may need to modify these methods in Class TActiveX&#058; METHOD KeyChar() VIRTUAL METHOD KeyDown() VIRTUAL
As to catch return of oActiveX:Do
Antonio, I made the modification, but nothing he modified in the result.
As to catch return of oActiveX:Do
Vilian, I don't know, don't have more ideas <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> Thats the problem with ActiveX (same as old Microsoft VBXs). We don't have their source code and we don't have full control over them
As to catch return of oActiveX:Do
Antonio, If you to install the control in its computer help to decide the problem?
As to catch return of oActiveX:Do
Antonio, I asked to the support of them - Exists some another way to implement what necessary? The support technician of them returned me the following one: [code:12kvpa9c] If your application lets you define callback function, then you can use the TerRegisterMsgCallback function to register your callback funct...
As to catch return of oActiveX:Do
Vilian, > You can instead use the PreProcess event for this purpose. Whats that ? Tell him to explain you whats the PreProcess event and a sample of its use
As your functions/methods become more complex
Hello friends, As your functions/methods become more complex, splitting up, preprocessing and patching helps to simplify source code. Best regards, Otto [url:3acgq6ut]https&#58;//www&#46;facebook&#46;com/groups/modharbour&#46;club/?multi_permalinks=1190790684808490[/url:3acgq6ut]
As your functions/methods become more complex
Hello friends, Here you can see an example of how to simplify a really complex source code like xBrowse with a patcher. Best regards, Otto [img:1du4aww0]https&#58;//mybergland&#46;com/harbourinoxbrowse_clip3&#46;jpg[/img:1du4aww0] [img:1du4aww0]https&#58;//mybergland&#46;com/harbourinoxbrowse_clip4&#46;jpg[/img:1du4a...
AscW() function
Hi, all ! VBA (Excel) has an AscW() function. It is used to obtain the Unicode character code. How do I do this on FW ?
AscW() function
Please try [code=fw:3igwcobk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />HB_UTF8CHR<span style="color: #000000;">&#40;</span> nChar <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3igwcobk] Maybe that is what you are looking for.
AscW() function
[url=https&#58;//docs&#46;microsoft&#46;com/it-it/dotnet/api/microsoft&#46;visualbasic&#46;strings&#46;ascw?view=netframework-4&#46;8:16ayodgd]AscW[/url:16ayodgd] return the unicode value from character or string. I think the Harbour version is HB_UTF8ASC: [code=fw:16ayodgd]<div class="fw" id="{CB}" style="font-family:...
AscW() function
Yes, Mr. Antonio And thanks for the correction.
AscW() function
Yes, the HB_UTF8Asc() function suits me, but it is not available for FWH18.06
AscW() function
This is not FWH function. This is a Harbour function available both in Harbour and xHarbour.
AscW() function
I downloaded xHarbour Binaries 1.2.3 Rev. 10252 for BCC 5.8.2 with xharbour.org But when linking the hb_utf8asc function is not detected
AscW() function
I confirm: there is no hb_utf8asc() function in xHarbour. I can try to add it to xHarbour, if you really need it. EMG
AscW() function
Yes, I do. I will be very grateful to you
AscW() function
Ok, I'll see what I can do... EMG
AscW() function
Please, try this function and let me know if there are any problems: [code=fw:32iwsqm5]<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...
AscW() function
Latin's fine. However, this function returns incorrect Unicode Cyrillic characters
AscW() function
Can you send me a sample showing the problem, please? EMG
AscW() function
Working correctly for me with this test: [code=fw:2u3b65fi]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n, c<br /><br />&nbsp; &nbsp;n &nbsp;:= 0xE100<br />&nbsp; &nbsp;c &nbsp;:= HB_UTF8CHR<span style="color: #000000;">&#40;</span> n <span styl...
AscW() function
I didn't understand. There is a character with a code of 128 (1 byte) If you convert this character to Unicode it will consist of 2 bytes and its code will be 1040. How can I do this through the HB_UTF8ASC function() ?
AscW() function
Sorry, I'm not familiar with Unicode. Just give me a sample showing the problem and I'll see what I can do. EMG
AscW() function
From the beginning, we are going in the wrong direction. I am sorry for this deviation. This is not conversion to and from UTF8 but of WideChar. (16bit char encoding). Windows internally works with WideChar, i.e., 64 bit (little endian) characters. In 8bit notation "AB" is "4142" in hex In 16bit notation "AB" is "...
AscW() function
So, what's the point? EMG
AscW() function
BIN2W( cWideString ) should give the value equivalent to AscW()
AscW() function
This small program demonstrates that BIN2W() works like AscW() [code=fw:jekzyezc]<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: #000...
AscW() function
So, what about HB_UTF8ASC()? Do we need it? EMG
AscW() function
[quote="Enrico Maria Giordano":32ivdfk6]So, what about HB_UTF8ASC()? Do we need it? EMG[/quote:32ivdfk6] We need it. This may not be what Mr. Natter is looking for but we need it in xHarbour. Harbour has both HB_UTF8CHR() and HB_UTF8ASC(). But xHarbour has only HB_UTF8CHR() but not HB_UTF8ASC(). Addition of this fun...
AscW() function
Done. Please try xHarbour build 10253. EMG
AscW() function
Thank you. FWH is now using HB_UTF8CHR(). There is no problem either with Harbour or xHarbour. Till now there is no need to use HB_UTF8ASC(). But, if and when the need arises, what shall we do? There will be many users of older versions of xHarbour. Looks like we need to force them to upgrade xHarbour. But what about...
AscW() function
They can use this code: [code=fw:3rsshez9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"error.ch"</span><br /><span style="color: #00D7D7;">#include</span> <s...