.CPP导出函数extern "C" WININETAPI wchar_t* __stdcall ExportSession(CWininetHook* pObject,wchar_t* url)
{
if(pObject != NULL)
{
//return pObject->GetSession(url);
return url;
}
return NULL;
}C#调用函数  [DllImport("wh.dll")]
  static private extern string ExportSession(IntPtr p,string url );
错误信息:
Windows has triggered a breakpoint in MyIE.exe.This may be due to a corruption of the heap, which indicates a bug in MyIE.exe or any of the DLLs it has loaded.This may also be due to the user pressing F12 while MyIE.exe has focus.The output window may have more diagnostic information.