c# - Passing a single instance of MS Word to a class factory -


please bear me. i'm not sure how describe this. i'm using following example file parser class factory design in project.

[https://code.msdn.microsoft.com/windowsdesktop/file-parser-using-design-81632e92#content ]file parser using design patterns1

each file parser generated factory needs have access single instance of microsoft word (microsoft.office.interop.word) instantiated in the main part of program. i'm try keep generating multiple instances of winword.exe when @ task manager.


Comments