解决方案 »

  1.   

    请问缺少什么dll文件啊,这些都是系统生成的
      

  2.   

    就是你安装编译器的时候安装的是不完整的吧?你用的什么编译器,那些错误提示不是说了缺少什么dll了吗
      

  3.   

    恩,这个是不会缺少的,安装绝对是完整的,所以是程序的问题,但是我找了好几天都没找到问题,就是给列表添加媒体信息:appendItem,这个不对,才想其他方法的,结果也不对。。
      

  4.   

    CWMPMedia
    “VC2008 Windows Media Player控件”注册了 没有, 资源中 拖进来的 控件 ?
      

  5.   

    哦?我拖进去之后建立类向导了,为m_player
      

  6.   

    w_name = m_media.GetName();
    是 UNICODE 的 
    CString CWMPMedia::GetName()
    {
    CString result;
    InvokeHelper(0x2fc, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
    return result;
    }就这一个函数, 使用 CString ?
    试试 别的 。
      

  7.   

    看看 CWMPMedia::GetName() 还有没有别的 重载 函数。
    一般不会 一个。
      

  8.   

    除了“First-chance exception ”
    还有没有 别的 ,有时 First-chance exception  并不要紧。
      

  9.   

    崩溃的时候在弹出的对话框按相应按钮进入调试,按Alt+7键查看Call Stack里面从上到下列出的对应从里层到外层的函数调用历史。双击某一行可将光标定位到此次调用的源代码或汇编指令处。
      

  10.   

    Synchronization Functions
    The following functions are used in synchronization.   
     
    CancelWaitableTimer  
    CreateEvent  
    CreateMutex  
    CreateSemaphore  
    CreateWaitableTimer  
    DeleteCriticalSection  
    EnterCriticalSection  
    GetOverlappedResult  
    InitializeCriticalSection  
    InitializeCriticalSectionAndSpinCount  
    InterlockedCompareExchange  
    InterlockedDecrement  
    InterlockedExchange  
    InterlockedExchangeAdd  
    InterlockedIncrement  
    LeaveCriticalSection  
    MsgWaitForMultipleObjects  
    MsgWaitForMultipleObjectsEx  
    OpenEvent  
    OpenMutex  
    OpenSemaphore  
    OpenWaitableTimer  
    PulseEvent  
    QueueUserAPC  
    ReleaseMutex  
    ReleaseSemaphore  
    ResetEvent  
    SetCriticalSectionSpinCount  
    SetEvent  
    SetWaitableTimer  
    SignalObjectAndWait  
    TimerAPCProc  
    TryEnterCriticalSection  
    WaitForMultipleObjects  
    WaitForMultipleObjectsEx  
    WaitForSingleObject  
    WaitForSingleObjectEx   
     
      

  11.   

    我已经调出来就在GetName中间那个helper那行了,指到最后的参数:NULL
      

  12.   

    多线程或多进程处理数据需要加各种各样的锁。
    当然,如果仅仅是因为NULL指针,就没必要加什么锁了。