TextEDParam compile error in CONNECT works in SS3

I have a function in SS3 that accepts a pointer to a TextEDParam structure.

In CONNECT, I added the include file

#include <DgnPlatform\TextParam.h>

This include file looks like it defines TextEDParam. (in SS3 it was defined in mdl.h)

Yet for this function:

Public nativeCode void fplcom_justTxtToEditField(TextEDParam *edParam);

I am getting this compiler error: error C2065: 'TextEDParam': undeclared identifier

Any idea what is going wrong here?

Parents
  • C++ Namespaces

    I am getting this compiler error: error C2065: 'TextEDParam': undeclared identifier

    C++ namespaces are used throughout the SDK.  struct TextEDParam is defined within the DgnPlatform namespace (see BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE in that file).
    Either use the namespace at the beginning of your file (see the SDK examples) or qualify the struct name with the relevant namespace e.g. DgnPlatform::TextEDParam.

    Look at the SDK examples.  Bentley have defined a number of macros that help declare a namespace and use a namespace: see DgnPlatform/DgnPlatform.h. You'll see ubiquitous statements like this near the beginning of many source files...

    USING_NAMESPACE_BENTLEY_DGNPLATFORM;

     
    Regards, Jon Summers
    LA Solutions

Reply
  • C++ Namespaces

    I am getting this compiler error: error C2065: 'TextEDParam': undeclared identifier

    C++ namespaces are used throughout the SDK.  struct TextEDParam is defined within the DgnPlatform namespace (see BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE in that file).
    Either use the namespace at the beginning of your file (see the SDK examples) or qualify the struct name with the relevant namespace e.g. DgnPlatform::TextEDParam.

    Look at the SDK examples.  Bentley have defined a number of macros that help declare a namespace and use a namespace: see DgnPlatform/DgnPlatform.h. You'll see ubiquitous statements like this near the beginning of many source files...

    USING_NAMESPACE_BENTLEY_DGNPLATFORM;

     
    Regards, Jon Summers
    LA Solutions

Children