Debuggng a DLL

  • Thread starter Thread starter Anil Gupte/iCinema.com
  • Start date Start date
A

Anil Gupte/iCinema.com

I have written a program in VB.Net 2003 and also imported it into 2005. One
of the components is a DirectShow Application (a source filter) written as a
DLL in C++ (VC2003) for us by someone else. I want to step through the
functions of the DLL. Is this possible? Yes, I have the soure code for the
DLL.
The function is called in VB something like this:
Private Declare Function xyz Lib "xyz.dll" (ByVal command As IntPtr, ByVal
handle As Long) As Boolean

I tried importing the C++ Project into the main application as a seprate
project and pointing the reference to the output to the debug directory, but
no luck.
Private Declare Function xyz Lib "..\abc\debug\xyz.dll" (ByVal command As
IntPtr, ByVal handle As Long) As Boolean

Any help appreciated.

BTW, is there a Directshow Newsgroup anywhere?

Thanx,
 
I have written a program in VB.Net 2003 and also imported it into 2005. One
of the components is a DirectShow Application (a source filter) written as a
DLL in C++ (VC2003) for us by someone else. I want to step through the
functions of the DLL. Is this possible? Yes, I have the soure code for the
DLL.

If you can build a debug version of the DLL, then yes, it should be
possible. One thing to check is that somewhere in your VB project
settings there's probably a setting to enable mixed mode debugging -
both managed (VB) and native (C/C++) code. Make sure you enable that
before debugging.

Dave
 
Back
Top