V
vadnala
I used to have a program(A.EXE) using an extern variable as follows:
A.cpp
extern DWORD Flag;
B.cpp
DWORD Flag;
Now, I wish to do the following tasks:
1. Exclude B.cpp from the application(A.EXE) and place/compile it in a
DLL (B.DLL).
2. A.EXE to load the above B.DLL dynamically (calling LoadLibrary) and
use the same extern variable concept.
I am fine/done with 1st step but got stuck with the 2nd task (being a
newbie)!!
Can someone shed some light here? (hopefully with an example)
P.S. I tried exporting the variable (Flag) in the B.DEF file but
couldn't move further.
Thanks in advance.
- VV
A.cpp
extern DWORD Flag;
B.cpp
DWORD Flag;
Now, I wish to do the following tasks:
1. Exclude B.cpp from the application(A.EXE) and place/compile it in a
DLL (B.DLL).
2. A.EXE to load the above B.DLL dynamically (calling LoadLibrary) and
use the same extern variable concept.
I am fine/done with 1st step but got stuck with the 2nd task (being a
newbie)!!
Can someone shed some light here? (hopefully with an example)
P.S. I tried exporting the variable (Flag) in the B.DEF file but
couldn't move further.
Thanks in advance.
- VV