Hi, I have a demo programe download from codeproject.com ,is about NPAPI plugins use vs2008 build,i can build win32 sucess,but win64 is error
Deleting intermediate file and output file for project “npcodeproject” (configuration “Debug | x64”)
1> Compiling …
1>np_entry.cpp
1>D:\Program Files\Microsoft SDKs\Windows\v7.1\Include\winnt.h(135) : fatal error C1189: #error : "No Target Architecture"
1>npn_gate.cpp
1>D:\Program Files\Microsoft SDKs\Windows\v7.1\Include\winnt.h(135) : fatal error C1189: #error : "No Target Architecture"
1>npp_gate.cpp
1>D:\Program Files\Microsoft SDKs\Windows\v7.1\Include\winnt.h(135) : fatal error C1189: #error : "No Target Architecture"
1>NPString.cpp
1>D:\Program Files\Microsoft SDKs\Windows\v7.1\Include\winnt.h(135) : fatal error C1189: #error : "No Target Architecture"
1>plugin.cpp
1>D:\Program Files\Microsoft SDKs\Windows\v7.1\Include\winnt.h(135) : fatal error C1189: #error : “No Target Architecture”
winnt.h file :
#if defined(AMD64)
#define PROBE_ALIGNMENT( _s ) TYPE_ALIGNMENT( DWORD )
#elif defined(IA64)
#define PROBE_ALIGNMENT( _s ) (TYPE_ALIGNMENT( _s ) > TYPE_ALIGNMENT( DWORD ) ?
TYPE_ALIGNMENT( _s ) : TYPE_ALIGNMENT( DWORD ))
#else
#error “No Target Architecture”
#endif
after add AMD64 macro,also has error
"_CONTEXT": "struct" type redefinition
is anyone can help me ?it confuse me many days