By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,463 Members | 2,954 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,463 IT Pros & Developers. It's quick & easy.

Debugging ActiveX controls on a web page

P: n/a
I have an ASP 3.0 page that contains an ActiveX control that I wrote in VC++
v6.0. Under Visual Interdev I can debug the ASP code just fine. However,
when I get to an ASP line that references my ActiveX control the debugger
does not go inside my C++ code allowing me to debug the ActiveX control. If
I load the ActiveX control project from VC++ with Internet Explorer as the
debug executable I have the same problem. Break points in the ActiveX
control's code are not respected. I know I'm compiling in Debug mode, any
idea how to get these breakpoints to be respected?

Many thanks.
Jul 22 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:#9**************@TK2MSFTNGP11.phx.gbl...
I have an ASP 3.0 page that contains an ActiveX control that I wrote in VC++ v6.0. Under Visual Interdev I can debug the ASP code just fine. However,
when I get to an ASP line that references my ActiveX control the debugger
does not go inside my C++ code allowing me to debug the ActiveX control. If I load the ActiveX control project from VC++ with Internet Explorer as the
debug executable I have the same problem. Break points in the ActiveX
control's code are not respected. I know I'm compiling in Debug mode, any
idea how to get these breakpoints to be respected?


I'm not sure how you have ASP code that references an ActiveX control, as
ASP is server-side and ActiveX controls are client side ...
Jul 22 '05 #2

P: n/a
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:#9**************@TK2MSFTNGP11.phx.gbl...
I have an ASP 3.0 page that contains an ActiveX control that I wrote in

VC++
v6.0. Under Visual Interdev I can debug the ASP code just fine. However,
when I get to an ASP line that references my ActiveX control the debugger
does not go inside my C++ code allowing me to debug the ActiveX control.

If
I load the ActiveX control project from VC++ with Internet Explorer as
the
debug executable I have the same problem. Break points in the ActiveX
control's code are not respected. I know I'm compiling in Debug mode, any
idea how to get these breakpoints to be respected?


I'm not sure how you have ASP code that references an ActiveX control, as
ASP is server-side and ActiveX controls are client side ...

I presume he meant an Activex dll, which certainly can be used by asp.

In answer to the OP, I don't have experience of VC++, but the similar
situation occurs in VB and what you have to do is unregister the current
dll:

c:\winnt\system32\regsvr32 "c:\yourdll.dll" -u

This prevents calls from the asp pages to this dll going to the compiled dll
and instead will go to your code in the ide. You have to start the debug
from within the Visual C++ ide.
--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
Jul 22 '05 #3

P: n/a
Is the control server-side(called from ASP script code to do something on
the server) or client-side.

If server-side (this may not be the simplest but it works for me):

Set application protection to "low" for the indicated virtual directory.
Launch task manager and find the inetinfo process.
Right-click on the process and select "debug". If you have VC++ on the
system you should be take into the C++ debugger.
Open your project files and set breakpoints as desired (you may need to
run the affected web page once to load the control dll)

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I have an ASP 3.0 page that contains an ActiveX control that I wrote in VC++ v6.0. Under Visual Interdev I can debug the ASP code just fine. However,
when I get to an ASP line that references my ActiveX control the debugger
does not go inside my C++ code allowing me to debug the ActiveX control. If I load the ActiveX control project from VC++ with Internet Explorer as the
debug executable I have the same problem. Break points in the ActiveX
control's code are not respected. I know I'm compiling in Debug mode, any
idea how to get these breakpoints to be respected?

Many thanks.

Jul 22 '05 #4

P: n/a
"John Blessing" <ne*******@LbeHelpdesk.com> wrote in message
news:32*************@individual.net...
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:#9**************@TK2MSFTNGP11.phx.gbl...
I have an ASP 3.0 page that contains an ActiveX control that I wrote in

VC++
v6.0. Under Visual Interdev I can debug the ASP code just fine. However, when I get to an ASP line that references my ActiveX control the
debugger
I'm not sure how you have ASP code that references an ActiveX control, as ASP is server-side and ActiveX controls are client side ...


I presume he meant an Activex dll, which certainly can be used by asp.


Perhaps - but that's more commonly known as a "server component".
Jul 22 '05 #5

P: n/a
Thanks John. I unregistered the control. What should I set as the target
executable in VC++? Internet Explorer?

Thanks,

- Andrew
"John Blessing" <ne*******@LbeHelpdesk.com> wrote in message
news:32*************@individual.net...
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:#9**************@TK2MSFTNGP11.phx.gbl...
I have an ASP 3.0 page that contains an ActiveX control that I wrote in VC++
v6.0. Under Visual Interdev I can debug the ASP code just fine. However, when I get to an ASP line that references my ActiveX control the debugger does not go inside my C++ code allowing me to debug the ActiveX control.
If
I load the ActiveX control project from VC++ with Internet Explorer as
the
debug executable I have the same problem. Break points in the ActiveX
control's code are not respected. I know I'm compiling in Debug mode,
any idea how to get these breakpoints to be respected?


I'm not sure how you have ASP code that references an ActiveX control,

as ASP is server-side and ActiveX controls are client side ...

I presume he meant an Activex dll, which certainly can be used by asp.

In answer to the OP, I don't have experience of VC++, but the similar
situation occurs in VB and what you have to do is unregister the current
dll:

c:\winnt\system32\regsvr32 "c:\yourdll.dll" -u

This prevents calls from the asp pages to this dll going to the compiled

dll and instead will go to your code in the ide. You have to start the debug
from within the Visual C++ ide.
--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook

Jul 22 '05 #6

P: n/a
Thanks mark. Attempting to debug INETINFO gives me an error dialog that
says:

"The /E command line switch must be followed by an event handle"

Any idea how to get around this?

Thanks,

Andrew

"Mark Schupp" <no****@nospam.com> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
Is the control server-side(called from ASP script code to do something on
the server) or client-side.

If server-side (this may not be the simplest but it works for me):

Set application protection to "low" for the indicated virtual directory. Launch task manager and find the inetinfo process.
Right-click on the process and select "debug". If you have VC++ on the
system you should be take into the C++ debugger.
Open your project files and set breakpoints as desired (you may need to run the affected web page once to load the control dll)

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I have an ASP 3.0 page that contains an ActiveX control that I wrote in

VC++
v6.0. Under Visual Interdev I can debug the ASP code just fine. However,
when I get to an ASP line that references my ActiveX control the debugger does not go inside my C++ code allowing me to debug the ActiveX control.

If
I load the ActiveX control project from VC++ with Internet Explorer as the debug executable I have the same problem. Break points in the ActiveX
control's code are not respected. I know I'm compiling in Debug mode, any idea how to get these breakpoints to be respected?

Many thanks.


Jul 22 '05 #7

P: n/a


Thanks John. I unregistered the control. What should I set as the target
executable in VC++? Internet Explorer?

Thanks,


As I said, I am just relating this to my experience of debugging an activex
dll written in VB. In the VB Ide, I would: Project menu, Properties,
Debugging tab, select the "Start browser with url" option and specify a .asp
page on my local webserver that instantiates the activex dll object and
calls one of its methods.
--
John Blessing
Jul 22 '05 #8

P: n/a
Are you debugging on the system where you have VC++ installed?
If not, set up a test site on that system and debug there.

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl...
Thanks mark. Attempting to debug INETINFO gives me an error dialog that
says:

"The /E command line switch must be followed by an event handle"

Any idea how to get around this?

Thanks,

Andrew

"Mark Schupp" <no****@nospam.com> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
Is the control server-side(called from ASP script code to do something on
the server) or client-side.

If server-side (this may not be the simplest but it works for me):

Set application protection to "low" for the indicated virtual

directory.
Launch task manager and find the inetinfo process.
Right-click on the process and select "debug". If you have VC++ on
the
system you should be take into the C++ debugger.
Open your project files and set breakpoints as desired (you may need

to
run the affected web page once to load the control dll)

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
> I have an ASP 3.0 page that contains an ActiveX control that I wrote in

VC++
> v6.0. Under Visual Interdev I can debug the ASP code just fine.
> However,
> when I get to an ASP line that references my ActiveX control the debugger > does not go inside my C++ code allowing me to debug the ActiveX
> control.

If
> I load the ActiveX control project from VC++ with Internet Explorer as the > debug executable I have the same problem. Break points in the ActiveX
> control's code are not respected. I know I'm compiling in Debug mode, any > idea how to get these breakpoints to be respected?
>
> Many thanks.
>
>



Jul 22 '05 #9

P: n/a
I am.
"Mark Schupp" <no******@email.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Are you debugging on the system where you have VC++ installed?
If not, set up a test site on that system and debug there.

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl...
Thanks mark. Attempting to debug INETINFO gives me an error dialog that
says:

"The /E command line switch must be followed by an event handle"

Any idea how to get around this?

Thanks,

Andrew

"Mark Schupp" <no****@nospam.com> wrote in message
news:ua**************@TK2MSFTNGP14.phx.gbl...
Is the control server-side(called from ASP script code to do something on the server) or client-side.

If server-side (this may not be the simplest but it works for me):

Set application protection to "low" for the indicated virtual

directory.
Launch task manager and find the inetinfo process.
Right-click on the process and select "debug". If you have VC++ on
the
system you should be take into the C++ debugger.
Open your project files and set breakpoints as desired (you may need
to
run the affected web page once to load the control dll)

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
> I have an ASP 3.0 page that contains an ActiveX control that I wrote
in VC++
> v6.0. Under Visual Interdev I can debug the ASP code just fine.
> However,
> when I get to an ASP line that references my ActiveX control the

debugger
> does not go inside my C++ code allowing me to debug the ActiveX
> control.
If
> I load the ActiveX control project from VC++ with Internet Explorer

as the
> debug executable I have the same problem. Break points in the ActiveX
> control's code are not respected. I know I'm compiling in Debug mode,

any
> idea how to get these breakpoints to be respected?
>
> Many thanks.
>
>



Jul 22 '05 #10

P: n/a
I don't know what it could be. I have been debugging server-side components
(vb6 and vc++) that way for several years.

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:OX**************@TK2MSFTNGP09.phx.gbl...
I am.
"Mark Schupp" <no******@email.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Are you debugging on the system where you have VC++ installed?
If not, set up a test site on that system and debug there.

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl...
> Thanks mark. Attempting to debug INETINFO gives me an error dialog that
> says:
>
> "The /E command line switch must be followed by an event handle"
>
> Any idea how to get around this?
>
> Thanks,
>
> Andrew
>
> "Mark Schupp" <no****@nospam.com> wrote in message
> news:ua**************@TK2MSFTNGP14.phx.gbl...
>> Is the control server-side(called from ASP script code to do something on >> the server) or client-side.
>>
>> If server-side (this may not be the simplest but it works for me):
>>
>> Set application protection to "low" for the indicated virtual
> directory.
>> Launch task manager and find the inetinfo process.
>> Right-click on the process and select "debug". If you have VC++ on
>> the
>> system you should be take into the C++ debugger.
>> Open your project files and set breakpoints as desired (you may need > to
>> run the affected web page once to load the control dll)
>>
>> --
>> Mark Schupp
>> Head of Development
>> Integrity eLearning
>> www.ielearning.com
>>
>>
>> "Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
>> news:%2****************@TK2MSFTNGP11.phx.gbl...
>> > I have an ASP 3.0 page that contains an ActiveX control that I wrote in >> VC++
>> > v6.0. Under Visual Interdev I can debug the ASP code just fine.
>> > However,
>> > when I get to an ASP line that references my ActiveX control the
> debugger
>> > does not go inside my C++ code allowing me to debug the ActiveX
>> > control.
>> If
>> > I load the ActiveX control project from VC++ with Internet Explorer as > the
>> > debug executable I have the same problem. Break points in the
>> > ActiveX
>> > control's code are not respected. I know I'm compiling in Debug
>> > mode,
> any
>> > idea how to get these breakpoints to be respected?
>> >
>> > Many thanks.
>> >
>> >
>>
>>
>
>



Jul 22 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.