Hello John1023,
Without more information on your application and code, it will be difficult to diagnose your specific problem. I would like to forward you to some relevant Knowledge Base articles that could help you get started with NI-DAQ and Visual Studio.
KnowledgeBase 18G6G34S: How do you Compile and Run NI-DAQ Examples with Microsoft Visual Studio?
KnowledgeBase 317CP7W3: Programming NI-DAQ in Visual C++ .NET
If these articles do not help, please reply with more information about your issue so that we can move forward with this problem.