09-23-2005 10:18 AM
01-20-2006 07:03 AM
Hi,
I've managed to get this to work by going through what the macros actually produce.
You don't need to do the Declare if you're doing the Define. The Declare is for making forward declarations so you can refer to functions before their actual functionality is defined. i.e. if your .c file #includes the one .h file, then you don't need the Declare in that .c file. Other source code files don't refer to the original .h file (if they did then they'd give Multiply define symbol link errors), then you need the declare in there so it can compile correctly.
Although you define the SharedData variable, you don't actually Initialise it at any point, so there's lots of definitions
of how it's supposed to work, but nothing on
InitializeSharedData
I'm attaching some code which should do what you need. The project is in CVI 8, but the source files should open fine.
Hope that helps
Sacha Emery
National Instruments (UK)
02-16-2006 08:35 AM