Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralNT permissions Pin
RobJones25-Mar-05 6:03
RobJones25-Mar-05 6:03 
GeneralRe: NT permissions Pin
David Crow25-Mar-05 7:29
David Crow25-Mar-05 7:29 
GeneralSerialization Pin
Gagnon Claude25-Mar-05 5:48
Gagnon Claude25-Mar-05 5:48 
GeneralRe: Serialization Pin
Blake Miller25-Mar-05 6:24
Blake Miller25-Mar-05 6:24 
GeneralRe: Serialization Pin
Ravi Bhavnani26-Mar-05 3:10
professionalRavi Bhavnani26-Mar-05 3:10 
GeneralAdding a C++ Inline File to a Visual C++.Net Project Pin
JSadleir25-Mar-05 3:17
JSadleir25-Mar-05 3:17 
GeneralRe: Adding a C++ Inline File to a Visual C++.Net Project Pin
Gary R. Wheeler25-Mar-05 3:47
Gary R. Wheeler25-Mar-05 3:47 
QuestionUnicode sizeof(TCHAR) == 1??? Pin
Dave_25-Mar-05 3:01
Dave_25-Mar-05 3:01 
I am building a dll that is supposed to be using Unicode but I am having some problems. I won't go into a lot of detail but here's a quick summary -

I am using grid software that requires a CString to be passed into it's SetText() function. I have a structure that has the follwing member:

struct MYSTRUCT{
TCHAR szDescription[512];
};

So, when I reach the point where I need to set my grid text, I use the following:
CString szTxt(struct.szDescription);

It fails indside the CString code in AllocBuffer() where it is actually doing the "new" call.

I don't expect anyone to know how to solve this but one thing that jumps out at me is that when I type sizeof(TCHAR) into my watch window, it returns a value of 1. I was expecting 2. I have "UNICODE" and "_UNICODE" defined in the project settings.

Any idea?
AnswerRe: Unicode sizeof(TCHAR) == 1??? Pin
David Crow25-Mar-05 3:20
David Crow25-Mar-05 3:20 
AnswerRe: Unicode sizeof(TCHAR) == 1??? Pin
Michael Dunn25-Mar-05 6:26
sitebuilderMichael Dunn25-Mar-05 6:26 
AnswerRe: Unicode sizeof(TCHAR) == 1??? Pin
Blake Miller25-Mar-05 6:29
Blake Miller25-Mar-05 6:29 
GeneralUsing MSFlexGrid and CRecordset Pin
Cybernate25-Mar-05 2:44
Cybernate25-Mar-05 2:44 
GeneralRe: Using MSFlexGrid and CRecordset Pin
David Crow25-Mar-05 5:16
David Crow25-Mar-05 5:16 
GeneralRe: Using MSFlexGrid and CRecordset Pin
Anonymous27-Mar-05 20:00
Anonymous27-Mar-05 20:00 
GeneralRe: Using MSFlexGrid and CRecordset Pin
David Crow28-Mar-05 2:21
David Crow28-Mar-05 2:21 
GeneralTURBU C++ & interrupt numbers Pin
SESCO LIBYA25-Mar-05 2:37
SESCO LIBYA25-Mar-05 2:37 
GeneralRe: TURBU C++ & interrupt numbers Pin
David Crow25-Mar-05 3:26
David Crow25-Mar-05 3:26 
GeneralRe: TURBU C++ & interrupt numbers Pin
Roger Wright26-Mar-05 21:06
professionalRoger Wright26-Mar-05 21:06 
GeneralTree Control Pin
NewbieStats25-Mar-05 1:48
NewbieStats25-Mar-05 1:48 
GeneralRe: Tree Control Pin
Ravi Bhavnani26-Mar-05 3:12
professionalRavi Bhavnani26-Mar-05 3:12 
QuestionLose window focus? Pin
Dominik Reichl25-Mar-05 0:58
Dominik Reichl25-Mar-05 0:58 
AnswerRe: Lose window focus? Pin
Mircea Puiu25-Mar-05 2:25
Mircea Puiu25-Mar-05 2:25 
GeneralRe: Lose window focus? Pin
Dominik Reichl25-Mar-05 3:33
Dominik Reichl25-Mar-05 3:33 
GeneralRe: Lose window focus? Pin
Mircea Puiu25-Mar-05 3:41
Mircea Puiu25-Mar-05 3:41 
GeneralRe: Lose window focus? Pin
Mircea Puiu25-Mar-05 3:50
Mircea Puiu25-Mar-05 3:50 

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.