.NET Framework - COM Referencing in .NET
Asked By Milan
20-Nov-09 02:27 PM

Hallo,
ich hab angefangen mit COM unten C# .NET VS2008 zu arbeiten und ich habe 3
Fragen:
1. warum muss ich nicht immer GUID f??r jede COM server Interface und Klasse
angeben? Es reicht schon nur [ComVisible(true)] zu
schreiben ? Warum ist beides erlaubt ?
2. ich registriere ein COM "yClassLibrary.dll" mit:
regasm MyClassLibrary.dll /tlb: MyClassLibrary.TLB
und jetzt von anderen Projekt aber in gleichem Solution ich will eine
Reference nach MyClassLibrary.dll setzen (im COM Tab von Add
Reference Dialog), aber da steht kein MyClassLibrary.dll sonst nur
MyClassLibrary.TLB ! Ich erwarte dass ich sehe auch
MyClassLibrary.dll aber es ist nicht da, warum ? Um umgehen zu k??nnen ich
muss explizit Pfad nach COM.dll geben aber dann COM macht kein
Sinn(normalaweise ich sollte nicht wissen wo COM.dll steht)
3. ich habe in ein Paar Test Projekte nachgekuckt dass beim DoppelteKlick an
Solution Explorer/References/irgendwelche_COM_Name in
Object Browser es ist Automatisch ausgewallt "Interop.irgendwelche_COM_Name"
und nicht "irgendwelche_COM_Name" warum ?
Jede Hilfe ist Willkommen
Gr????,
Zoki
AssemblyRegistrationFlags.SetCodeBase
(1)
Windows Installer
(1)
Visual Studio
(1)
AssemblyRegistrationFlags
(1)
RegistrationServices
(1)
RegisterAssembly
(1)
Dialog
(1)
Tab
(1)
Frank Dzaebel replied to Milan

Hallo Milan,
Beides erlaubt, nur (1) w??re F5-Feeling. .NET macht
sich ggf. selber die GUIDs. Es ist sp??ter sauberer, wenn Du
die GUIDs selber machst.
Ein paar Tips:
Zitat:
Assemblys angezeigt, auch wenn sie im globalen Assemblycache (GAC)
installiert wurden. Das Dialogfeld Verweis hinzuf??gen ist pfadbasiert,
und es gibt mehrere Methoden zum Anzeigen einer Assembly [...]"
aus:
[Dialogfeld "Verweis hinzuf??gen"]
http://msdn.microsoft.com/de-de/library/ftcwa60a.aspx
___________
Ansonsten ggf. ... versuche einmal: regasm /codebase
[Leon Mayne: Running regasm /codebase in a Visual Studio setup
project]
http://leon.mvps.org/DotNet/RegasmInstaller.html
[Problembehandlung bei der Windows Installer-Bereitstellung]
http://msdn.microsoft.com/de-de/library/kz0ke5xt.aspx
oder ??ber Custom Action in einem Installer ggf. mit:
RegistrationServices regsrv = new RegistrationServices();
regsrv.RegisterAssembly(assembly,
AssemblyRegistrationFlags.SetCodeBase);
[Setup Project: Custom Actions ?? Developer's Dump]
http://devdump.wordpress.com/2009/01/17/setup-project-custom-actions/
[Build and Deploy a .NET COM Assembly]
http://www.simple-talk.com/dotnet/visual-studio/build-and-deploy-a-.net-com-assembly/
Das ist normal, k??nnen wir sp??ter besprechen.
ciao Frank
--
Dipl.Inf. Frank Dzaebel [MCP/MVP C#]
http://Dzaebel.NET
Frank Dzaebel replied to Frank Dzaebel
Milan schrieb:
also ggf. auch:
[Gewusst wie: Hinzuf??gen oder Entfernen von Verweisen in Visual Studio
(Visual Basic)]
http://msdn.microsoft.com/de-de/library/wkze6zky.aspx
(-> So zeigen Sie eine Assembly im Dialogfeld "Verweis hinzuf??gen" an)
ciao Frank
--
Dipl.Inf. Frank Dzaebel [MCP/MVP C#]
http://Dzaebel.NET
Is Windows Installer backward compatible? .NET Framework For applications which require Windows Installer 3.1 Redistributable to run their installation, will it work if I install the latest Windows Installer, Windows Installer 4.5 Redistributable, instead? Windows MSI Discussions Windows Installer (1) Redistributable (1) Peter <Peter@> writes
microsoft windows installer .NET Framework hi what is microsoft windows installer C# Discussions Windows Installer (1) Craig Berntson (1) Microsoft windows installer (1) & how i could remove microsoft windows installer 3.1 ??????????? Why do you want to
Windows Installer uninstall in Windows 2000 SErver SP4 .NET Framework Hi, I'm trying to uninstall Windows installer, but not appear in Add / remove programs. There are any way to make a manual uninstall of windows installer? and after make a clean install of Windows installer? Thanks! Windows MSI Discussions SErver (1) SP (1) RE (1) Windows (1) Installer (1
problem with windows installer .NET Framework i have a problem with windows installer. everytime i tried to open microsoft office the windows installer will pop up and says preparing to install. i dont understand why its like that i was able to use microsoft word before with no problem until recently when windows installer keep popping up. thank you for any help. - - les .NET Discussions Word (1) Mike (1