CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2002
    Posts
    8

    Stepping w debugger in C++ OCXs

    Is there a way to debug ActiveX components written in C++ (Visual Studio 6) using the debugger or is it all "MessageBox" and "fprintf" type debugging ?

    I know you can use the ActiveX Control test container app but can I somehow set breakpoints and step through my control while using that ?

    Thanks !

  2. #2
    Join Date
    Apr 2004
    Posts
    76
    Hi rseidl,

    If you choose Visual Basic as the Executable and create a new project with your control, then you can debug through Visual C++.

    Jeff

  3. #3
    Join Date
    Feb 2002
    Posts
    8

    Question

    Not sure I understand what you mean ...

    I tried:
    Open workspace w my OCX in VC++ 6sp4
    Debug configuration
    Breakpoints set
    Run (F5)
    Specify executable: tstcon32.exe (ActiveX Control Test Container)

    ...test control container app opens, I instantiate my OCX
    ...run through the breakpointed code
    ...do NOT break into debugger

    same happens if I specify VB as the executable in VC++
    Settings>Debug>General>Executable for this session


    What am I misunderstanding here ? Thanks !

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