Click here to Skip to main content
       

ATL / WTL / STL

 
AnswerRe: ATL and exceptions Pinmemberbkelly1324-Jan-13 15:24 
GeneralRe: ATL and exceptions PinmemberJonathan Davies6-Feb-13 7:23 
GeneralRe: ATL and exceptions PinmemberAlbert Holguin11-Feb-13 5:12 
Questionunicode and non-unicode Pinmemberbkelly1314-Jan-13 3:45 
Windows XP and 7, Visual Studio 2008 and 2010, MFC, C++
 
Application A supports Unicode and application B does not. Class Log_Writer does not support Unicode. Both applications use Log_Writer ok passing a char * to log writer.
 
The problem is within Log_Writer when it cannot open the log file. It uses AfxMessageBox() to display an error to the user. When Log_Writer is compiled within the A environment the error message is:
None of the 2 overloads could convert all the argument types.
What can be done so that Log_Writer will work in both environments?
Thanks for your time

AnswerRe: unicode and non-unicode PinmvpRichard MacCutchan14-Jan-13 6:24 
GeneralRe: unicode and non-unicode [modified] Pinmemberbkelly1314-Jan-13 8:43 
GeneralRe: unicode and non-unicode PinmvpRichard MacCutchan14-Jan-13 22:13 
GeneralRe: unicode and non-unicode PinmvpRichard MacCutchan20-Jan-13 22:08 
AnswerRe: unicode and non-unicode Pinmemberpasztorpisti20-Jan-13 1:33 
GeneralRe: unicode and non-unicode Pinmemberbkelly1320-Jan-13 8:56 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 25 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid