Click here to Skip to main content
15,885,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Cannot open the Dalog(DataBase error) Pin
Richard MacCutchan10-Jul-10 0:39
mveRichard MacCutchan10-Jul-10 0:39 
Questionunreadable text on Grid Control Pin
Max++9-Jul-10 14:54
Max++9-Jul-10 14:54 
AnswerRe: unreadable text on Grid Control Pin
Garth J Lancaster9-Jul-10 19:22
professionalGarth J Lancaster9-Jul-10 19:22 
QuestionWin32 + Direct2D Pin
Fareed Rizkalla9-Jul-10 14:33
Fareed Rizkalla9-Jul-10 14:33 
AnswerRe: Win32 + Direct2D Pin
Cedric Moonen9-Jul-10 22:02
Cedric Moonen9-Jul-10 22:02 
QuestionError in building QuickFix library in Exceptions.h Pin
arupsarkar9-Jul-10 8:54
arupsarkar9-Jul-10 8:54 
AnswerRe: Error in building QuickFix library in Exceptions.h Pin
David Crow9-Jul-10 9:04
David Crow9-Jul-10 9:04 
AnswerRe: Error in building QuickFix library in Exceptions.h Pin
Aescleal9-Jul-10 10:13
Aescleal9-Jul-10 10:13 
The important bit is the error message:

"c:\project\quickfix\quickfix_c\quickfix\include\quickfix\exceptions.h(260) : error C2664: 'FormatMessageW' : cannot convert parameter 5 from 'char [2048]' to 'LPWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast"

It looks like you're compiling your code with _UNICODE defined. When that happens FormatMessage gets replaced by FormatMessageW which expects it's parameters to be wide characters. As rest of the code seems to be assuming that they're using narrow characters there's a type mismatch.

If Visual Studio check that for the project you've selected "use multi-byte character set" rather than "use unicode character set" and the problem will go away. You might like to also contact the programmers that maintain the library you're using and suggest they document the problem (or switch their code to use wide characters as narrow ones have been dead on Windows for some time now).

Cheers,

Ash
GeneralRe: Error in building QuickFix library in Exceptions.h Pin
arupsarkar16-Jul-10 6:46
arupsarkar16-Jul-10 6:46 
Questionerror C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall ................... Pin
deadlyabbas9-Jul-10 5:23
deadlyabbas9-Jul-10 5:23 
QuestionRe: error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall ................... Pin
David Crow9-Jul-10 5:50
David Crow9-Jul-10 5:50 
AnswerRe: error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall ................... Pin
Stuart Dootson11-Jul-10 0:46
professionalStuart Dootson11-Jul-10 0:46 
QuestionMFC crash occurs on DLL during language translation in string table entries Pin
Thirumalesh.U8-Jul-10 23:40
Thirumalesh.U8-Jul-10 23:40 
QuestionRun-time Error while word 2010 Automation, "A null reference pointer was passed to the stub." [modified] Pin
m_code8-Jul-10 23:04
m_code8-Jul-10 23:04 
AnswerRe: Runtime Error while word 2010 Automation, "A null refrence pointer was passed to the stub." Pin
Niklas L9-Jul-10 1:42
Niklas L9-Jul-10 1:42 
GeneralRe: Runtime Error while word 2010 Automation, "A null refrence pointer was passed to the stub." Pin
m_code9-Jul-10 2:07
m_code9-Jul-10 2:07 
GeneralRe: Runtime Error while word 2010 Automation, "A null refrence pointer was passed to the stub." Pin
Niklas L9-Jul-10 2:24
Niklas L9-Jul-10 2:24 
GeneralRe: Runtime Error while word 2010 Automation, "A null refrence pointer was passed to the stub." Pin
m_code9-Jul-10 2:48
m_code9-Jul-10 2:48 
GeneralRe: Runtime Error while word 2010 Automation, "A null refrence pointer was passed to the stub." Pin
Niklas L9-Jul-10 3:14
Niklas L9-Jul-10 3:14 
GeneralRe: Runtime Error while word 2010 Automation, "A null refrence pointer was passed to the stub." Pin
m_code9-Jul-10 5:20
m_code9-Jul-10 5:20 
QuestionFile Mapping Pin
john56328-Jul-10 22:31
john56328-Jul-10 22:31 
AnswerRe: File Mapping Pin
Niklas L8-Jul-10 22:37
Niklas L8-Jul-10 22:37 
GeneralRe: File Mapping Pin
john56328-Jul-10 23:10
john56328-Jul-10 23:10 
GeneralRe: File Mapping Pin
Niklas L9-Jul-10 1:52
Niklas L9-Jul-10 1:52 
AnswerRe: File Mapping Pin
KarstenK8-Jul-10 22:50
mveKarstenK8-Jul-10 22:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.