return value of
LoadLibrary has the same width). In your example you used an integer. Is
sizeof(Integer) = sizeof(Pointer) of your system?
If for example, you are missing the upper four bytes of the pointer, the
above message makes sense.
--
Ewald
he case, then you should probably report a bug. The
man page of at least linux and freeBSD indicate that it should be a pointer.
However, I would like to note that on linux, using revision 32828,
TLibHandle is defined as a ptrint, which is correct.
--
Ewald
e there’s no obvious name to use for the file now.
Mutually exclusive classes are mutually exclusive to classes which have
dependencies on one another ;-)
Or am I missing something?
--
Ewald
___
fpc-pascal maillist - fpc-pascal@lists.freepas
mpressStream(InStream: TStream; OutStream: TStream): Integer;
function ExtractStream(InStream: TStream; OutStream: TStream): Integer;
I think this is what you are looking for. I don't know about file
headers. At least it would form a good starting point.
Good
tps://linux.die.net/man/2/fork
https://linux.die.net/man/3/exec
> I have found through experimenting:
>
> a pause of 100ms after running the process will fix 80% of cases.
Probably because the child has exec'ed by this time, if I had to guess.
--
Ewald
__
Hello,
Section 1.2.40 of Programmers guide
(http://www.freepascal.org/docs-html/prog/progsu40.html#x47-460001.2.40)
says, somewhere in the middle:
Type
A = Integer;
Is it supposed to be there? If so, what is it supposed to mean?
--
Ewald
On 13/11/16 23:33, Mattias Gaertner wrote:
> Maybe this helps:
> http://www.freepascal.org/docs-html/current/ref/refse19.html
Close, yet presence of that particular line in the section on the
include directive is, at least for me, not yet unraveled ;-)
--
page is
>> talking about include directive and that type definition is not
>> related in
>> anyway with paragraphs below or above it.
>
> Indeed, in SVN it is no longer there.
Ah, ok. So in the next release that issue will be fixed in the online
version as well then.
;),
(a: 17;)
);
Note: this is written from memory, syntax might differ a little (but the
error messages from the compiler should help you out in that case).
--
Ewald
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.free
On 16/05/17 23:53, Mattias Gaertner wrote:
> touch mytest
> fpc -vc mytest
Perhaps a one-liner:
fpc -vc /dev/null
?
Saves one the need to create a dummy file and remove it afterward ;-)
--
Ewald
___
fpc-pascal maillist - fpc-
quot; for a
list of other related switches.
--
Ewald
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
;
> the first two parameters are mandatory, the third is optional.
> Calls to P with 2 and 3 parameters are both valid.
You realize you can already do this, right?
See https://www.freepascal.org/docs-html/ref/refsu64.html#x176-19800014.4.1
--
Ewald
___
ow what the case is there.
Mostly I use the smaller types for a variety of very basic range limitations:
when I declare something as a byte, its value can never be larger than 255,
which can come in handy at times. Think about a lookuptable for a CRC
calculation unit for example.
--
Ewald
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
t are the exact criteria:
the parameter name, the parameter type, ...?
3. Can anybody explain what the part "The result of this is that it is possible
to pass Self as a parameter to such a method." entails? How can it be passed
with DispatchStr?
4. Can somebody give an example on h
e this feature was present,
probably while the syntax was still "data: pointer" instead of "var data"?
Anyway, I'll file a bug against the documentation in a couple of days or so.
--
Ewald
___
fpc-pascal maillist
no problem
with the GUI being written for a large part in a different language,
have a look at Qt (possible with Qt4pas, if you insist on using pascal
for the GUI).
Anyway, enough on the toolkits out there, a google search will quickly
yield you a lot more than I can mention in this mail :-)
--
Ew
ileNameA = ^TOpenFileNameA;
Function GetSaveFileNameA(arg: POpenFileNameA): windows.bool; stdcall;
external 'comdlg32' name 'GetSaveFileNameA';
=== code end ===
--
Ewald
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lis
e somewhere I'm not looking for the information ?
Kind regards
Ewald Horn
South Africa
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
ascal programming to this
list.
Regards
Ewald Horn
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Hi.
You could use FileSetAttr('filename', faArchive)
method to set the attributes to archive and remove the
read only flag.
Remember to include SYSUTILS if you have not already
done so.
Regards
Ewald
___
fpc-pascal maillist -
Hi Vincent,
most of what I do is programs that output HTML results. I'm sure I can be of
some assistance to you. Can you zip and send the unit test results to me so
I can make you a small sample of what I have in mind ?
Kind regards
Ewald Horn
Web: www.nofuss.
Mmm,
I used Pascal last in Turbo Pascal 7 days... It's surprising how much is
coming back from all those years ago just by going through the FPC examples
and documentation. Sure, I do find the OOP stuff a little confusing at
times, but keep at it, Pascal still rocks!
Hi,
is it possible to keep a legacy reader in place ? That way it'll be easy to
read old data and convert it to the new format and have little impact on
historic data. If you happen to work on a big endian machine you could then
do a once-off conversion.
Kind regards
Ewald
101 - 123 of 123 matches
Mail list logo