M
Mythran
I'm trying to add a module template to a project programmatically. I've tried
many documented (w/o examples) ways of doing it to no avail. For example, I
tried using Project.ProjectItems.AddFromTemplate("C:\Program Files\Microsoft
Visual Studio .NET 2003\Vb7\VBWizards\Module\Templates\1033\Module.vb",
"Common.vb") and this adds it ok. Problem is, it does not replace the [!
directives with the proper values. ([!output SAFE_FILE_NAME] stays as such). So
I tried the DTE.LaunchWizard method and passed in the "proper" values, but I keep
getting an error "Unspecified Error" message with 1 of two return codes
(0x80004004 or 0x80041FFF). Looked up both error values on google and msdn and
found 1 (more but all same thing) result, "Unspecified Error". Doesn't help.
Any help would be appreciated.
Thank you,
Mythran
many documented (w/o examples) ways of doing it to no avail. For example, I
tried using Project.ProjectItems.AddFromTemplate("C:\Program Files\Microsoft
Visual Studio .NET 2003\Vb7\VBWizards\Module\Templates\1033\Module.vb",
"Common.vb") and this adds it ok. Problem is, it does not replace the [!
directives with the proper values. ([!output SAFE_FILE_NAME] stays as such). So
I tried the DTE.LaunchWizard method and passed in the "proper" values, but I keep
getting an error "Unspecified Error" message with 1 of two return codes
(0x80004004 or 0x80041FFF). Looked up both error values on google and msdn and
found 1 (more but all same thing) result, "Unspecified Error". Doesn't help.
Any help would be appreciated.
Thank you,
Mythran