Hi all,
For my current project, I download a file from a server that contains
JSON code. I'm not sure how to read it into something that GetJSON is
able to handle.
My first thought was using TStrings, however not sure how to convert a
TString into TStream.
Any assistance would be much
Hi All,
I try to port a program from C to Pascal, see the following example:
#include stdio.h
#include sys/socket.h
#include linux/if.h
void main() {
printf(ifmap=%ld\n, sizeof(struct ifmap));
}
I converted it to:
est.c test.pas
X
program test;
{$mode objfpc}{$PACKRECORDS C}
type
Xiangrong Fang wrote:
program test;
{$mode objfpc}{$PACKRECORDS C}
type
ifmap = record
mem_start: dword;
mem_end: dword;
base_addr: word;
irq: byte;
dma: byte;
port: byte;
end;
begin
WriteLn('ifmap=', SizeOf(ifmap));
end.
The C struct's size is 24, but
Xiangrong Fang wrote:
It seems that $packrecord does not work at all.
It works fine.
I did some research and
found this document:
http://www.freepascal.org/docs-html/ref/refsu19.html
The documentation seems to be outdated regarding the alignment of
arrays. Arrays probably used to be
It seems that $packrecord does not work at all. I did some research and
found this document:
http://www.freepascal.org/docs-html/ref/refsu19.html
compiled and ran the example on that page, I got:
Size Trec1 : 4 Offset B : 2
Size Trec2 : 3 Offset B : 1
Size Trec3 : 2 Offset B : 1
Size Trec4 :
On Thu, Aug 6, 2015 at 10:37 PM, Chris Moody
inqu...@greensnakedesign.com wrote:
For my current project, I download a file from a server that contains JSON
code. I'm not sure how to read it into something that GetJSON is able to
handle.
My first thought was using TStrings, however not sure
I download a file from a server that contains JSON code. I'm not sure how
to read it into something that GetJSON is able to handle.
Can't you figure out from the function interface:
http://www.freepascal.org/docs-html/fcl/fpjson/getjson.html
--
View this message in context:
On Do, 2015-08-06 at 01:11 -0700, Chris Moody wrote:
Hi Marc,
Thanks for the feedback. One more question and I think I'm done for now
and able to finish the program I'm writing:
If FindNode does not locate a node with the given name, what does it
return?
I don't know. It looks like it
On 08/06/2015 12:30 PM, Graeme Geldenhuys wrote:
On 2015-08-06 15:43, Graeme Geldenhuys wrote:
1. Run Lazarus and open the fpgui_toolkit.lpk package found in the
fpGUI code: fpgui/src/corelib/[x11|gdi]/fpgui_toolkit.lpk
Click Compile.
It was brought to my attention that the above is
On 04/08/15 16:20, Graeme Geldenhuys wrote:
On 2015-08-04 16:11, Peter wrote:
I have not used Lazarus for a while, but I think you can use it as an
IDE, while using fpGUI as a component set. Perhaps someone can confirm?
I believe I answered that in an earlier reply.
Hi Marc,
Thanks for the feedback. One more question and I think I'm done for now
and able to finish the program I'm writing:
If FindNode does not locate a node with the given name, what does it
return?
Thanks,
Chris
On 07/24/2015 01:34 PM, Marc Santhoff wrote:
On Fr, 2015-07-24 at 11:57
On 2015-08-06 15:26, Peter wrote:
I was unsure how to
get Lazarus to use fpgui in the first place. Anyway, its here, for
anyone interested.
Correction. Those instructions mentioned in the URL you posted is to
create a LCL-fpGUI application. The LCL-fpGUI widgetset is not feature
complete, and
On 2015-08-06 15:43, Graeme Geldenhuys wrote:
1. Run Lazarus and open the fpgui_toolkit.lpk package found in the
fpGUI code: fpgui/src/corelib/[x11|gdi]/fpgui_toolkit.lpk
Click Compile.
It was brought to my attention that the above is somewhat ambiguous.
I meant for the text [x11|gdi]
On 2015-08-06 16:33, Xiangrong Fang wrote:
I would like to know if the FPC implementation of BlowFish is considered
secure or not?
I personally have no idea.
But for completeness, there is also the open source project called
DCPCrypt [1] which contains another Blowfish implementation, which
14 matches
Mail list logo