Microsoft Developer Network > 포럼 홈 > Visual C++ General > Cannot open Include file(.h) in dll: error
질문하기질문하기
 

질문Cannot open Include file(.h) in dll: error

  • 2009년 10월 30일 금요일 오전 6:21santoshdarekar 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hello friends,

    I am building a C library file(DLL), which I'll be using in my C# app with marshalling.

    But, I have some problem while compiling the library.

    If I have a Console app with same C code it compiles and runs fine. But, now I have created a Class library project

    and using a same Code in it. My code is using single .h file. The problem while compiling is, it can't find that .h file.

    The .h which I am using has come with third party libraries.


    But, it raises an compile time error only when I excute the program with library project.

    The Directory structure of the library project is as Below:

    -LibraryProjectDirectory
    --Debug
    ---ExpectedOutputDLLfile
    --Properties

    --Resources

    ---The third party library files

    .C file
    .vcproj


    In the Linker settings I have added the 'Resources' directory path.

    But still i'm getting the error saying, "Cannot Open Include file: .h".




    Santosh.
    • 이동됨eryangMSFT2009년 11월 2일 월요일 오전 7:04wrong forum (From:Common Language Runtime)
    •  

모든 응답