Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Assign an address to a pointed variable

1 reply to this topic


  • Full Members
  • 4 posts

Posted 28 August 2008 - 09:28


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.


  • Full Members
  • 4 posts

Posted 28 August 2008 - 10:05

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!