<?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>compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/227967/compile-error-trying-to-convert-mdl-to-connect</link><description>I installed VS2019, CONNECT and its SDK and I can compile the examples without a problem.. 
 I am trying convert an MDL from SS3 to CONNECT. It is already in .DLL form and compiles within VS in SS3. 
 When the compiler gets to the type resource, I get</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705732?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 18:59:52 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a09b2904-c82f-4dfd-9048-802a7debbcad</guid><dc:creator>Ken Adams</dc:creator><description>&lt;p&gt;Thank you Jon. Your suggestion resolved this problem. Keep the &lt;span&gt;publishStructures resource separate.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Interestingly, I saw this comment in several examples:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;WARNING: Do not mix publishStructures commands with createDataDef&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I could&amp;nbsp; not find a single example that uses both a UI and user linkages.&amp;nbsp;Since my application does, I added another resource file for the createDataDef and it seemed to compile fine. Does this look like the correct thing to do?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;#------------------------------------------------------------------------&lt;br /&gt;# Create &amp;amp; compile the app&amp;#39;s type resource using rsctype &amp;amp; rcomp&lt;br /&gt;#------------------------------------------------------------------------&lt;br /&gt;$(o)$(appName)typ.r : $(baseDir)$(appName)typ.mt $(privateInc)$(appName).r.h&lt;/p&gt;
&lt;p&gt;$(o)$(appName)typ.rsc : $(o)$(appName)typ.r&lt;/p&gt;
&lt;p&gt;$(o)$(appName)link.r : $(baseDir)$(appName)link.mt $(privateInc)$(appName)link.h&lt;/p&gt;
&lt;p&gt;$(o)$(appName)link.rsc : $(o)$(appName)link.r&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am at least past the resource compilation errors and onto the .cpp errors. That feels like an accomplishment! Thanks again for your help.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705607?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 07:44:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9f6e6bb4-d662-4f94-8369-670f129dea51</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;The problem is that you are attempting to build a type resource (&lt;code&gt;.mt&lt;/code&gt;) file that uses a C struct &lt;code&gt;LinkageHeader&lt;/code&gt; defined in a C++ header.&amp;nbsp; The Bentley &lt;em&gt;type resource compiler&lt;/em&gt; can&amp;#39;t cope with all the C++ baggage that comes with &lt;code&gt;#include &amp;lt;DgnPlatform/DgnFileIO/DgnElements.h&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The purpose of a type (&lt;code&gt;.mt&lt;/code&gt;) file is to be processed by &lt;code&gt;publishStructures&lt;/code&gt; that is the only statement in your (&lt;code&gt;.mt&lt;/code&gt;) file.&amp;nbsp; The reason to publish a structure is so that it can be handled by the MicroStation &lt;em&gt;dialog manager&lt;/em&gt; when its data is displayed in a dialog box.&amp;nbsp; Why do you want to display &lt;code&gt;LinkageHeader&lt;/code&gt; in a dialog box?&lt;/p&gt;
&lt;p&gt;I suggest that you place structs designated for use in the UI in their own header file, and structs that are not used in the UI in a separate header file to be included by your C++ implementation code.&lt;/p&gt;
&lt;p&gt;In the &lt;em&gt;myapp&lt;/em&gt; example, struct &lt;code&gt;DlogBoxInfo&lt;/code&gt; uses primitive data types that are understood by both the C++ compiler and by the Bentley type resource compiler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705533?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 19:53:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:13a6eb88-c23c-4e91-a4cb-c1fa04b842d2</guid><dc:creator>Ken Adams</dc:creator><description>&lt;p&gt;as a test, I added the 2 headers you suggested to the myapp example&amp;#39;s header file myapp.h and I got the same error:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;C:\MDLC\include\Bentley/Bentley.h(112) : error: can&amp;#39;t open #include file limits.h&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;Actually, I cannot find limits.h anywhere in the include folder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705526?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 18:58:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:1135b940-ce18-45fe-a5a6-05ea350c9e78</guid><dc:creator>Ken Adams</dc:creator><description>&lt;p&gt;I see that DgnElements.h includes&amp;nbsp;Bentley.h which includes limits.h which is now the incllude file the compiler cannot find.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[== Building D:\Users\KWA0GSU\AppData\Local\Temp\Bentley\MicroStationSDK\objects\fplmdlcmd.rsc, (D:\MDL\devStudio\fplmdl\src\fplmdlcmd.r) ==]&lt;br /&gt;rcomp @D:\Users\KWA0GSU\AppData\Local\Temp\Bentley\MicroStationSDK\objects\make.opt&lt;br /&gt;MicroStation Resource Compiler 10.16.01&lt;/p&gt;
&lt;p&gt;[== Building D:\Users\KWA0GSU\AppData\Local\Temp\Bentley\MicroStationSDK\objects\fplmdltyp.r, (D:\MDL\devStudio\fplmdl\src\fplmdl.r.h) ==]&lt;br /&gt;rsctype @D:\Users\KWA0GSU\AppData\Local\Temp\Bentley\MicroStationSDK\objects\make.opt&lt;br /&gt;MicroStation Type Resource File Generator 10.16.01&lt;br /&gt;C:\MDLC\include\Bentley/Bentley.h(46) : error: &amp;quot;This file is for C++ compilands only&amp;quot;&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(11) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(12) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(13) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(14) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(16) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(17) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(18) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(19) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(28) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(33) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(39) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(40) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(41) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(43) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(44) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/Bentley.h(70) : warning: macro ENUM_UNDERLYING_TYPE previously defined as .&lt;br /&gt;C:\MDLC\include\Bentley/Bentley.h(112) : &lt;em&gt;&lt;strong&gt;error: can&amp;#39;t open #include file limits.h&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;C:\MDLC\include\Bentley/Bentley.h(112) : error: No such file or directory&lt;br /&gt;C:\MDLC\include\Bentley/Bentley.h(239) : error: Data declarations must be typedefs.&lt;br /&gt;C:\MDLC\include\Bentley/Bentley.h(239) : error: expected ;, got BENTLEY_NAMESPACE_NAME&lt;br /&gt;C:\MDLC\include\Bentley/Bentley.h(239) : error: bad declaration&lt;br /&gt;C:\MDLC\include\Bentley/Bentley.h(239) : error: Data declarations must be typedefs.&lt;br /&gt;C:\MDLC\include\Bentley/Bentley.h(239) : error: expected ;, got }&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705361?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 07:55:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:73f7298e-1571-4407-a96a-2d512d32dd55</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="338809" url="~/products/programming/microstation_programming/f/microstation-programming---forum/227967/compile-error-trying-to-convert-mdl-to-connect/705256"]I think the only reason I need mselems.h is I refer to these 2 variables[/quote]
&lt;p&gt;First, they are not variables.&amp;nbsp; &lt;code&gt;MAX_CELLNAME_LENGTH&lt;/code&gt; is a macro treated as a constant. &lt;code&gt;LinkageHeader&lt;/code&gt; is a struct that you use in your &lt;code&gt;linkdata&lt;/code&gt; struct.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;mselems.h&lt;/code&gt; doesn&amp;#39;t define those objects.&amp;nbsp; It includes other headers.&amp;nbsp; It&amp;#39;s best to include the exact headers you want.&lt;/p&gt;
&lt;pre&gt;#include &amp;lt;DgnPlatform/DgnPlatform.r.h&amp;gt; &lt;span style="color:seagreen;"&gt;// MAX_CELLNAME_LENGTH&lt;/span&gt;
#include &amp;lt;DgnPlatform/DgnFileIO/DgnElements.h&amp;gt; &lt;span style="color:seagreen;"&gt;//  LinkageHeader&lt;/span&gt;&lt;/pre&gt;
[quote userid="338809" url="~/products/programming/microstation_programming/f/microstation-programming---forum/227967/compile-error-trying-to-convert-mdl-to-connect/705262"]I renamed fplids.h to fplmdl.r.h[/quote]
&lt;p&gt;Why? Renaming a file achieves nothing.&amp;nbsp; It&amp;#39;s the contents of the file that are important.&amp;nbsp; File extension &lt;code&gt;.r.h&lt;/code&gt; indicates that the author (that&amp;#39;s you) deems the contents to be safe for use by the SDK resource compilers.&amp;nbsp; If you haven&amp;#39;t changed the contents of the file, then that&amp;#39;s a false indication.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705262?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 17:42:00 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b8ca0887-9a34-4798-961f-436e789a3b75</guid><dc:creator>Ken Adams</dc:creator><description>&lt;p&gt;btw, I renamed fplids.h to fplmdl.r.h and all references to it. I am still getting the same error:&lt;/p&gt;
&lt;p&gt;[== Building D:\Users\KWA0GSU\AppData\Local\Temp\Bentley\MicroStationSDK\objects\fplmdltyp.r, (D:\fpl\devStudio\fplmdl\src\fplmdltyp.mt) ==]&lt;br /&gt;rsctype @D:\Users\KWA0GSU\AppData\Local\Temp\Bentley\MicroStationSDK\objects\make.opt&lt;br /&gt;MicroStation Type Resource File Generator 10.16.01&lt;br /&gt;C:\MDLC\include\Mstn\MdlApi\mselems.h(11) : error: can&amp;#39;t open #include file math.h&lt;br /&gt;C:\MDLC\include\Mstn\MdlApi\mselems.h(11) : error: No such file or directory&lt;br /&gt;C:\MDLC\include\Bentley/Bentley.h(46) : error: &amp;quot;This file is for C++ compilands only&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705258?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 17:33:36 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:0fba6fb6-223c-4ab9-a638-36a787144d2b</guid><dc:creator>Ken Adams</dc:creator><description>&lt;p&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/343173/fplmdl.h.txt"&gt;communities.bentley.com/.../fplmdl.h.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705256?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 17:27:36 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:278e0508-83ee-4707-b51f-1a2ca6baa414</guid><dc:creator>Ken Adams</dc:creator><description>&lt;p&gt;I think the only reason I need mselems.h is I refer to these 2 variables:&lt;/p&gt;
&lt;p&gt;MAX_CELLNAME_LENGTH&lt;/p&gt;
&lt;p&gt;LinkageHeader&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705197?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 13:02:51 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:94c1b54f-889e-4d52-bcc9-b545fa1703c0</guid><dc:creator>Jon Summers</dc:creator><description>&lt;p&gt;Please post the contents of your file &lt;code&gt;fplids.h&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705187?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 11:53:08 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:677d5d9e-7096-4f32-9303-a5a9de157a3c</guid><dc:creator>Robert Hook</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/e6ebdcf5_2d00_5d05_2d00_4c8c_2d00_8b5a_2d00_69d54e5fbe9b"&gt;Ken Adams&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;The build log starting at line 1840 indicates&amp;nbsp;it is encountering an include of math.h (C/C++ header) in the resource file generation portion of the build process. I suggest:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Rename your .r files to .r.h.&lt;/li&gt;
&lt;li&gt;Update other source code module references with the above&lt;/li&gt;
&lt;li&gt;Take a close look in (previous) .r files for include files, compare to some delivered examples for what you may need to include - or - comment out any C/C++ headers then use &lt;strong&gt;SD SearchTerm&lt;/strong&gt; (search for definitions) to locate the correct header(s) to include.&lt;/li&gt;
&lt;li&gt;Recompile until any .r.h/.r C++ compiland errors no longer are present&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Target: D:\Users\KWA0GSU\AppData\Local\Temp\Bentley\MicroStationSDK\objects\fplmdltyp.r
[== Building D:\Users\KWA0GSU\AppData\Local\Temp\Bentley\MicroStationSDK\objects\fplmdltyp.r, (D:\fpl\devStudio\fplmdl\src\fplmdl.h) ==]
rsctype @D:\Users\KWA0GSU\AppData\Local\Temp\Bentley\MicroStationSDK\objects\make.opt
MicroStation Type Resource File Generator 10.16.01
C:\MDLC\include\Mstn\MdlApi\mselems.h(11) : error: can&amp;#39;t open #include file math.h
C:\MDLC\include\Mstn\MdlApi\mselems.h(11) : error: No such file or directory
C:\MDLC\include\Bentley/Bentley.h(46) : error: &amp;quot;This file is for C++ compilands only&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Bob&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705085?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 21:36:36 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:61c804a8-f65a-4b70-9884-33feb2e51a0a</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="338809" url="~/products/programming/microstation_programming/f/microstation-programming---forum/227967/compile-error-trying-to-convert-mdl-to-connect/705071"]Comparing to myapp, I see only .r.h files in the header file.&amp;nbsp;Is that a requirement?[/quote]
&lt;p&gt;Bentley Systems have a convention of specifying &lt;code&gt;.r.h&lt;/code&gt; as the extension for header files that are safe to include in a resource file.&amp;nbsp; To put that another way, it may not be safe to include a &lt;code&gt;.h&lt;/code&gt; file in a resource file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you look at &lt;code&gt;mselems.h&lt;/code&gt; you can see that there&amp;#39;s not a lot in it except a few #includes.&lt;/p&gt;
&lt;p&gt;Why do you need that header in your type resource?&amp;nbsp; What is in &lt;code&gt;fplids.h&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705082?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 20:37:46 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:2adcd3ad-9729-4807-ba06-3b224faf1ce0</guid><dc:creator>Ken Adams</dc:creator><description>&lt;p&gt;&lt;a href="https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/343173/Build_2D00_fplmdl_2D00_Verbose_2D00_Output.txt"&gt;communities.bentley.com/.../Build_2D00_fplmdl_2D00_Verbose_2D00_Output.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705076?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 19:44:47 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9b657088-4c81-4135-b8d7-1a5c8d11a857</guid><dc:creator>Robert Hook</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/e6ebdcf5_2d00_5d05_2d00_4c8c_2d00_8b5a_2d00_69d54e5fbe9b"&gt;Ken Adams&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;From the developer shell, navigate to the folder where your make file is. Type: &lt;strong&gt;build verbose&lt;/strong&gt;. Then review (long sequential file - from bottom up works best) and/or Zip and Attach it so we can get a better idea of what type of problem is being encountered.&lt;/p&gt;
&lt;p&gt;If you need more insight into how file extensions rules and dependencies are processed within the&amp;nbsp;make file system (.mki files) this search can help provide those entry points:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;findstr -snipr &amp;quot;\.[a-z]*\.[a-z].*:$&amp;quot; &amp;quot;%SDKMKI%*.mki&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;br /&gt;Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705071?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 19:21:03 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:3edfb849-f6ce-4fc0-95c2-c04543efa6c8</guid><dc:creator>Ken Adams</dc:creator><description>&lt;p&gt;I am building from the SDK command shell as aministrator. All the included examples I have tried to compile succeeded without error. it does&amp;nbsp; not seem to like &lt;span&gt;mselems.h specified&amp;nbsp;&lt;/span&gt;in my header file during the type resource file generator.&lt;/p&gt;
&lt;p&gt;#include &amp;lt;Mstn\MdlApi\mselems.h&amp;gt;&lt;/p&gt;
&lt;p&gt;Comparing to myapp, I see only .r.h files in the header file.&amp;nbsp;Is that a requirement? I don&amp;#39;t see any mselems.r.h file available.&lt;/p&gt;
&lt;p&gt;I tried renaming my header file with a .r.h&amp;nbsp;extension but that made no difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705006?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 13:20:32 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e23b26c1-297b-4f8a-8ac9-f9e6a0e46d09</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="338809" url="~/products/programming/microstation_programming/f/microstation-programming---forum/227967/compile-error-trying-to-convert-mdl-to-connect/705001"]&lt;pre&gt;C:\MDLC\include\Mstn\MdlApi\mselems.h(11) : error: can&amp;#39;t open #include file math.h&lt;/pre&gt;[/quote]
&lt;p&gt;Are you building your app from the SDK command shell?&amp;nbsp; All paths to header files should be resolved when using that command shell.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705004?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 13:17:20 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:f139bb98-201e-44f2-ad27-50f2e22170b3</guid><dc:creator>Robert Hook</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/e6ebdcf5_2d00_5d05_2d00_4c8c_2d00_8b5a_2d00_69d54e5fbe9b"&gt;Ken Adams&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;For future (new) errors, please create new posts to help ensure when users search they can quickly find and resolve each unique issue.&lt;/p&gt;
&lt;p&gt;A couple necessary data points for migrating existing code:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Build and Compile your application code projects from within the MicroStation Developer Shell (Run as admin).&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Note many .h files that contained MicroStation Resources (compiled to - .rsc) should exclusively be placed in .r.h (resource file headers) in CONNECT.&lt;/li&gt;
&lt;li&gt;For MSCE code projects it is required and most convenient to verify your make file has two lines like in MyApp, like this:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;myapp.mke:11:MDLMKI = $(MSMDE)mki/
myapp.mke:12:PolicyFile = $(MDLMKI)MicroStationPolicy.mki&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;In your app&amp;#39;s .cpp file I suggest to start by commenting out all includes and starting with just this one (&lt;strong&gt;#include &amp;lt;Mstn\MdlApi\MdlApi.h&amp;gt;&lt;/strong&gt;) and incrementally expand adding additional headers as needed.&amp;nbsp; If you have many CPP files you could simplify by creating a single (1) YourAppIncludes.h and maintain a single list there. It&amp;#39;s really a personal and design decision you can try to help improve speed, efficiency and consistency in your migration.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;HTH,&lt;br /&gt;Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/705001?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 13:03:32 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6ec4a050-17fa-4fc2-9d6e-207fa2a7cfd5</guid><dc:creator>Ken Adams</dc:creator><description>&lt;p&gt;I had to copy over myapp.mke to get passed this error. Now here is the next one...&lt;/p&gt;
&lt;p&gt;[== Building D:\Users\KWA0GSU\AppData\Local\Temp\Bentley\MicroStationSDK\objects\fplmdltyp.r, (D:\fpl\devStudio\fplmdl\src\fplmdl.h) ==]&lt;br /&gt;rsctype @D:\Users\KWA0GSU\AppData\Local\Temp\Bentley\MicroStationSDK\objects\make.opt&lt;br /&gt;MicroStation Type Resource File Generator 10.16.01&lt;br /&gt;&lt;em&gt;&lt;strong&gt;C:\MDLC\include\Mstn\MdlApi\mselems.h(11) : error: can&amp;#39;t open #include file math.h&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;C:\MDLC\include\Mstn\MdlApi\mselems.h(11) : error: No such file or directory&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;C:\MDLC\include\Bentley/Bentley.h(46) : error: &amp;quot;This file is for C++ compilands only&amp;quot;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(11) : warning: pragma not recognized.&lt;br /&gt;C:\MDLC\include\Bentley/suppress_warnings.h(12) : warning: pragma not recognized.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/704946?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 07:25:41 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:68c5b506-885a-46d8-8307-3277de3dc821</guid><dc:creator>Jon Summers</dc:creator><description>[quote userid="338809" url="~/products/programming/microstation_programming/f/microstation-programming---forum/227967/compile-error-trying-to-convert-mdl-to-connect"]&lt;pre&gt;$(o)fpltyp.r : $(baseDir)$fpltyp.mt \&lt;br /&gt; $(privateInc)fplids.h
$(o)fpltyp.rsc : $(o)fpltyp.r&lt;/pre&gt;[/quote]
&lt;p&gt;&lt;em&gt;make&lt;/em&gt; files are sensitive to white space and line feeds. Try this...&lt;/p&gt;
&lt;pre&gt;$(o)fpltyp.r : $(baseDir)$fpltyp.mt  $(privateInc)fplids.h

$(o)fpltyp.rsc : $(o)fpltyp.r&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compile error trying to convert MDL to CONNECT</title><link>https://communities.bentley.com/thread/704902?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 20:59:57 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a20b6d56-dfc5-42ae-bb44-8d1c3761f6c6</guid><dc:creator>Robert Hook</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/e6ebdcf5_2d00_5d05_2d00_4c8c_2d00_8b5a_2d00_69d54e5fbe9b"&gt;Ken Adams&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;There are many changes in: product, code and workflows; between MicroStation V8 and MicroStation CONNECT. We try to put as much information possible under the wiki topic&amp;nbsp;&lt;a href="/products/programming/microstation_programming/w/wiki/41184/developers-migrating-to-microstation-connect" rel="noopener noreferrer" target="_blank"&gt;Migrating to CONNECT&lt;/a&gt;.&amp;nbsp; Where&amp;nbsp;one of the first recommendations would be to&amp;nbsp;&lt;a href="/products/microstation/w/microstation__wiki/8802/migrating-mdl-applications-to-native-code" rel="noopener noreferrer" target="_blank"&gt;Migrate V8 MDL Applications To Native Code&lt;/a&gt;&amp;nbsp;(V8i to CONNECT).&amp;nbsp; This helps ensure many coding errors will be caught by the Visual Studio compiler and to ensure the project builds cleanly as a V8 Native Code project.&amp;nbsp; If this step has been performed, then it is best to review what functionality the new product can effectively replace (commands, utilities and workflows) so-as to eliminate any unnecessary coding (or re-inventing the wheel) and not integrating well within the new product/platform.&lt;/p&gt;
&lt;p&gt;Once you established the necessary code to be migrated there are two approaches/paths to leverage.&amp;nbsp; Most developers will try to perform a 1:1 migration of source code (line by line); where many times it will be more effective to create a new project, new code and new (modern) APIs to create the most maintainable code most quickly. Given that and your current problem (first encountered) is a problem in the make file, I suggest taking the (very similar) Myapp.mke and Myapp.mki files renaming the app name Myapp to your app name (convention) thereby verifying the source file name (parts) and extensions as being correct&amp;nbsp;and a good starting point for your app to best build cleanly.&lt;/p&gt;
&lt;p&gt;Migrating your first couple source code projects will take more time to process in the beginning until (standard) build and compiler errors become second nature to correct, it is worth noting there are a couple workflow related items in the SDK that may help you find information you need (or provide) more conveniently.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;MSCE SDK provides a BUILD command with an optional argument [verbose] to create a standard or verbose log file that you can conveniently zip and attach to your forum posts for others to quickly review and provide feedback.&lt;/li&gt;
&lt;li&gt;To conveniently and comprehensively search the local SDK and Product resources, and/or MicroStation Programming Forum: see:
&lt;ol&gt;
&lt;li&gt;SDKSEARCH &lt;em&gt;SearchTerm&lt;/em&gt; [verbose]&lt;/li&gt;
&lt;li&gt;&lt;a href="/products/programming/microstation_programming/w/wiki/46936/sdktips-and-sdkmacros"&gt;SDKTIPS and SDKMACROS&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;To learn more about the new MicroStation CONNECT APIs, see:
&lt;ol&gt;
&lt;li&gt;&lt;a href="/products/programming/microstation_programming/w/wiki/52090/training" rel="noopener noreferrer" target="_blank"&gt;Developer Training&lt;/a&gt; &amp;gt;&amp;nbsp;&lt;a class="ExistingPageLink" title="Click to view the page titled: MicroStation CONNECT Developer Training" href="/products/programming/microstation_programming/w/wiki/50638/microstation-connect-developer-training"&gt;MicroStation CONNECT Developer Training&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="ExistingPageLink" title="Click to view the page titled: CONNECT APIs" href="/products/programming/microstation_programming/w/wiki/42961/connect-apis"&gt;CONNECT APIs&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;For 1:1 Migration, see: &lt;a href="/products/programming/microstation_programming/w/wiki/39882/microstation-connect-sdk---introduction#MigrationTools" rel="noopener noreferrer" target="_blank"&gt;Migration Tools&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;HTH,&lt;br /&gt;Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>