Skip to main content
arge1234
Known Participant
February 23, 2016
Question

Compiler error C2664 with preprocessor directive _UNICODE

  • February 23, 2016
  • 0 replies
  • 368 views

Hello,

I am trying to receive unicode from a pdf, so I used the preprocessor directive _UNICODE in VC2013.

Now I have the following error in PImail.c:

\adobe\adobe\acrobat dc sdk\version 1\pluginsupport\headers\api\pimain.c(422): error C2664: 'int wsprintfA(LPSTR,LPCSTR,...)' : cannot convert argument 2 from 'const wchar_t [27]' to 'LPCSTR'

1>          Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

Is there a solution for this ?

This topic has been closed for replies.