TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: All
from: john dumas
date: 2004-05-11 11:28:20
subject: [C] access data in dll

From: john dumas 

Lets say I have an array of  char * pointers in  dll.hpp called array1. I
can include dll.hpp in both the dll.cpp and prog.cpp. And the program will
be satified when I try to use it.

  ( array1 in dll.hpp )
             / \
            /    \
     dll.cpp   prog .cpp

int __stdcall (*foo)( char **array1 );

foo = ...GetProcAddress...

But, what if  array1 is in dll.cpp

  ( array1 in dll.cpp )
             |
             |
        prog .cpp

int __stdcall (* foo)( char **array1 );

Undefined symbol   ... array1

Is there some way to access array1 in dll.cpp from prog.cpp?

--- BBBS/LiI v4.01 Flag-5
* Origin: Prism's_Point (1:261/38.1)
SEEN-BY: 633/267 270
@PATH: 261/38 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.