我使用的视频捕捉卡提供开发包为10Moons Video Capture SDK for Win2000 , Ver 5.2 版。在Visual C++的MFC程序中可以正常使用开发包中提供的DSStream.h/DSStream.lib/DSStream.dll。    但是我在使用WinSDK和纯C语言编程(就是VC中建立的Win32 Application项目)中却没发使用这些SDK,连接时没法找到函数,是不是MFC的lib不能供WinSDK使用?不会吧?    首先我已经修正了.h文件(就是注释掉了一些C++默认参数的问题等),确保了lib/dll均在正确路径位置。    希望能够解决,谢谢!

解决方案 »

  1.   

    菜单:Project\Settings\General\Microsoft Foundation class
    另选一个
      

  2.   

    // Initialize MFC 
    AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0);Change project settings:
         - Open the Project Settings window ("Alt+F7")
         - Select the General tab
         - Choose use MFC in a shared DDL in the Microsoft Foundation Classes box
      

  3.   

    已经解决了,将.c改为.cpp,再作了一些其他改动,就好了。如果是.c,即使.h之类的没错误,也不能调用DLL,不知道怎么回事。谢谢大家!每人各打23大板,怎么给大伙儿加分啊?