#1
|
|||
|
|||
Problem using the VBP automation objects in C#
The sample code in VB6 works like a charm.
'''''''''''''''''''''''''''''''''''''''' Set Builder = New VisBuildSvr.Builder Set m_app = New VisBuildSvr.Application Builder.Initialize m_app m_app.Project.Load "c:\test\test.bld" Builder.Start vbldStepMain, -1, 0 ''''''''''''''''''''''''''''''''''''''''' The same code in C# doesn’t. Everything compiles and I get no runtime exceptions. However, the build never starts or at least there is no output from the build. //======================================= _Application = new ApplicationClass(); _Builder = new BuilderClass(); _Builder.Initialize(_Application); _Application.Project.Load(@"C:\test\test.bld"); //_Builder.StepStarted +=new //BuilderEvents_StepStartedEventHandler(_Builder_Ste pStarted); _Builder.Start(StepTypeEnum.vbldStepMain, -1, 0); //======================================= Any help on this would be greatly appreciated. Thanks! |
|
|