It looks like you are using the old RLP DOS based examples, but I could be wrong. In any event, the Measurement Hardware DDK examples are newer and still maintained. You can download examples for a number of board families and operating systems. The examples are in C++, but aren't terribly complex.
Question that might help:
- What hardware are you using?
- What operating system?
- If Windows, Linux, or Mac, why not NI-DAQmx (or Base)?