I am trying to inherit and extend the structure defined in MIDL. I used the same syntax as for inheriting ie interfaces
typedef struct stDBIBinVarDataEx { float x; } MYSTRUCT ; struct struct2 : MYSTRUCT { float y; };
but the compiler generates errors.
You can not. MIDL is not a C ++ compiler.
You can declare struct2 as containing MYSTRUCT:
struct struct2 { MYSTRUCT mystruct; float y; }
This is not exactly the same, but it is possible as close as you are going to get.
Source: https://habr.com/ru/post/1740011/More articles:QFileDialog and German umlaut in transit - pythonTips for overriding the register bit field in C - cList.ConvertAll and exception - listSQL Reporting Services 05 - display user code sum in table header - sql-serverEndless loop when adding CATiledLayer to UIView - iphoneNamespace is repeated in all nodes using axis2 and java2wdsl - javaHow to save selection in DataGrid when data changes? - flexПанорамный вид в Windows Mobile (silverlight 4) - windows-phone-7MSMQ Inconsistent state after restart - asp.netJasper Report: how to configure JasperViewer so that it can export in only one format? - javaAll Articles