Thanks Mindaugas.
Here is the updated output from msvc, FYI:
---
../../axcore.c(155) : error C2143: syntax error : missing ';' before '*'
../../axcore.c(155) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
../../axcore.c(155) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
../../axcore.c(184) : error C2039: 'lpVtbl' : is not a member of 'ISink'
../../axcore.c(154) : see declaration of 'ISink'
../../axcore.c(184) : error C2227: left of '->Release' must point to
class/struct/union/generic type
../../axcore.c(193) : error C2039: 'lpVtbl' : is not a member of 'ISink'
../../axcore.c(154) : see declaration of 'ISink'
../../axcore.c(193) : error C2227: left of '->AddRef' must point to
class/struct/union/generic type
../../axcore.c(202) : error C2365: 'AddRef' : redefinition; previous
definition was 'formerly unknown identifier'
../../axcore.c(208) : error C2365: 'Release' : redefinition; previous
definition was 'formerly unknown identifier'
../../axcore.c(281) : warning C4244: 'argument' : conversion from
'int' to 'USHORT', possible loss of data
../../axcore.c(291) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
../../axcore.c(291) : error C2146: syntax error : missing ';' before
identifier 'ISink_Vtbl'
../../axcore.c(291) : error C4430: missing type specifier - int
assumed. Note: C++ does not support default-int
../../axcore.c(292) : error C2440: 'initializing' : cannot convert
from 'HRESULT (__stdcall *)(IDispatch *,const IID &,void **)' to 'int'
There is no context in which this conversion is possible
../../axcore.c(293) : error C2078: too many initializers
../../axcore.c(331) : error C2039: 'lpVtbl' : is not a member of 'ISink'
../../axcore.c(154) : see declaration of 'ISink'
../../axcore.c(331) : error C2059: syntax error : ')'
---
Brgds,
Viktor
On Mon, May 25, 2009 at 1:48 PM, Mindaugas Kavaliauskas
<[email protected]> wrote:
>> All compilers are broken in C++ mode for hbwin / axcore.c, this means
>> msvc and owatcom in default builds.
>>
>> Any chance fixing these?
>
> Hi,
>
>
> fixed a few errors. The main problem of interface virtual function table
> definition still exists. Trying to find a solution (and learn C++)...
>
>
> Regards,
> Mindaugas
> _______________________________________________
> Harbour mailing list
> [email protected]
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour