Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Debugging ActiveX controls on a web page
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.



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Chalk
12-16-04 01:55 PM


Re: Debugging ActiveX controls on a web page
"Andrew Chalk" <achalk@XXXmagnacartasoftware.com> wrote in message
news:#9MKWB24EHA.3616@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 ...



Report this thread to moderator Post Follow-up to this message
Old Post
Tom Kaminski [MVP]
12-16-04 08:55 PM


Re: Debugging ActiveX controls on a web page
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:%23nxlOp34EHA.2540@TK2MSFTNGP09.phx.gbl...
> "Andrew Chalk" <achalk@XXXmagnacartasoftware.com> wrote in message
> news:#9MKWB24EHA.3616@TK2MSFTNGP11.phx.gbl... 
> VC++ 
> If 
>
> 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



Report this thread to moderator Post Follow-up to this message
Old Post
John Blessing
12-16-04 08:55 PM


Re: Debugging ActiveX controls on a web page
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" <achalk@XXXmagnacartasoftware.com> wrote in message
news:%239MKWB24EHA.3616@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.
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Mark Schupp
12-16-04 08:55 PM


Re: Debugging ActiveX controls on a web page
"John Blessing" <newsgroup@LbeHelpdesk.com> wrote in message
news:32dpckF3linkkU1@individual.net...
> "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
> news:%23nxlOp34EHA.2540@TK2MSFTNGP09.phx.gbl... 
However, 
debugger 
as 
>
> 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".



Report this thread to moderator Post Follow-up to this message
Old Post
Tom Kaminski [MVP]
12-17-04 01:55 AM


Re: Debugging ActiveX controls on a web page
Thanks John. I unregistered the control. What should I set as the target
executable in VC++? Internet Explorer?

Thanks,

- Andrew
"John Blessing" <newsgroup@LbeHelpdesk.com> wrote in message
news:32dpckF3linkkU1@individual.net...
> "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
> news:%23nxlOp34EHA.2540@TK2MSFTNGP09.phx.gbl... 
However, 
debugger 
control. 
any 
as 
>
>
> 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
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Chalk
12-17-04 08:55 PM


Re: Debugging ActiveX controls on a web page
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" <nospan@nospam.com> wrote in message
news:uaV4go44EHA.4092@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" <achalk@XXXmagnacartasoftware.com> wrote in message
> news:%239MKWB24EHA.3616@TK2MSFTNGP11.phx.gbl... 
> VC++ 
debugger 
> If 
the 
any 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Chalk
12-17-04 08:55 PM


Re: Debugging ActiveX controls on a web page


> 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



Report this thread to moderator Post Follow-up to this message
Old Post
John Blessing
12-17-04 08:55 PM


Re: Debugging ActiveX controls on a web page
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" <achalk@XXXmagnacartasoftware.com> wrote in message
news:uGtquPF5EHA.2180@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" <nospan@nospam.com> wrote in message
> news:uaV4go44EHA.4092@TK2MSFTNGP14.phx.gbl... 
> directory. 
> to 
> debugger 
> the 
> any 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Mark Schupp
12-17-04 08:55 PM


Re: Debugging ActiveX controls on a web page
I am.
"Mark Schupp" <notvalid@email.net> wrote in message
news:%23iS$GzG5EHA.1392@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" <achalk@XXXmagnacartasoftware.com> wrote in message
> news:uGtquPF5EHA.2180@TK2MSFTNGP12.phx.gbl... 
on 
need 
in 
as 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Chalk
12-18-04 05:46 PM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:00 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.