First, I very much appreciate your help Ortoro. It is very nice of you to make an example for me (saves me money and time).
I tested your VI and it worked correctly. I saw your DLL call and it also appeared as expected.
Then I made a visual studio 2005 project which has a for loop trying to call your DLL repeatedly and varying the input parameter from true to false each iteration. Unfortunately, in my test program the values of A and B remain constant though they are passed by reference to DLLWrapper() which makes me think that DLL wrapper will also change their values.
I've attached a zip of my visual studio project. If you have a moment could you look at my project? I had to add a special path to my include directories list and linker ("C:\Program Files\National Instruments\LabVIEW 8.5\cintools")
Again thank you very much.