Results 1 to 5 of 5

Thread: IC Imaging Control C++ Class Library error C1189 "This Library requires_WIN32_WINNT..

  1. #1
    Join Date
    May 2012
    Posts
    3

    IC Imaging Control C++ Class Library error C1189 "This Library requires_WIN32_WINNT..

    Hi,

    i' am a student and using ICImaging Controll C++ Class Library 3.2 with Visual Studio 2010. When i try to build my application i get the following error message:

    error C1189: #error : "This library requires _WIN32_WINNT to be at least 0x0500 (Windows 2000)" c:\users\bele\documents\ic imaging control 3.2\classlib\include\udshl_lnk.h

    My system is: Windows 7 32 bit, Visual Studio 2010, Samsung R560 Notebook
    My application is a "windows forms" application including OpenCV 2.3.1 (C++ Code).

    Whats about that error? I think IC 3.2 should work with Windows 7.
    Whats about combination of Windows Forms (C++) an IC 3.2?

    Best regards Benjamin

  2. #2
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,862

    Re: IC Imaging Control C++ Class Library error C1189 "This Library requires_WIN32_WIN

    Hi

    Simply define
    Code:
    #define _WIN32_WINNT 0x0501
    in your stdafx.h and you should be done.
    Best regards
    Stefan
    IC Imaging Control Support

  3. #3
    Join Date
    May 2012
    Posts
    3

    Re: IC Imaging Control C++ Class Library error C1189 "This Library requires_WIN32_WIN

    Hi thank you for your answer, now i get some other errors:


    error C2872: 'IServiceProvider': Mehrdeutiges Symbol C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ocidl.h
    error C2872: 'IMessageFilter': Mehrdeutiges Symbol c:\program files\microsoft visual studio 10.0\vc\include\comdefsp.h
    error C2872: 'IDropTarget': Mehrdeutiges Symbol C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ocidl.h
    error C2872: 'IDataObject': Mehrdeutiges Symbol c:\program files\microsoft visual studio 10.0\vc\include\comdefsp.h

    Whats about that? This error appeared after setting #define _WIN32_WINNT 0x0501 in stdafx.h

    Thanks for this great support!

    Best regard Benjamin

  4. #4
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,862

    Re: IC Imaging Control C++ Class Library error C1189 "This Library requires_WIN32_WIN

    Benjamin,

    Please check you includes and library settings. It seems, you link some things twice. Without seeing your project on my own, it is hard to determine, where the includes are doubled.
    Best regards
    Stefan
    IC Imaging Control Support

  5. #5
    Join Date
    May 2012
    Posts
    3

    Re: IC Imaging Control C++ Class Library error C1189 "This Library requires_WIN32_WIN

    I solved the problems with error C2872. I set some namespaces at the wrong place, now it works.
    Thanks for helping me with my problems.

    Best regards Benjamin

Similar Threads

  1. Using C++ Class Library with BorlandBuilder
    By Aino in forum IC Imaging Control C++ Class Library
    Replies: 1
    Last Post: May 25, 2009, 16:15:49
  2. IC Imaging Control with Static Library
    By speedo in forum IC Imaging Control C++ Class Library
    Replies: 2
    Last Post: November 3, 2008, 19:35:59
  3. IC Imaging Control Class Library Users Guide
    By teiz in forum IC Imaging Control C++ Class Library
    Replies: 3
    Last Post: April 24, 2008, 17:44:34
  4. C++ class library vs. .Net
    By pauljurczak in forum IC Imaging Control C++ Class Library
    Replies: 1
    Last Post: December 11, 2007, 09:13:51

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •