Debug an Active X control,


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Debug an Active X control,

Hybrid View

  1. #1
    Pat Guest

    Debug an Active X control,


    Hi,
    I build a mydatagrid.ocx active x control, and use it in the forms of main
    project .exe. There is no project group setup here.

    I want to be able to debug into the mydatagrid.ocx, but unsuccessful.
    According to the Microsoft document, I set up the startup program in
    ActiveX control project. It loaded the exe correctly, but when I try to
    open forms, nothing happen for one form, and "Runtime error 399, component
    mydatagrid.ocx or one of its component not correctly registered"

    Has anybody done this before?

    Thanks in advance.
    Pat

  2. #2
    Gary Nelson Guest

    Re: Debug an Active X control,

    Pat,

    You probably need to compile your ocx. When you compile it the compiler will
    register the componet. If your user interface is complete you should copy
    your ocx to another directory (I call mine 'compatible') and set the
    compatible option of your project to that file. As long as you don't make
    changes that break compatibility you should be able to work with both
    projects in a project group with no problem. Any time you need to break
    compatibility you must recompile and reset your compatible options.

    Gary


    "Pat" <pwang@uclink.berkeley.edu> wrote in message
    news:3c9cbb77@10.1.10.29...
    >
    > Hi,
    > I build a mydatagrid.ocx active x control, and use it in the forms of main
    > project .exe. There is no project group setup here.
    >
    > I want to be able to debug into the mydatagrid.ocx, but unsuccessful.
    > According to the Microsoft document, I set up the startup program in
    > ActiveX control project. It loaded the exe correctly, but when I try to
    > open forms, nothing happen for one form, and "Runtime error 399, component
    > mydatagrid.ocx or one of its component not correctly registered"
    >
    > Has anybody done this before?
    >
    > Thanks in advance.
    > Pat




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center