Tải bản đầy đủ - 0 (trang)
Shimming: A Solution to the Problems with mscoree.dll

Shimming: A Solution to the Problems with mscoree.dll

Tải bản đầy đủ - 0trang

describedinChapter24,"CreatingOutlookAddInswithVSTO."

MicrosofthasprovidedaVisualStudioCOMadd-inshimwizard

projectthatworkswithVisualStudio2003.Itisavailableat

http://msdn.microsoft.com/office/default.aspx?

pull=/library/enus/dno2k3ta/html/ODC_Office_COM_Shim_Wizards.asp

Atthetimethisbookwaswritten,nowizardswereavailablefor

VisualStudio2005.YoucanusetheC++COMshimproject

generatedbythiswizardinVisualStudio2003,however,and

importitintoVisualStudio2005.



Conclusion

ThischapterexaminedthewayamanagedCOMadd-incanbe

createdusingVisualStudio.Youalsolearnedhowamanaged

COMadd-inisregisteredintheregistry,aswellasthepitfallsof

mscoree.dllforloadingamanagedCOMadd-in.Tosolvethe

problemswithmscoree.dll,werecommendedusingashimDLL

toloadamanagedCOMadd-in.IfyouarebuildingaCOMaddinforOutlook2003,thereisamuchbetterstoryforadd-in

development:theVSTOOutlookAddInproject,describedin

Chapter24,"CreatingOutlookAddInswithVSTO."



Chapter24.CreatingOutlookAddIns

withVSTO



MovingAwayfromCOMAddIns

Chapter23,"DevelopingCOMAddInsforWordandExcel,"

examinedseveralissueswithbuildingCOMadd-insinVisual

BasicforOfficeapplications.Inparticular,thechapter

consideredseveralproblemswithusingthedefault

configurationofaCOMadd-inwheremscoree.dllloadstheCOM

add-in:

mscoree.dllcanbedisabled,causingallmanagedCOMaddinstostoploading.

mscoree.dllcannotbesigned,whichmakesitsoyourCOM

add-incannotbeloadedwhentheTrustAllInstalledAddIns

andTemplatesoptionisnotchecked.

mscoree.dllloadsallCOMadd-insintothesameapplication

domain,whichallowsCOMadd-instoaffectoneanother

adversely.

VSTOadd-insforOutlooksolvetheseissues.VSTOalsofixes

someotherissuesinOutlookCOMadd-indevelopmentthatwe

considerheretomotivateyoutousetheVSTOadd-in

technologyratherthantheCOMadd-intechnologydescribedin

Chapter23.ThischapterdescribestheproblemswiththeCOM

add-intechnologyinenoughdetailsothatifyouareforcedto

useaCOMadd-inapproach,youwillknowhowtoworkaround

theseissues.



GettingOutlooktoShutDownProperlywitha

COMAddIn



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Shimming: A Solution to the Problems with mscoree.dll

Tải bản đầy đủ ngay(0 tr)

×