Hi,
Looking at the C-code again, I saw I could actually use a pointer to
byte, instead of a pointer to an array of bytes.
So I'm using this :
program LCDtest1;
var
nCols : cardinal;
nRows : cardinal;
nBytes : cardinal;
pFont : ^byte;
{$include fonts.inc}
begin
// get pointer to the beg
Koenraad Lelong wrote:
Hi,
Im trying to access an open array but I get a runtime error. I googled a
bit, and found some suggestions, but for me they don't work.
It's actually a port of some C-library I want to use on a STM32-processor.
This is my test-code :
program LCDtest1;
type
TArray =
On 03 Jun 2012, at 17:53, Koenraad Lelong wrote:
> Im trying to access an open array but I get a runtime error.
You are trying to use a pointer to a static array as a pointer to a dynamic
array (not an open array; have a look at e.g.
http://rvelthuis.de/articles/articles-openarr.html to read a
On 03-06-12 17:53, Koenraad Lelong wrote:
Hi,
Im trying to access an open array but I get a runtime error. I googled a
bit, and found some suggestions, but for me they don't work.
Forgot to say : runtime error is 216.
modified (with the same error) :
const
FONT6x8 : array[0..775] of byte = (
Hi,
Im trying to access an open array but I get a runtime error. I googled a
bit, and found some suggestions, but for me they don't work.
It's actually a port of some C-library I want to use on a STM32-processor.
This is my test-code :
program LCDtest1;
type
TArray = array of byte;
var
nC