Jose,
Besides the shipping examples that come with the NI-DAQ driver, our website is a fabulous resource for examples. Take a look at the following example that I have found in our Development Library.
Double-Buffered Asynchronous Scanning in Microsoft Visual C++ with NI-DAQ
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3D97F56A4E034080020E74861&p_node=DZ52302&p_source=external
Or, you may search through our Development Library for more examples.
http://zone.ni.com/devzone/devzone.nsf/6ae7945502d89dea0625685500506e1f/4d58b1b80ec41ef70625683f006e1d6d?OpenDocument
Regards,
Justin Britten
Applications Engineer
National Instruments