LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LabWindows 8.5.1 CopyFile Command

When trying to use the LabWindows 8.5.1 CopyFile command, I get the following error when compiling: Found 'pointer to char' expected a function.  I get this error even when using the 'Recall Function Panel' and selecting the file from within that area.  Any suggestions?
0 Kudos
Message 1 of 5
(3,713 Views)

You may have the <windows.h> definition of CopyFile hiding the <utility.h> definition.

I suppose you forgot to include <utility.h>

 

Best regards,

Nicolas

0 Kudos
Message 2 of 5
(3,708 Views)

I already have <utility.h> included and <windows.h> is not included.

Any other ideas?

0 Kudos
Message 3 of 5
(3,704 Views)

I still think you've got a problem related to inclusion or the preprocessor.

 

Could you please preprocess the source file  (Option/Preprocess source file) and search in the preprocessed file how your CopyFile has been processed.

If you can see CVI_CopyFile(arg1,arg2); the problem is not about preprocessing.

 

You could perhaps show us how you used CopyFile and how its arguments were declared

 

Best regards,

Nicolas

0 Kudos
Message 4 of 5
(3,698 Views)

Thanks for all the help, I found the problem.  I had inadvertantly named a variable 'CopyFile', which caused the problem.

Thanks Again.

Jim

0 Kudos
Message 5 of 5
(3,693 Views)