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

C / C++ / MFC

 
AnswerRe: sizeof string array in for loop? Pin
Aescleal28-Oct-10 23:29
Aescleal28-Oct-10 23:29 
QuestionProblem with ScrollBar(MFC VC6) Pin
ashtwin28-Oct-10 1:50
ashtwin28-Oct-10 1:50 
AnswerRe: Problem with ScrollBar(MFC VC6) Pin
Richard MacCutchan28-Oct-10 2:58
mveRichard MacCutchan28-Oct-10 2:58 
GeneralRe: Problem with ScrollBar(MFC VC6) Pin
ashtwin28-Oct-10 21:23
ashtwin28-Oct-10 21:23 
GeneralRe: Problem with ScrollBar(MFC VC6) Pin
Richard MacCutchan28-Oct-10 23:05
mveRichard MacCutchan28-Oct-10 23:05 
QuestionEncoderParameter in GDIPLUS Pin
002comp28-Oct-10 0:40
002comp28-Oct-10 0:40 
QuestionUse of Non-Unicode DLL in Unicode project Pin
chevu27-Oct-10 21:45
chevu27-Oct-10 21:45 
AnswerRe: Use of Non-Unicode DLL in Unicode project [modified] Pin
Aescleal27-Oct-10 22:07
Aescleal27-Oct-10 22:07 
It should be easy enough. Just make sure when calling the vendor supplied DLL to use explicit specialisations of CStringT e.g. CStringT< char, ChTraitsCRT<char> >. It might be a good idea to use a typedef for this.

Oh, one other thing - make sure that around including the header for the library TCHAR is defined as char and not wchar_t or the functions won't link properly.

Cheers,

Ash

PS: Looks like there are already typedefs in MFC for this sort of thing. Have a look in Alain's answer below for their names!

modified on Thursday, October 28, 2010 8:28 AM

AnswerRe: Use of Non-Unicode DLL in Unicode project Pin
Alain Rist27-Oct-10 22:41
Alain Rist27-Oct-10 22:41 
QuestionWindows 7 VS 2008 fatal error LNK1168: cannot open file.exe for writing Pin
transoft27-Oct-10 17:16
transoft27-Oct-10 17:16 
AnswerRe: Windows 7 VS 2008 fatal error LNK1168: cannot open file.exe for writing Pin
Luc Pattyn27-Oct-10 17:21
sitebuilderLuc Pattyn27-Oct-10 17:21 
GeneralRe: Windows 7 VS 2008 fatal error LNK1168: cannot open file.exe for writing Pin
transoft27-Oct-10 17:28
transoft27-Oct-10 17:28 
AnswerRe: Windows 7 VS 2008 fatal error LNK1168: cannot open file.exe for writing Pin
Luc Pattyn27-Oct-10 17:57
sitebuilderLuc Pattyn27-Oct-10 17:57 
Questionhow to simultaneously show 2 dialogs Pin
Krauze27-Oct-10 16:53
Krauze27-Oct-10 16:53 
AnswerRe: how to simultaneously show 2 dialogs Pin
transoft27-Oct-10 17:19
transoft27-Oct-10 17:19 
AnswerRe: how to simultaneously show 2 dialogs Pin
Luc Pattyn27-Oct-10 17:24
sitebuilderLuc Pattyn27-Oct-10 17:24 
GeneralRe: how to simultaneously show 2 dialogs Pin
Stephen Hewitt27-Oct-10 18:47
Stephen Hewitt27-Oct-10 18:47 
GeneralRe: how to simultaneously show 2 dialogs Pin
Luc Pattyn28-Oct-10 1:35
sitebuilderLuc Pattyn28-Oct-10 1:35 
AnswerRe: how to simultaneously show 2 dialogs [modified] Pin
Xie Jinghui27-Oct-10 21:11
Xie Jinghui27-Oct-10 21:11 
GeneralRe: how to simultaneously show 2 dialogs Pin
Stephen Hewitt28-Oct-10 0:32
Stephen Hewitt28-Oct-10 0:32 
GeneralRe: how to simultaneously show 2 dialogs Pin
Xie Jinghui28-Oct-10 15:47
Xie Jinghui28-Oct-10 15:47 
GeneralRe: how to simultaneously show 2 dialogs Pin
Stephen Hewitt29-Oct-10 23:57
Stephen Hewitt29-Oct-10 23:57 
AnswerRe: how to simultaneously show 2 dialogs Pin
federico.strati28-Oct-10 2:57
federico.strati28-Oct-10 2:57 
QuestionRatio color bar for an MFC-based application Pin
marc ochsenmeier27-Oct-10 9:42
marc ochsenmeier27-Oct-10 9:42 
AnswerRe: Ratio color bar for an MFC-based application Pin
Code-o-mat27-Oct-10 11:31
Code-o-mat27-Oct-10 11:31 

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.