Results 1 to 7 of 7

Thread: No UserContol Detected !!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    7

    Unhappy

    Hi,
    I'm trying to compile something into OCX, but for some reason I always get an error saying:
    "No UserContol Detected"
    I'm a new to OCX so any help will be gratly appriciated.
    Thanx.

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    You say you are trying to compile an OCX.

    Did you

    A) start of with an Active X control
    or did you

    B) start with a standard exe and change the project type to activeX Control in the project propertires?

    If you do B you get the error message the "No UserContol Detected" error message.








    Mark
    -------------------

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    7

    Unhappy USERcONTROL

    Hi,
    THANX FOR YOUR REPLY.
    Yes when I load up the code, it starts as an exe, however I want to make an OCX out of the user control.
    Is there something I have to change (guess there is), but where ?


    Thanx.


    Vladimir S. Pekulas

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You get that error if you don't have any public usercontrols. If you already have a usercontrol and still get that error, you have probably it's public property set to false. Set it to true
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    7

    ON/OFF

    Could you be please more specific.

    Thanx.


    PS: As I said I'm brand new to any OCX.

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Nope, ok just kidding, i can be a little bit more specific:

    1. Look at your project browser
    2. Is there a usercontrol?
    3. if so doubleclick it, otherways that's the problem - make a usercontrol
    4. go search for it's property "public" in the property box. set it to true.
    5. Now you you can compile it.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Canada
    Posts
    7

    Talking Re:

    Thanx Kedaman,
    it finally works.

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