Cannot Debug Visual Basic 6 ActiveX Component On 64-bit OS
Posted
by Humanier
on Stack Overflow
See other posts from Stack Overflow
or by Humanier
Published on 2010-06-02T14:02:15Z
Indexed on
2010/06/02
14:03 UTC
Read the original article
Hit count: 449
Hi,
The situation might sound a bit weird but I have to play with what I have. There's a Win2003 64-bit server OS and a legacy application written using Visual Studio 6. The app consists of two parts: ActiveX components written in VB6 and C++ code which uses them.
I need to debug the components' code. I installed Visual Studio 6 on the server and I'm able to step into the component's code. Then I got following situation:
1) C++ code works until it needs to instantiate component A. 2) At this step we switch to VB6 and start debugging Component's A. 3) In the very beginning component A creates an instance of a class C exposed by component B. At this step VB6 debugger shows error message with title "OLEDB32.DLL" and following text: "Failed to load resource DLL C:\Program Files (x86)\Common Files\System\Ole DB\OLEDB32R.DLL"
Additional information: The last step in initialization of the class C is opening an ADO connection to SQL server using OLEDB provider.
I'd appreciate any ideas on how resolve this problem. Thanks in advance.
© Stack Overflow or respective owner