This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Indirection for pointers
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 28, 2008
03:09 AM
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 = ¶m;
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.
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 = ¶m;
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 28, 2008
04:14 AM
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!
"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!
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)