Click here to Skip to main content
15,887,267 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unmanaged Memory Profiler Pin
Bram van Kampen9-Dec-07 14:13
Bram van Kampen9-Dec-07 14:13 
QuestionHow to Access CStringArray object from one class to other Pin
Atul236-Dec-07 23:13
Atul236-Dec-07 23:13 
AnswerRe: How to Access CStringArray object from one class to other Pin
CPallini6-Dec-07 23:25
mveCPallini6-Dec-07 23:25 
AnswerRe: How to Access CStringArray object from one class to other Pin
David Crow7-Dec-07 2:50
David Crow7-Dec-07 2:50 
AnswerRe: How to Access CStringArray object from one class to other Pin
KarstenK7-Dec-07 2:58
mveKarstenK7-Dec-07 2:58 
AnswerRe: How to Access CStringArray object from one class to other Pin
Bram van Kampen7-Dec-07 13:21
Bram van Kampen7-Dec-07 13:21 
GeneralMoving from VC++ 6.0 to VC++2005 Pin
josip cagalj6-Dec-07 23:03
josip cagalj6-Dec-07 23:03 
GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
CPallini6-Dec-07 23:43
mveCPallini6-Dec-07 23:43 
Your problem arises because VC++6.0 default builds were ANSI while VC++2005 ones are UNICODE. You can fix it either:

(1) Changing the project properties to make an ANSI build (i.e. modifying the character set property). This way you'll obtain a buld close to the old VC++6 one.

(2) Modifying you code to be UNICODE (or, better, generic text mapping) compliant. Maybe a major effort, maybe it is worthy. You must be careful though. For instance you cannot simply cast character arrays, as you've done in the following sample:
josip cagalj wrote:
Column.pszText=(LPWSTR)bfields[i].label;

It is a bad mistake.
You can either dinamically convert ANSI strings to UNICODE ones (see, for instance [^]) or simply replace ANSI data with UNICODE counterpart or, better, generic ones (i.e. TCHAR instead of char, T_("foo") instead of "foo" and so on.. ).

Hope that helps
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.


GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
josip cagalj7-Dec-07 1:51
josip cagalj7-Dec-07 1:51 
GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
CPallini7-Dec-07 1:54
mveCPallini7-Dec-07 1:54 
GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
josip cagalj7-Dec-07 3:27
josip cagalj7-Dec-07 3:27 
GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
CPallini7-Dec-07 3:36
mveCPallini7-Dec-07 3:36 
GeneralRe: Moving from VC++ 6.0 to VC++2005 Pin
josip cagalj7-Dec-07 3:55
josip cagalj7-Dec-07 3:55 
GeneralMFC Modal OpenGL dialog wont show up unless I pressed "Alt" key (on intel hardware) Pin
xanagan6666-Dec-07 22:37
xanagan6666-Dec-07 22:37 
Questionstruct member alignment? Pin
Laurence6-Dec-07 20:36
Laurence6-Dec-07 20:36 
AnswerRe: struct member alignment? Pin
Matthew Faithfull7-Dec-07 2:23
Matthew Faithfull7-Dec-07 2:23 
AnswerRe: struct member alignment? Pin
Bram van Kampen7-Dec-07 13:12
Bram van Kampen7-Dec-07 13:12 
GeneralData corruption during File Write Pin
SelvaKr6-Dec-07 20:35
SelvaKr6-Dec-07 20:35 
GeneralRe: Data corruption during File Write Pin
Nelek6-Dec-07 21:32
protectorNelek6-Dec-07 21:32 
GeneralRe: Data corruption during File Write Pin
JudyL_MD7-Dec-07 2:02
JudyL_MD7-Dec-07 2:02 
GeneralRe: Data corruption during File Write Pin
Bram van Kampen7-Dec-07 12:46
Bram van Kampen7-Dec-07 12:46 
Generalerrors in converting code from multibyte to unicode Pin
neha.agarwal276-Dec-07 20:13
neha.agarwal276-Dec-07 20:13 
GeneralRe: errors in converting code from multibyte to unicode Pin
kcynic6-Dec-07 20:42
kcynic6-Dec-07 20:42 
GeneralRe: errors in converting code from multibyte to unicode Pin
CPallini6-Dec-07 23:47
mveCPallini6-Dec-07 23:47 
GeneralRe: errors in converting code from multibyte to unicode Pin
krmed7-Dec-07 1:59
krmed7-Dec-07 1:59 

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.