|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
debugging vb6 activex dll under apache/tomcatI have vb6 activex dll that gets called by tomcat/apache through
another application. Can someone tell me how to debug this dll at run time? Right now I am just printing messages to file which is not a the right way "vishr" <viswanatha.***@bp.com> wrote in message Several ways.news:1128973276.228914.84460@g47g2000cwa.googlegroups.com... > I have vb6 activex dll that gets called by tomcat/apache through > another application. Can someone tell me how to debug this dll at run > time? Right now I am just printing messages to file which is not a the > right way > The simplest is to open up your DLL project. Go to Project Properties -> Debugging Tab and enter which program to 'start' your application. Leave the project open and start the 'user'. You may run into trouble with a web application because of the isolation and permissions your DLL and the IDE must run under. You may have to copy VB6DEBUG.DLL into your web space. I don't know enough about tomcat/apache concerning permissions. -ralph Press F5 in your DLL project and choose "Wait for component to be created",
you could also set this in the project's properties. The other application that uses your DLL must use late binding, as in: Set o = CreateObject("Project1.Class1") CreateObject has a second optional parameter which lets you specify a different computer if VB6 is installed on a different computer, for example: Set o = CreateObject("Project1.Class1", "192.168.0.100") Or: Set o = CreateObject("Project1.Class1", "VB6PC") It's best to test on the same computer, as the second form might require you to adjust your security settings. Search MS KB for "dcomcnfg". As Ralph suggested, VB6 uses VB6DEBUG.DLL not your DLL. So you may have to unregister your DLL first, but that maybe unnecessary especially if you are using binary compatibility. If you have problems, just unregister your DLL. Also, read my post here: http://groups.google.com/group/microsoft.public.vb.com/browse_thread/thread/ccf3a9c514ec0c98/62460a2dfac8c3e1 Show quoteHide quote "vishr" <viswanatha.***@bp.com> wrote in message news:1128973276.228914.84460@g47g2000cwa.googlegroups.com... >I have vb6 activex dll that gets called by tomcat/apache through > another application. Can someone tell me how to debug this dll at run > time? Right now I am just printing messages to file which is not a the > right way > The applicaiton that calls my dll requires the actual dlls to be copied
in a specific directory outside my project directory and registered with regsvr32 command. The application runs with Tomcat/Apache and at some point in the UI calls the DLL. I have no control on the application that calls my dll neither can I do a CreateProject or unregister the dll. However, I am running both on the same pc. I am little confused. Can you shed some more light on this? *** Sent via Developersdex http://www.developersdex.com ***
Converting decimal to BCD (binary coded decimal)...
Transparent Picturebox I must be blind -- what's wrong with this sub? RESET does what? Why can't I test class functions from the Immediate window? advanced tooltip bubbles question Reverse Array order ? Cannot Load Form! Activex Exe convert month to month |
|||||||||||||||||||||||