Home > Back-end >  Add <wintrust. H> error
Add <wintrust. H> error

Time:09-20

# include & lt; Iostream>
# include & lt; Wintrust. H>
# pragma comment (lib, "wintrust. Lib")

using namespace std;

Int main ()
{
Cout & lt; <"Ok" & lt;
return 0;
}

C: \ program files \ Microsoft visual studio (x86) \ vc98 \ include \ wintrust h (37) : error C2146: syntax error: missing '; 'before the identifier' cbStruct '
C: \ program files \ Microsoft visual studio (x86) \ vc98 \ include \ wintrust h (37) : error C2501: 'DWORD: missing storage - class or type specifiers
C: \ program files \ Microsoft visual studio (x86) \ vc98 \ include \ wintrust h (37) : error C2501: 'cbStruct: missing storage - class or type specifiers
C: \ program files \ Microsoft visual studio (x86) \ vc98 \ include \ wintrust h (39) : error C2146: syntax error: missing '; 'before the identifier' pPolicyCallbackData '
C: \ program files \ Microsoft visual studio (x86) \ vc98 \ include \ wintrust h (39) : error C2501: 'LPVOID: missing storage - class or type specifiers
C: \ program files \ Microsoft visual studio (x86) \ vc98 \ include \ wintrust h (39) : error C2501: 'pPolicyCallbackData: missing storage - class or type specifiers
C: \ program files \ Microsoft visual studio (x86) \ vc98 \ include \ wintrust h (41) : error C2146: syntax error: missing '; 'before the identifier' dwUIChoice '
C: \ program files \ Microsoft visual studio (x86) \ vc98 \ include \ wintrust h (41) : error C2501: 'DWORD: missing storage - class or type specifiers
C: \ program files \ Microsoft visual studio (x86) \ vc98 \ include \ wintrust h (41) : error C2501: 'dwUIChoice: missing storage - class or type specifiers

CodePudding user response:

Just install the vc + + 6.0 lack of many libraries, after installing the SDK contains path is normal, suggest using the latest version of vs
  • Related