Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Not Able to Get Message Pin
paresh_joe7-Dec-07 2:24
paresh_joe7-Dec-07 2:24 
GeneralRe: Not Able to Get Message [modified] Pin
Hamed Musavi7-Dec-07 3:20
Hamed Musavi7-Dec-07 3:20 
GeneralRe: Not Able to Get Message Pin
paresh_joe9-Dec-07 18:00
paresh_joe9-Dec-07 18:00 
GeneralBig Project with many resources distributed over many dll's [modified] Pin
Tomerland7-Dec-07 0:07
Tomerland7-Dec-07 0:07 
GeneralRe: Big Project with many resources distributed over many dll's Pin
Hamed Musavi7-Dec-07 1:30
Hamed Musavi7-Dec-07 1:30 
GeneralRe: Big Project with many resources distributed over many dll's Pin
Tomerland7-Dec-07 1:56
Tomerland7-Dec-07 1:56 
QuestionHow to attach a Dialog to a SDI Application Pin
msr_codeproject6-Dec-07 23:47
msr_codeproject6-Dec-07 23:47 
AnswerRe: How to attach a Dialog to a SDI Application Pin
toxcct7-Dec-07 0:18
toxcct7-Dec-07 0:18 
GeneralUnmanaged Memory Profiler Pin
Jeffrey Walton6-Dec-07 23:36
Jeffrey Walton6-Dec-07 23:36 
GeneralRe: Unmanaged Memory Profiler Pin
James R. Twine7-Dec-07 4:14
James R. Twine7-Dec-07 4:14 
GeneralRe: Unmanaged Memory Profiler Pin
Bram van Kampen7-Dec-07 11:23
Bram van Kampen7-Dec-07 11:23 
GeneralRe: Unmanaged Memory Profiler Pin
Bram van Kampen7-Dec-07 11:25
Bram van Kampen7-Dec-07 11:25 
GeneralRe: Unmanaged Memory Profiler Pin
Jeffrey Walton7-Dec-07 15:45
Jeffrey Walton7-Dec-07 15:45 
GeneralRe: Unmanaged Memory Profiler Pin
Mike Dimmick7-Dec-07 16:38
Mike Dimmick7-Dec-07 16:38 
GeneralRe: Unmanaged Memory Profiler Pin
Jeffrey Walton7-Dec-07 18:28
Jeffrey Walton7-Dec-07 18:28 
GeneralRe: Unmanaged Memory Profiler Pin
Bram van Kampen8-Dec-07 16:07
Bram van Kampen8-Dec-07 16:07 
GeneralRe: Unmanaged Memory Profiler Pin
Jeffrey Walton8-Dec-07 18:31
Jeffrey Walton8-Dec-07 18:31 
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.


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.