<font size=2 face="sans-serif">Hey Kim,</font>
<br>
<br><font size=2 face="sans-serif">your idea worked! Thank you a lot!</font>
<br>
<br><font size=2 face="sans-serif">Kind regards</font>
<br><font size=2 face="sans-serif">Björn</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Kim Gräsman <kim.grasman@gmail.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">bjoern.gaier@horiba.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">Clang Dev <cfe-dev@lists.llvm.org></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">23.03.2018 18:20</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [cfe-dev]
Workaround for #import</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3>Hi Björn, </font>
<br>
<br><font size=3>It's been a decade or two since I used #import, so I could
be misremembering, but here's an idea: </font>
<br>
<br><font size=3>#import of x.tlb generates two files: x.tlh and x.tli.
They are (heavily VC-specific) C++ sources.</font>
<br>
<br><font size=3>If you can get your VC build to generate those, and #include
the tlh and compile the tli as a source file in your Clang build, I think
Clang supports enough language features for it to work. </font>
<br>
<br><font size=3>Fingers crossed, </font>
<br><font size=3>- Kim </font>
<br>
<br><font size=3>Den 23 mars 2018 11:42 fm skrev "via cfe-dev"
<</font><a href="mailto:cfe-dev@lists.llvm.org"><font size=3 color=blue><u>cfe-dev@lists.llvm.org</u></font></a><font size=3>>:</font>
<br><font size=2 face="sans-serif">Hello everyone,</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
currently I'm converting some old visual studio projects for the use with
the clang compiler. Everything was fine, until I hit the following line:</font><font size=3>
</font>
<table width=100% style="border-collapse:collapse;">
<tr valign=top height=8>
<td width=100% style="border-style:solid solid solid solid;border-color:#000000;border-width:1px 1px 1px 1px;padding:1px 1px;"><font size=1 color=#808080>#import</font><font size=1>
</font><font size=1 color=#a11f12><file.tlb></font><font size=1>
rename(</font><font size=1 color=#a11f12>"SendMessage"</font><font size=1>,
</font><font size=1 color=#a11f12>"SendMessage"</font><font size=1>)</font></table>
<br><font size=3><br>
</font><font size=2 face="sans-serif"><br>
Clang stop the work and complained:</font><font size=3> </font>
<table width=100% style="border-collapse:collapse;">
<tr valign=top height=8>
<td width=100% style="border-style:solid solid solid solid;border-color:#000000;border-width:1px 1px 1px 1px;padding:1px 1px;"><font size=1>error
: #import of type library is an unsupported Microsoft feature</font></table>
<br><font size=3><br>
</font><font size=2 face="sans-serif"><br>
I get it - this doesn't work, but is there no workaround or another solution
for this problem?</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Kind regards</font><font size=3> </font><font size=2 face="sans-serif"><br>
Björn</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
Als GmbH eingetragen im Handelsregister Bad Homburg v.d.H. HRB 9816, USt.ID-Nr.
DE 114 165 789<br>
Geschäftsführer: Dr. Hiroshi Nakamura, Dr. Robert Plank, Markus Bode, Heiko
Lampert, Hiroshi Kawamura, Takashi Nagano, Takeshi Fukushima.<br>
</font><font size=3><br>
_______________________________________________<br>
cfe-dev mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:cfe-dev@lists.llvm.org" target=_blank><font size=3 color=blue><u>cfe-dev@lists.llvm.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" target=_blank><font size=3 color=blue><u>http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</u></font></a>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Als GmbH eingetragen im Handelsregister Bad Homburg v.d.H. HRB 9816, USt.ID-Nr.
DE 114 165 789<br>
Geschäftsführer: Dr. Hiroshi Nakamura, Dr. Robert Plank, Markus Bode, Heiko
Lampert, Hiroshi Kawamura, Takashi Nagano, Takeshi Fukushima.<br>
<br>
</font>