Forum > Windows
Pascal version of the UCI Filter program
Thaddy:
The equivalent of a C char is usually a byte, not a Pascal char.
TRon:
A byte is equivalent to a unsigned char.
Thaddy:
That is compiler dependant. You can only assume that the size is sizeof(byte). See remark in ctypes.
Roland57:
Thank you all for your answers.
I wonder if my buffers are properly initialized, here :
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure GuiNachEngine(pFilter: PFilterDaten);// ...begin // ... lp.hDatei := pFilter^.hVonGui; lp.Groesse := 10000; lp.pPuffer := StrAlloc(lp.Groesse + 1); //FillChar(lp.pPuffer, lp.Groesse * SizeOf(ansichar), #0); StrPCopy(lp.pPuffer, StringOfChar(#0, lp.Groesse));
And here :
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function EngineNachGui(pParam: Pointer): DWORD; stdcall;// ...begin // ... pFilter := PFilterDaten(pParam); lp.hDatei := pFilter^.hVonEngine; lp.Groesse := 10000; lp.pPuffer := StrAlloc(lp.Groesse + 1); //FillChar(lp.pPuffer, lp.Groesse * SizeOf(ansichar), #0); StrPCopy(lp.pPuffer, StringOfChar(#0, lp.Groesse));
TRon:
Is the text output from the server still garbled ? or does the engine not respond ?
What platform is the engine running on, and what platform the client ? (the UCI documentation mentions some specifics)
Navigation
[0] Message Index
[#] Next page
[*] Previous page