If you're compiling this as C++, you can't automatically convert a void * to other types. I'm not sure about function pointers and C; I thought with standard C this would be OK. You will have to cast the return value of GetProcAddress to the actual function pointer type, like this:
typedef int32 (* LoadTaskFuncP)(const char*, TaskHandle*);
DAQmxLoadTask_Ptr = (LoadTaskFuncP)(GetProcAddress...
or, using more modern C++
DAQmxLoadTask_Ptr = reinterpret_cast
(GetProcAddress...
The typedef is just to make it more readable. I haven't compiled this, so take warning...
John Weeks
WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com