When I import a COM assembly (dll) into a Visual Studio project, adding it as a reference, I can easily use the generated equivalent general language runtime.
However, if I try to convert the same COM assembly to a common runtime assembly using tlbimp, I run all kinds of problems.
Is there a way to replicate the settings that Visual Studio uses with tlbimp? Or, to put it another way, is there a way to generate the same interaction class as visual studio using tlbimp?
. , Visual Studio tlbimp, /out /namespace.
out "Interop". , COM.
.
tlbimp /out:Interop.MyCom.dll /namespace:MyCom MyCom.dll
, /sysarray, , EngineExceptions, .
, .
/namespace, ( ) tlb. ( oleview.exe tlbs).
[ ] tlbimp, msbuild script, , 64 32- .
64- , tlbs, regsvr32'd, , , 32- COM- 32- .
64 32 , /reference /tlbreference, interops tlbs, , .
Source: https://habr.com/ru/post/1705880/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1705875/opengl-context-without-opening-a-window-wglmakecurrent-fails-with-hdc-and-hglrc-when-using-hwnd-made-with-getdesktopwindow&usg=ALkJrhj0kxzi5UFOxTG7b9XzTEb7x7SuVQPHP @exec fails - phpКак удалить все маркеры с символами без слов в Perl? - regexHow can we solve the datetime problem by moving the access database from the working server to the live one - c #Maven 2 project version, dependency versions and perpetual release - version-controlOracle database instance definition - oraclecreating boost :: graph edge_weight property map - c ++.htaccess for IIS? - securityWhat is the life span of the data? - databaseобратная строка php - phpAll Articles