Hi Herman,
I have run the sample code myself and then made the modifications, following the steps you described, to incorporate the code (by copy and pasting) into another project that uses a button to call up the front panel of the dll in LabVIEW. Everything seemed to work fine for me. I will attach a zip file with all of the code that I used.
When I first tried to run the example code, I could run it, but was not able to pop up the front panel (or call the dll at all). This sounds like it may be a similar problem to the one that you are now encountering. I was able to resolve things by rebuilding the dll in LabVIEW. After I did that, everything was running fine. Other than that, it is hard to say what the problem could be.
Feel free to use the code that I have sent you in. I hope that it helps. Good luck and take care!
Aaron Beitner
National Instruments