Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [Connect C++] Dpoint3d in publishStructures definitions

$
0
0

[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_NAMESPACE

Now use DgnPlatform_DPoint3d in your modified struct.


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>