cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jefeh2008
Level 3

Indirection for pointers

Hi!

This is an easy question. As Installscript is a unluckily bad designed language, I've been forced to use pointers to perform really simple actions... and now I'm stuck on the following sentence:

*pParam = &param;

where pParam is a pointer to an array element, and param is a struct instance.

It does not compile, as the construction does not fit the grammar... (compile time).

Does anybody know how to assign the value of a pointed variable?

Any help is appreciated.
Labels (1)
0 Kudos
(1) Reply
jefeh2008
Level 3

I've found that

"The indirection operator cannot be used to assign a value to a memory location"

is one of the limitations of the indirection operator...

but there must be a way to perform this operation... and the only way I can imagine is writing a C DLL... but that solution stinks!
0 Kudos