CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2001
    Location
    india
    Posts
    50

    Problem with CommonDialogbox

    Hi
    I am making an ocx which contains different controls for choosing colors and fonts.To provide this I used the commondialog control.When the ocx file is registered and used in vb it works perfectly.But ,When I use it in another language called panther it gives error.So I tried using the create object function and created the commondialog control even then it gives the error "activex component cannot create object".
    Then I tried using the reference Microsoft Dialog Automated objects. Even then I am getting an error.Is there any other way i can call the color dialod box and the font dialog box???
    If so ,Please help me!!
    Thank You
    Regards
    Sravanthi


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Problem with CommonDialogbox

    Chek if in property of your ocx project (or in "Make" dialog) it is checked the "remove information about unused activex" and if so uncheck it. Then remake your ocx.

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    May 2001
    Location
    india
    Posts
    50

    Re: Problem with CommonDialogbox

    Hi
    Thank you very much for the reply. But I could solve the problem by first registering the microsoft control's ocx for the common dialod box and then my controls.
    Regards
    Sravanthi


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured