[quote user="Kari Heinola"]Yes, the example built fine originally, but after I add Dpoint3d field into AdrwdemoInfo struct definition in adrwdemo.h I get same errors[/quote]
The problem is that DPoint3d lives in a C++ namespace. It's real name is DgnPlatform::DPoint3d. Unfortunately the resource compiler, which you invoke in the bmake file, does not understand C++ namespaces.
Some Bentley types, such as DgnPlatform::ElementId, have typedefs that the resource compiler can use (see Mstn\MicroStation.r.h). Unfortunately DPoint3d is not included in that set of typedefs. You could roll your own by using that header file as a template. I don't know if this will work...
BEGIN_BENTLEY_NAMESPACE
#if defined (mdl_resource_compiler) || defined (mdl_type_resource_generator)
typedef DPoint3d DgnPlatform_DPoint3d;
#else
typedef DgnPlatform::DPoint3d DgnPlatform_DPoint3d;
#endif
END_BENTLEY_NAMESPACENow use DgnPlatform_DPoint3d in your modified struct.