Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-23-2003, 01:52 PM
smelly smelly is online now
Registered User
 
Join Date: 10-23-2003
Posts: 4
Question 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!
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 08:24 AM.


Copyright © 1999-2023 Kinook Software, Inc.