.rdata as a pointer
BlitzMax Forums/BlitzMax Programming/.rdata as a pointer
| ||
I am importing a staticly linked library that I need to get a pointer to its .rdata SECTION, I need to pass this pointer to a function as a byte ptr. Any ideas? |
| ||
On reading this, I remembered some code by 'thefool' on the PureBasic forums and decided to have a go: Not sure how you'd use this in your particular context, but it might be a starting point. Although it shows the section from an executable file, I think the format of the static library should be the same. Perhaps you can use this to copy the data directly from the executable calling it (since it will have the library built in). All credit for the procedure used here goes to 'thefool'! |