# VC6 question (extension related)

- Thread: https://externals.io/message/2246
- Original archive: https://news-web.php.net/php.internals/2246
- Started by l0t3k on 2003-06-09T06:22:18+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2246 — l0t3k — 2003-06-09T06:22:18+00:00

URL: https://externals.io/message/2246#2246

i have an extension which uses a huge chunk of static data (about 1 Meg).
instead of compiling it into the extension, i set up a sub project to
compile the data into a shared object/DLL so memory could be more
efficiently used across multiple processes. in any case i exported the data
(or so i thought) from the DLL, but in the debugger all i get is NULs. is it
possible to export global variables of arbitrary type in VC6, or are we
limited to primitive types ?

l0t3k
BTW - the data is essentially  a byte array prefixed by a header and TOC

---

## #2248 — Derick Rethans — 2003-06-09T07:47:23+00:00

URL: https://externals.io/message/2246#2248 · In reply to: #2246

> i have an extension which uses a huge chunk of static data (about 1 Meg).
> instead of compiling it into the extension, i set up a sub project to
> compile the data into a shared object/DLL so memory could be more
> efficiently used across multiple processes. in any case i exported the data
> (or so i thought) from the DLL, but in the debugger all i get is NULs. is it
> possible to export global variables of arbitrary type in VC6, or are we
> limited to primitive types ?

I don't see what this has to do with PHP at all, but anyway, you can 
export all kinds of types, even functions and complex data structures.

Derick

-- 
                                        "my other box is your windows PC"
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 International PHP Magazine                          http://php-mag.net/
