You would have to manually link in the dependent SDK library into the TestExec process. When compiling the TestExec EXE, CVI doesn't know you will be using that library in the other lib file since you are loading it dynamically with LoadExternalModule. So you have to manually link it into the testexec process. To do this, open the testexec project, go to Build->Target Settings... Then, under Add Files to Executable, add the lib file from the SDK that has the SDK function in it. In this case, I think it is user32.lib.
Best Regards,
Chris Matthews
National Instruments