Compiler warnings - redefining function return type for ...
DF 20.0, getting "Redefining functin return type for GET_COMWRITE with INTEGER (first defined as REAL) when compiling. Trying to find how you resolve this warning? This is in a package that the studio build from a com object (VPE in this case). This is how the function is defined:
[CODE]
Function ComWrite UChar[] ByRef llpsaByteArray Integer llSize Returns Integer
[/CODE]
Is this saying that the ending return integer should be a real? I rebuilt the com class with the studio and it defined it the same.
Would like to get rid of the warnings.
Thanks
Mark
Re: Compiler warnings - redefining function return type for ...
Hi Mark,
do you have the same function in multiple packages, but with different declarations?
Re: Compiler warnings - redefining function return type for ...
Mark,
Check out the section on Ambiguous Functions...
[url]https://docs.dataaccess.com/dataflexhelp/#t=mergedProjects%2FLanguageGuide%2FDeclaring_Function_Methods.htm[/url]
Re: Compiler warnings - redefining function return type for ...
Dennis - Shouldn't be in this case, compiling this one in a test project and only one view being used and getting the error.
Mark
Re: Compiler warnings - redefining function return type for ...
Ahh, after reading Stephens reply now I see, yes, the same function is defined (within the same package) in multiple class's in this case, and they return different types.
Mark
Re: Compiler warnings - redefining function return type for ...
Stephen - Thanks for the link. I see/understand now. In my case yes, the same function is defined in multiple classes.
Mark