Hi , I debug my project and I receive 'LNK1266' error my consoleapplication6 is:
// 2004.05.28, 2004.10.20, 2005.01.08, 2005.03.25, 2005.04.28, 2005.07.18, 2005.07.28, 2005.09.19, 2007.12.19, 2008.10.15
//****************************************
//** Copyright (C) W.ch 1999-2008 **
//** Web: http://www.winchiphead.com **
//****************************************
//** DLL for USB interface chip CH341 **
//** C, VC5.0 **
//****************************************
//
// USB×ÜÏß½Ó¿ÚоƬCH341²¢¿ÚÓ¦Óòã½Ó¿Ú¿â V2.1
// ÄϾ©Çߺãµç×ÓÓÐÏÞ¹«Ë¾ ×÷Õß: W.ch 2008.10
// CH341-DLL V2.1
// ÔËÐл·¾³: Windows 98/ME, Windows 2000/XP
// support USB chip: CH341, CH341A
// USB => Parallel, I2C, SPI, JTAG ...
//
include <windows.h>
ifndef _CH341_DLL_H
define _CH341_DLL_H
ifdef __cplusplus
extern "C" {
endif
define mOFFSET( s, m ) ( (ULONG) & ( ( ( s * ) 0 ) -> m ) ) // ¶¨Òå»ñÈ¡½á¹¹³ÉÔ±Ïà¶ÔÆ«ÒÆµØÖ·µÄºê
ifndef max
define max( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) ) // ½Ï´óÖµ
endif
ifndef min
define min( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) ) // ½ÏСֵ
endif
ifdef ExAllocatePool
undef ExAllocatePool // ɾ³ý´øTAGµÄÄÚ´æ·ÖÅä
endif
ifndef NTSTATUS
typedef long NTSTATUS; // ·µ»Ø×´Ì¬
endif
typedef struct _USB_SETUP_PKT { // USB¿ØÖÆ´«ÊäµÄ½¨Á¢½×¶ÎµÄÊý¾ÝÇëÇó°ü½á¹¹
unsigned char mUspReqType; // 00H ÇëÇóÀàÐÍ
unsigned char mUspRequest; // 01H ÇëÇó´úÂë
union {
struct {
unsigned char mUspValueLow; // 02H Öµ²ÎÊýµÍ×Ö½Ú
unsigned char mUspValueHigh; // 03H Öµ²ÎÊý¸ß×Ö½Ú
};
And the header file I use is:
// 2004.05.28, 2004.10.20, 2005.01.08, 2005.03.25, 2005.04.28, 2005.07.18, 2005.07.28, 2005.09.19, 2007.12.19, 2008.10.15
//****************************************
//** Copyright (C) W.ch 1999-2008 **
//** Web: http://www.winchiphead.com **
//****************************************
//** DLL for USB interface chip CH341 **
//** C, VC5.0 **
//****************************************
//
// USB×ÜÏß½Ó¿ÚоƬCH341²¢¿ÚÓ¦Óòã½Ó¿Ú¿â V2.1
// ÄϾ©Çߺãµç×ÓÓÐÏÞ¹«Ë¾ ×÷Õß: W.ch 2008.10
// CH341-DLL V2.1
// ÔËÐл·¾³: Windows 98/ME, Windows 2000/XP
// support USB chip: CH341, CH341A
// USB => Parallel, I2C, SPI, JTAG ...
//
include <windows.h>
ifndef _CH341_DLL_H
define _CH341_DLL_H
ifdef __cplusplus
extern "C" {
endif
define mOFFSET( s, m ) ( (ULONG) & ( ( ( s * ) 0 ) -> m ) ) // ¶¨Òå»ñÈ¡½á¹¹³ÉÔ±Ïà¶ÔÆ«ÒÆµØÖ·µÄºê
ifndef max
define max( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) ) // ½Ï´óÖµ
endif
ifndef min
define min( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) ) // ½ÏСֵ
endif
ifdef ExAllocatePool
undef ExAllocatePool // ɾ³ý´øTAGµÄÄÚ´æ·ÖÅä
endif
ifndef NTSTATUS
typedef LONG NTSTATUS; // ·µ»Ø×´Ì¬
endif
How can I fix my problem .
Please help
Thanks