Serving the Quantitative Finance Community

 
User avatar
opti999
Topic Author
Posts: 0
Joined: October 8th, 2003, 1:09 pm

debugging ActiveX

March 23rd, 2007, 12:47 pm

does anyone know how to debug an ActiveX component?I'm using VS2005 and reading:http://msdn2.microsoft.com/en-us/librar ... S.80).aspx it looks incredibly easy but my breakpoints in the ActiveX (C++) project just don't get hit when running the exe that uses the ActiveX (have specified a path to the exe in the debug command property).
 
User avatar
DominicConnor
Posts: 41
Joined: July 14th, 2002, 3:00 am

debugging ActiveX

March 24th, 2007, 5:43 pm

This stuff is buried in my C++/Excel lecture.Basically I think you need to attach to the process. That's menu:Debug...Attach to Process
 
User avatar
opti999
Topic Author
Posts: 0
Joined: October 8th, 2003, 1:09 pm

debugging ActiveX

March 26th, 2007, 6:37 am

thanks.I'm using VS2005 and apparently, in the activex property pages, you need to set the command to what ever exe is using the activex.I'm in debug mode and have rebuilt the ocx and the PDB timestamp is the same as ocx.I'm trying the step through the activex code the same way as I would step through any other application - does anyone know if this is possible?Currently when setting a breakpoint in the activex code I get "This breakpoint will currently not be hit. No symbols have been loaded for this project"
 
User avatar
DominicConnor
Posts: 41
Joined: July 14th, 2002, 3:00 am

debugging ActiveX

March 26th, 2007, 9:16 am

Didn't attach process work ?
 
User avatar
opti999
Topic Author
Posts: 0
Joined: October 8th, 2003, 1:09 pm

debugging ActiveX

March 26th, 2007, 10:16 am

sorry, unable to find "attach process" - is this what I'm missing? could you tell me where "attach process" is in VS2005 (ActiveX project C++). only have Command property in debug (property pages).but no mention of this in http://msdn2.microsoft.com/en-us/librar ... S.80).aspx "How to: Debug an ActiveX Control"
 
User avatar
opti999
Topic Author
Posts: 0
Joined: October 8th, 2003, 1:09 pm

debugging ActiveX

March 26th, 2007, 10:36 am

okay, yes, found "attach process" but no luck.if I run the exe and then in my activex project "attach process" (the exe), my breakpoints are still not hit in the activex project.get "This breakpoint will currently not be hit. No symbols have been loaded for this project"
 
User avatar
farmer
Posts: 63
Joined: December 16th, 2002, 7:09 am

debugging ActiveX

March 26th, 2007, 8:34 pm

Would you guys happen to have the files in the"AxMicrosoft" namespace?
Antonin Scalia Library http://antoninscalia.com
 
User avatar
opti999
Topic Author
Posts: 0
Joined: October 8th, 2003, 1:09 pm

debugging ActiveX

March 27th, 2007, 7:55 am

sorry, no.it appears that debugging activex is not as easy as Microsoft describe it:http://msdn2.microsoft.com/en-us/librar ... ).aspxI've been trying several approaches over as many daya but not a breakpoint hit in sight just "This breakpoint will currently not be hit. No symbols have been loaded for this project"
 
User avatar
opti999
Topic Author
Posts: 0
Joined: October 8th, 2003, 1:09 pm

debugging ActiveX

March 28th, 2007, 5:13 pm

I've abandoned the ActiveX debug, nothing works.I've tried inserting TRACE("%f\n", mydate);in the C++ code, hoping to get something out of the IDE debug output window at run time, but again nothing.does anyone have any experience with this? and perhaps reasons why I can get any output?Thanks
 
User avatar
opti999
Topic Author
Posts: 0
Joined: October 8th, 2003, 1:09 pm

debugging ActiveX

March 29th, 2007, 11:36 am

I suspect there's not a lot of interest in this but here's my update anyway ...I ran the ActiveX Control Test Container "tstcon32.exe" containing my ActiveX and managed to successfully hit my breakpoints in the C++ ActiveX code using both "Attach to Process" and Property Pages Debug Command.I ran my VB application containing my ActiveX and nothing gets hit.I think this may have something to do with the wrong type of degugger being used or maybe this is just not possible (but doubt it somehow).
 
User avatar
opti999
Topic Author
Posts: 0
Joined: October 8th, 2003, 1:09 pm

debugging ActiveX

March 29th, 2007, 11:37 am

I suspect there's not a lot of interest in this but here's my update anyway ...I ran the ActiveX Control Test Container "tstcon32.exe" containing my ActiveX and managed to successfully hit my breakpoints in the C++ ActiveX code using both "Attach to Process" and Property Pages Debug Command.I ran my VB application containing my ActiveX and nothing gets hit.I think this may have something to do with the wrong type of degugger being used or maybe this is just not possible (but doubt it somehow).
 
User avatar
opti999
Topic Author
Posts: 0
Joined: October 8th, 2003, 1:09 pm

debugging ActiveX

March 29th, 2007, 11:37 am

I suspect there's not a lot of interest in this but here's my update anyway ...I ran the ActiveX Control Test Container "tstcon32.exe" containing my ActiveX and managed to successfully hit my breakpoints in the C++ ActiveX code using both "Attach to Process" and Property Pages Debug Command.I ran my VB application containing my ActiveX and nothing gets hit.I think this may have something to do with the wrong type of degugger being used or maybe this is just not possible (but doubt it somehow).
 
User avatar
opti999
Topic Author
Posts: 0
Joined: October 8th, 2003, 1:09 pm

debugging ActiveX

March 29th, 2007, 7:04 pm

problem solved.when debugging C++ ActiveX with VB2005 container, set debug type in ActiveX project to Native Only.