Click to See Complete Forum and Search --> : Problem with CommonDialogbox


sravanthi
August 3rd, 2001, 01:48 AM
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

Cimperiali
August 3rd, 2001, 03:12 AM
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

sravanthi
August 6th, 2001, 03:15 AM
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