<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>TextEDParam compile error in CONNECT works in SS3</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/228496/textedparam-compile-error-in-connect-works-in-ss3</link><description>I have a function in SS3 that accepts a pointer to a TextEDParam structure. 
 In CONNECT, I added the include file 
 #include &amp;lt;DgnPlatform\TextParam.h&amp;gt; 
 This include file looks like it defines TextEDParam. (in SS3 it was defined in mdl.h) 
 Yet for this</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: TextEDParam compile error in CONNECT works in SS3</title><link>https://communities.bentley.com/thread/707114?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 06:42:22 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:db934f1a-36ea-45f7-ba4e-29546638ac43</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="338809" url="~/products/programming/microstation_programming/f/microstation-programming---forum/228496/textedparam-compile-error-in-connect-works-in-ss3/707063"]Could this be a similar case?&amp;nbsp;error C2065: &amp;#39;UnitInfo&amp;#39;: undeclared identifier[/quote]
&lt;p&gt;Look in that header file.&amp;nbsp; It includes several other header files and then begins the &lt;code&gt;DgnPlatform&lt;/code&gt; namespace...&lt;/p&gt;
&lt;pre&gt;BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE&lt;/pre&gt;
&lt;p&gt;So, yes, it&amp;#39;s the same issue.&lt;/p&gt;
[quote userid="338809" url="~/products/programming/microstation_programming/f/microstation-programming---forum/228496/textedparam-compile-error-in-connect-works-in-ss3/707063"]The only SDK example I see&amp;nbsp;that uses this type is steel which does not compile for me[/quote]
&lt;p&gt;Read the error message.&amp;nbsp; It&amp;#39;s from the linker, not the compiler.&amp;nbsp; It&amp;#39;s telling you that it can&amp;#39;t find file &lt;code&gt;C:\Program.obj&lt;/code&gt;.&amp;nbsp; Post a new question.&lt;/p&gt;
&lt;p&gt;FWIW I can build &lt;em&gt;steel&lt;/em&gt; successfully from the SDK command shell.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TextEDParam compile error in CONNECT works in SS3</title><link>https://communities.bentley.com/thread/707110?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 06:04:02 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:78fcdac6-5b6d-4c9a-b4bf-e1748e6649f5</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Ken,&lt;/p&gt;
[quote userid="338809" url="~/products/programming/microstation_programming/f/microstation-programming---forum/228496/textedparam-compile-error-in-connect-works-in-ss3/707063"]Could this be a similar case?&amp;nbsp;error C2065: &amp;#39;UnitInfo&amp;#39;: undeclared identifier&amp;nbsp;[/quote]
&lt;p&gt;maybe. But without context and more details, it&amp;#39;s hard to say.&lt;/p&gt;
&lt;p&gt;Did you read a &lt;a href="https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2065?view=msvc-170" rel="noopener noreferrer" target="_blank"&gt;description of this error&lt;/a&gt;? It provides hints what can cause this problem.&lt;/p&gt;
[quote userid="338809" url="~/products/programming/microstation_programming/f/microstation-programming---forum/228496/textedparam-compile-error-in-connect-works-in-ss3/707063"]It looks like it is defined in &amp;lt;DgnPlatform\DgnFileIO\UnitDefinition.h&amp;gt; but that does not fix the error.[/quote]
&lt;p&gt;You must change your thinking from C to C++, where - as Jon wrote - everything resides in (some) namespace. So to include the header is not usually enough, and you must ensure the proper namespace is used. MicroStation SDK makes this process simpler through predefined USING_NAMESPACE_xyz macros.&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TextEDParam compile error in CONNECT works in SS3</title><link>https://communities.bentley.com/thread/707063?ContentTypeID=1</link><pubDate>Mon, 18 Apr 2022 20:54:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:afc614b3-d87e-4c14-ba92-99757bed617e</guid><dc:creator>Ken Adams</dc:creator><description>&lt;p&gt;Could this be a similar case?&amp;nbsp;error C2065: &amp;#39;UnitInfo&amp;#39;: undeclared identifier&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like it is defined in &amp;lt;DgnPlatform\DgnFileIO\UnitDefinition.h&amp;gt; but that does not fix the error.&lt;/p&gt;
&lt;p&gt;The only SDK example I see&amp;nbsp;that uses this type is steel which does not compile for me.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/343173/pastedimage1650315514664v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TextEDParam compile error in CONNECT works in SS3</title><link>https://communities.bentley.com/thread/706865?ContentTypeID=1</link><pubDate>Sat, 16 Apr 2022 06:42:09 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9048f28e-d333-4378-8bfa-945bbf34c476</guid><dc:creator>Jon Summers</dc:creator><description>&lt;h4&gt;&lt;span style="color:seagreen;"&gt;C++ Namespaces&lt;/span&gt;&lt;/h4&gt;
[quote userid="338809" url="~/products/programming/microstation_programming/f/microstation-programming---forum/228496/textedparam-compile-error-in-connect-works-in-ss3"]I am getting this compiler error:&amp;nbsp;error C2065: &amp;#39;TextEDParam&amp;#39;: undeclared identifier[/quote]
&lt;p&gt;&lt;a title="cpppreferences: Namespaces" href="https://en.cppreference.com/w/cpp/language/namespace" rel="noopener noreferrer" target="_blank"&gt;C++ namespaces&lt;/a&gt; are used throughout the SDK.&amp;nbsp; struct &lt;code&gt;TextEDParam&lt;/code&gt; is defined within the &lt;code&gt;DgnPlatform&lt;/code&gt; namespace (see &lt;code&gt;BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE&lt;/code&gt; in that file).&lt;br /&gt;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.&amp;nbsp;&lt;code&gt;DgnPlatform::TextEDParam&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Look at the SDK examples.&amp;nbsp; Bentley have defined a number of macros that help declare a namespace and use a namespace: see &lt;code&gt;DgnPlatform/DgnPlatform.h&lt;/code&gt;. You&amp;#39;ll see ubiquitous statements like this near the beginning of many source files...&lt;/p&gt;
&lt;pre&gt;USING_NAMESPACE_BENTLEY_DGNPLATFORM;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>