Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
|
|
swdev:dotnet:calling_managed_code_from_unmanaged_code [2012/05/16 14:20] smayr |
swdev:dotnet:calling_managed_code_from_unmanaged_code [2012/05/16 14:22] (current) smayr |
| |
== Registering a COM Library == | == Registering a COM Library == |
* Assembly in GAC: <code> | * Assembly to be deployed to GAC: <code> |
C:\>CD C:\MyLibProj\ | C:\>CD C:\MyLibProj\ |
C:\>"%WinDir%\Microsoft.NET\Framework64\v4.0.30319\regasm.exe" MyLib.dll | C:\>"%WinDir%\Microsoft.NET\Framework64\v4.0.30319\regasm.exe" MyLib.dll |
C:\>"%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.0A\Bin\gacinstall.exe" /i MyLib</code> | C:\>"%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.0A\Bin\gacinstall.exe" /i MyLib</code> |
* Assembly in application's directory (not in GAC):<code> | * Assembly to be deployed in application's directory (not in GAC):<code> |
C:\>CD C:\MyLibProj\ | C:\>CD C:\MyLibProj\ |
C:\>"%WinDir%\Microsoft.NET\Framework64\v4.0.30319\regasm.exe" /CodeBase MyLib.dll</code> | C:\>"%WinDir%\Microsoft.NET\Framework64\v4.0.30319\regasm.exe" /CodeBase MyLib.dll</code> |
* Create Type Library from Assembly:<code> | * To create Type Library from Assembly:<code> |
C:\>CD C:\MyLibProj\ | C:\>CD C:\MyLibProj\ |
C:\>"%WinDir%\Microsoft.NET\Framework64\v4.0.30319\regasm.exe" MyLib.dll /tlb:MyLib.tlb</code> | C:\>"%WinDir%\Microsoft.NET\Framework64\v4.0.30319\regasm.exe" MyLib.dll /tlb:MyLib.tlb</code> |