Question : How to attach to process in Visual Basic?

hi,

Where can I find "Attach to Process" option in Microsoft Visual Basic?

I found out this option in Tools menu in Microsoft Visual Studio but unable to attach a process in Microsoft Visual Basic.

Thanks for any help.

Answer : How to attach to process in Visual Basic?

In the VB6 IDE that you are using for your ActiveX EXE (or DLL), under Project->Project Properties, on the Debugging Tab, you can choose "Start Program" and enter the calling program.  It doesn't attach to an existing instance, but does allow you to debug.

Alternatively you can choose "Wait for components to be created", "Run" your exe in debug and then manually start the calling app.  VB6 replaces registry entries for the component to point to the debugger, but only after you have started the debugger, so it is essentially the same as option 1.
Random Solutions  
 
programming4us programming4us