Why Cant I debug an extern C function in my Project?
Posted on 2009-05-07
Im developing a windows application (not web-based) using Visual Studio 2008 and Visual C#.
One of the projects within the solution builds into a DLL. One of the source files of this DLL contains a function as shown below;
extern "C" __declspec(dllexport) double* getTriggerWaveform_DLL(long channelNo, long noOfPoints, double* timeIncrement, double* startTime) throw(exception)
// sample code
int a = 2;
a = a + 2;
Im trying to debug my solution but I am not being allowed to set a breakpoint in the code within this function. Instead I get the following message
"The breakpoint will not currently be hit. No symbols have been loaded for this document."
When I select the solution then do Project->Properties->Configuration Properties I note that the Platform for the DLL is set as "Win32" whereas all the other projects in the solution have Platform set to "Any CPU". Im not sure if that is significant.
Also note that Build is set to "Debug" for all the projects in the solution so that is not the reason.
I really need to be able to debug this function because my application hangs somewhere inside it !