Why always show these errors when I debug this project.

Answered Why always show these errors when I debug this project.

  • Friday, December 09, 2005 2:20 AM
     
     
    Hi guys, my question is:
    when i debug the project 'amcap' from it's original location(C:\DXSDK\Samples\C++\DirectShow\Capture\AMCap),
    It is ok.

    But, I copy this project to another location(for example: d:\myprojects\) and reset the include file to
    c:\DXSDK\Include  
     C:\DXSDK\SAMPLES\C++\COMMON\INCLUDE
    C:\DXSDK\SAMPLES\C++\DIRECTSHOW\BASECLASSES,  library file's directory to
    C:\DXSDK\LIB
    before this i have copy strmbasd.lib and strmbase.lib to c:\dxsdk.

    then debug this project, it shows 'amcap.exe - 221 error(s), 5 warning(s)'. So many errors, I faint.
    especially, It said 'C:\DXSDK\SAMPLES\C++\DIRECTSHOW\BASECLASSES\wxutil.h(530) : error C2061: syntax error : identifier 'DWORD_PTR'' , 'C:\DXSDK\SAMPLES\C++\DIRECTSHOW\BASECLASSES\ctlutil.h(437) : error C2504: 'IBasicVideo2' : base class undefined', and so forth.

    Why??

All Replies

  • Monday, December 12, 2005 2:57 AM
     
     Answered
    hi, guys, i have resolved this problem.
    I'v changed order of the include files .
    the original order is:
    C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
    C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
    C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
    c:\DXSDK\Include  
     C:\DXSDK\SAMPLES\C++\COMMON\INCLUDE
    C:\DXSDK\SAMPLES\C++\DIRECTSHOW\BASECLASSES

    after changed , the new order is:
    c:\DXSDK\Include  
     C:\DXSDK\SAMPLES\C++\COMMON\INCLUDE
    C:\DXSDK\SAMPLES\C++\DIRECTSHOW\BASECLASSES
    C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
    C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
    C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE

    It is ok, I can debug my project without any problem.
    But, I remember in the prior perating system, i use the original order, it is also ok to debug.
    Why??? thinking...