Click here to Skip to main content
       

ATL / WTL / STL

 
GeneralRe: SQL Server Compact Edition PinmvpRichard MacCutchan11-Feb-13 5:58 
Questionerror while trying to uplaod the file in current directory using c language Pinmemberraghvendrapanda30-Jan-13 19:34 
AnswerRe: error while trying to uplaod the file in current directory using c language PinmvpRichard MacCutchan30-Jan-13 22:03 
AnswerRe: error while trying to uplaod the file in current directory using c language Pinmember«_Superman_»1-Feb-13 20:34 
QuestionTCP/IP CAsyncSocket and pointers to same Pinmemberbkelly1324-Jan-13 15:16 
Answerclasses don't call upwards Pinmemberbkelly1326-Jan-13 8:55 
QuestionATL and exceptions Pinmemberimagiro14-Jan-13 8:10 
AnswerRe: ATL and exceptions PinmemberJonathan Davies18-Jan-13 9:39 
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 
AnswerRe: unicode and non-unicode PinmvpRichard MacCutchan14-Jan-13 6:24 
GeneralRe: unicode and non-unicode [modified] Pinmemberbkelly1314-Jan-13 8:43 
the code is
 
AfxMessageBox("Unable to open log file");
 
If I pass it a CString it is okay as in:
CString x;
x.Format( L"stuff" );
AfxMessageBox( x );
 
But that does not compile in the non unicode project. I am hoping for something that will compile in both worlds.
 
EDIT: It finally occurred to me that there might a a define for unicode,..., and there is. A bit of googling showed me that using a #ifdef _UNICODE etc will resolve the problem.
 
Still, is there a way to write the code that will compile in both worlds?
Thanks for your time


modified 14-Jan-13 15:03pm.

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 
GeneralRe: unicode and non-unicode Pinmemberpasztorpisti20-Jan-13 10:45 
AnswerRe: unicode and non-unicode PinmemberAlbert Holguin11-Feb-13 5:10 
Questionsqlconfigdatasource fails on 64 bit from 64 application Pinmemberkhaliloenit10-Jan-13 23:02 
AnswerRe: sqlconfigdatasource fails on 64 bit from 64 application PinmvpRichard MacCutchan10-Jan-13 23:10 
GeneralRe: sqlconfigdatasource fails on 64 bit from 64 application Pinmemberkhaliloenit10-Jan-13 23:14 
GeneralRe: sqlconfigdatasource fails on 64 bit from 64 application PinmvpRichard MacCutchan10-Jan-13 23:32 
QuestionProblem with embedded ATL component PinmemberHungryCPPDev7-Jan-13 1:08 
Questionbooks: activeX and com, [modified] Pinmemberbkelly131-Jan-13 9:58 
AnswerRe: books: activeX and com, PinmemberJonathan Davies10-Jan-13 1:56 
QuestionWhile launching a winapp as ole server some time OnFIleNew() failed Pinmembervermaashish_mca31-Dec-12 0:27 
QuestionTCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberbkelly1321-Dec-12 6:09 
AnswerRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti22-Dec-12 9:51 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberbkelly1327-Dec-12 6:16 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti27-Dec-12 13:47 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API [modified] Pinmemberbkelly1328-Dec-12 3:08 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti28-Dec-12 3:37 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberbkelly1327-Dec-12 8:22 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti27-Dec-12 14:02 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API PinmemberSoMad27-Dec-12 14:51 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberbkelly1328-Dec-12 3:13 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti28-Dec-12 5:06 
Questioncalling virtual base class Pinmemberbkelly1314-Dec-12 7:36 
AnswerRe: calling virtual base class Pinmemberpasztorpisti18-Dec-12 22:39 
AnswerRe: calling virtual base class PinmemberAlbert Holguin19-Dec-12 7:22 
GeneralThe reason for the question Pinmemberbkelly1319-Dec-12 15:51 
GeneralRe: The reason for the question PinmvpRichard MacCutchan19-Dec-12 23:06 
GeneralRe: The reason for the question Pinmemberbkelly1321-Dec-12 6:11 
Questioncannot add control variable to checkbox Pinmemberbkelly1314-Dec-12 3:07 
AnswerRe: cannot add control variable to checkbox PinmvpRichard MacCutchan14-Dec-12 3:36 
GeneralRe: cannot add control variable to checkbox Pinmemberbkelly1314-Dec-12 5:18 
Questiondetect multiple instances of an application Pinmemberbkelly1310-Dec-12 12:28 
AnswerRe: detect multiple instances of an application PinprotectorPete O'Hanlon10-Dec-12 12:31 

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.140814.1 | Last Updated 14 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid