----- Original Message ----- From: "Ed Oltman" <eoltman@imago.com> To: "Roottalk@Pcroot. Cern. Ch" <roottalk@pcroot.cern.ch> Sent: Tuesday, May 21, 2002 11:17 AM Subject: [ROOT] How to export a global from a dll > Hi, > How do I export a global variable from a DLL? I am using VC++6 on Win32 > with root v3.02/07. Thanks. You should use cpp macro: R__EXTRERN YourClassHeaderFile.h: R__EXTERN MyClassGolbalVariable *gMyGlobal; Look up %ROOTSYS%/include/*.h file for the concrete examples examples (See attachment as well) Hope this helps. Valeri > > Ed Oltman > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:53 MET