Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-30-2005, 10:08 AM
Stuart Stuart is online now
Registered User
 
Join Date: 06-30-2005
Location: San Diego
Posts: 3
Unhappy COM Automation and Visual C++ 6

Hello,
I am in the process of creating a C++ socket server to execute builds for our build system the problem that I am running into is that I can not create the builder COM Object. I have had no problem creating the Application COM object.
I can create the builder com object in visual basic but would prefer to do it in my C++ instead of calling out to a Visual Basic COM Object I create.

Here is some example code

This code works for creating the application object
Declaraion:
VisBuildSvr::IApplicationPtr m_VisualBuild_AppPtr;


HRESULT hr= pVisBuildApp.CreateInstance (__uuidof(VisBuildSvr::Application));


This code does not work for creating the builder object
Declaration
VisBuildSvr::IBuilderPtr m_BuilderPtr;


HRESULT hr=pVisBuilderPtr.CreateInstance (__uuidof(VisBuildSvr::Builder));

Any help would be greatly appreciated
Thank you in advance,
Stuart
Reply With Quote
  #2  
Old 06-30-2005, 12:09 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The attached VC6 console app succeeds creating both the app and builder when executed here. Note that it won't work if run by the VC6 debugger, since the license protection code prevents the builder component from being loaded by a debugger.
Attached Files
File Type: zip vbptest.zip (19.1 KB, 1390 views)
Reply With Quote
  #3  
Old 06-30-2005, 04:55 PM
Stuart Stuart is online now
Registered User
 
Join Date: 06-30-2005
Location: San Diego
Posts: 3
Thank you,
I had the correct code all along but I was trying to run it in debug mode. thank you for your help,
stuart
Reply With Quote
Reply


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:22 AM.


Copyright © 1999-2023 Kinook Software, Inc.