Hi all,
I created C program under Visual C++.
Compilation was done without any mistake.
I try to compile it under LabWindows/CVI 6.0, and
I have one error:
"Type error in argument 3 to `LoadFromFile'; found 'pointer to pointer
to struct FileData' expected 'pointer to pointer to incomplete struct
FileData defined at ElementOperations.h:182'."
I don't understand what is "incomplete struct" ?
Here is the "wrong code", the error is on the argument pFileData:
struct FileData* pFileData = 0;
.....
resFunction = ElementOperations_LoadFromFile(pElementOperation,
szFCFilePath, &pFileData, &errorInfo);
***********************
***********************
Here the prototype of the function ElementOperations_LoadFromFile:
EXPORTIMPORTDEF HRESULT ElementOperations_Load
FromFile
(
struct MotFCElementOperations* pTheObject,
const char* szFileName,
struct MotFCFileData** returnVal,
struct MotSErrorInfo* pErrorInfo
);
***********************
***********************
And here the definition of the structure:
struct MotFCFileData
{
long lReserved;
};
Any help is welcome.
Thank you.
Sébastien FUSILIER