Hello Wojtek,
From what you've said, it sounds like your program is trying to build a DLL file. What are you doing in the DLL? Is there any chance that somewhere in the DLL you may be dividing by zero?
The code for InitUIForDLL() is generated by Codebuilder to load and display the startup panels in the source code for the DLL. If you look at the following tutorial, it talks a bit more about what is going on in that code.
How to Integrate 32-Bit LabWindows/CVI 4.0 Libraries into Microsoft Visual C/C++ or Borland C/C++
http://zone.ni.com/devzone/conceptd.nsf/webmain/A32E309A55A45CA08625686900623295?OpenDocument
It might help to take a look at a couple of example projects that shipped with CVI as well. Guidll.prj and cvidll.prj in particular may prove
to be helpful.
Check those out, and let me know if you have any further questions about this issue.
Scott Romine,
National Instruments
Scott Romine
Course Development Engineer
National Instruments